Java lib to compare two text files with support of wildcard

89 Views Asked by At

I am creating autotest using Selenium. Outcome of the test is report file which I need to compare with expected one. Is there a way to compare to text files in Java? I would like to use wildcards to mask some data. I looked at ApprovalTests but it seems that it does not support wildcards

1

There are 1 best solutions below

1
HRgiger On

You might be interested inApache Lucene. From their web site:

Apache LuceneTM is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.

And here you can get a bit detail of wildcard searching. And here some tutorials you might find useful.