@Test public void testCreateMatcher() throws Exception { File matcherSecretKeyFile = BritTestUtils.makeFile(BritTestUtils.TEST_MATCHER_SECRET_KEYRING_FILE); MatcherConfig matcherConfig = new MatcherConfig(matcherSecretKeyFile, BritTestUtils.TEST_DATA_PASSWORD); File matcherStoreDirectory = Files.createTempDir(); MatcherStore matcherStore = MatcherStores.newBasicMatcherStore(matcherStoreDirectory); Matcher matcher = Matchers.newBasicMatcher(matcherConfig, matcherStore); assertThat(matcher).isNotNull(); assertThat(matcher.getConfig().getMatcherSecretKeyringFile()).isEqualTo(matcherSecretKeyFile); }
public static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore) { return new BasicMatcher(matcherConfig, matcherStore); }
Matchers { public static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore) { return new BasicMatcher(matcherConfig, matcherStore); } }
Matchers { public static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore) { return new BasicMatcher(matcherConfig, matcherStore); } private  Matchers(); }
Matchers { public static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore) { return new BasicMatcher(matcherConfig, matcherStore); } private  Matchers(); static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore); }
Matchers { public static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore) { return new BasicMatcher(matcherConfig, matcherStore); } private  Matchers(); static Matcher newBasicMatcher(MatcherConfig matcherConfig, MatcherStore matcherStore);  }