有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Java lib比较两个支持通配符的文本文件

我正在使用Selenium创建自动测试。测试结果是报告文件,我需要将其与预期文件进行比较。有没有办法与Java中的文本文件进行比较?我想使用通配符来屏蔽一些数据。 我查看了ApprovalTests,但它似乎不支持通配符


共 (1) 个答案

  1. # 1 楼答案

    你可能对Apache Lucene感兴趣。从他们的网站:

    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.

    而且here你可以得到一些通配符搜索的细节。 还有here一些你可能会觉得有用的教程