@Test public void randomTest() { int N = 1000, n = 500, m = 100; for (int i = 0; i < N; i++) { String document = randomString(1 + r.nextInt(n)); String query = randomString(1 + r.nextInt(m)); List<String> documents = convert(document); List<String> querys = convert(query); Assert.assertEquals(expect2(document, query), DocumentSearch.solve(documents, querys)); } }
public static int solve(List<String> documents, List<String> queryWords) { return 0; }
DocumentSearch { public static int solve(List<String> documents, List<String> queryWords) { return 0; } }
DocumentSearch { public static int solve(List<String> documents, List<String> queryWords) { return 0; }  }
DocumentSearch { public static int solve(List<String> documents, List<String> queryWords) { return 0; }  static int solve(List<String> documents, List<String> queryWords); }
DocumentSearch { public static int solve(List<String> documents, List<String> queryWords) { return 0; }  static int solve(List<String> documents, List<String> queryWords);  }