@Override public LocationSpecifier buildLocationSpecifier(Pattern input) { return new DescriptionRegexInterfaceLinkLocationSpecifier(input); }
@Test public void testDescriptionRegexInterfaceLinkLocationSpecifierFactory() { assertThat( LocationSpecifierFactory.load( new DescriptionRegexInterfaceLinkLocationSpecifierFactory().getName()), instanceOf(DescriptionRegexInterfaceLinkLocationSpecifierFactory.class)); assertThat( new DescriptionRegexInterfaceLinkLocationSpecifierFactory().getName(), equalTo(DescriptionRegexInterfaceLinkLocationSpecifierFactory.NAME)); assertThat( new DescriptionRegexInterfaceLinkLocationSpecifierFactory() .buildLocationSpecifier(PATTERN_SRC), equalTo(new DescriptionRegexInterfaceLinkLocationSpecifier(PATTERN))); }