@Test public void stateless() throws Exception { EntryMatcherFactory<ReplaySessionState> factory = HeuristicEntryMatcher.factory(new BasicHeuristic(), BasicHeuristic.DEFAULT_THRESHOLD_EXCLUSIVE); List<String> responses = testEntryMatcher(factory); assertEquals("responses", Arrays.asList("first", "first", "first"), responses); }
public static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive) { return new MyFactory(heuristic, thresholdExclusive); }
StatefulHeuristicEntryMatcher extends HeuristicEntryMatcher<ReplaySessionState> { public static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive) { return new MyFactory(heuristic, thresholdExclusive); } }
StatefulHeuristicEntryMatcher extends HeuristicEntryMatcher<ReplaySessionState> { public static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive) { return new MyFactory(heuristic, thresholdExclusive); } StatefulHeuristicEntryMatcher(Heuristic heuristic, int thresholdExclusive, Collection<ParsedEntry> entries); }
StatefulHeuristicEntryMatcher extends HeuristicEntryMatcher<ReplaySessionState> { public static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive) { return new MyFactory(heuristic, thresholdExclusive); } StatefulHeuristicEntryMatcher(Heuristic heuristic, int thresholdExclusive, Collection<ParsedEntry> entries); static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive); }
StatefulHeuristicEntryMatcher extends HeuristicEntryMatcher<ReplaySessionState> { public static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive) { return new MyFactory(heuristic, thresholdExclusive); } StatefulHeuristicEntryMatcher(Heuristic heuristic, int thresholdExclusive, Collection<ParsedEntry> entries); static EntryMatcherFactory<ReplaySessionState> factory(Heuristic heuristic, int thresholdExclusive);  }