@Override LocationSpecifier buildLocationSpecifier(Pattern pattern) { return new VrfNameRegexInterfaceLinkLocationSpecifier(pattern); } }
@Test public void testVrfNameRegexInterfaceLinkLocationSpecifierFactory() { assertThat( LocationSpecifierFactory.load( new VrfNameRegexInterfaceLinkLocationSpecifierFactory().getName()), instanceOf(VrfNameRegexInterfaceLinkLocationSpecifierFactory.class)); assertThat( new VrfNameRegexInterfaceLinkLocationSpecifierFactory().getName(), equalTo(VrfNameRegexInterfaceLinkLocationSpecifierFactory.NAME)); assertThat( new VrfNameRegexInterfaceLinkLocationSpecifierFactory().buildLocationSpecifier(PATTERN_SRC), equalTo(new VrfNameRegexInterfaceLinkLocationSpecifier(PATTERN))); }