@Test public void testUsingTagsList() throws Exception { final String tag1 = "tag1"; final String tag2 = "tag2"; final List<String> originalTagList = Arrays.asList(tag1, tag2); final List<String> tags = PredefinedConfigurationContextResolver.usingTagsList(originalTagList).getTags(); assertNotSame(tags, originalTagList); assertEquals(2, tags.size()); assertEquals(tag1, tags.get(0)); assertEquals(tag2, tags.get(1)); }
public static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags) { return new PredefinedConfigurationContextResolver(tags); }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags) { return new PredefinedConfigurationContextResolver(tags); } }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags) { return new PredefinedConfigurationContextResolver(tags); } private  PredefinedConfigurationContextResolver(final List<String> tags); }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags) { return new PredefinedConfigurationContextResolver(tags); } private  PredefinedConfigurationContextResolver(final List<String> tags); @Override List<String> getTags(); static PredefinedConfigurationContextResolver empty(); static PredefinedConfigurationContextResolver usingTags(final String... tags); static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags); }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags) { return new PredefinedConfigurationContextResolver(tags); } private  PredefinedConfigurationContextResolver(final List<String> tags); @Override List<String> getTags(); static PredefinedConfigurationContextResolver empty(); static PredefinedConfigurationContextResolver usingTags(final String... tags); static PredefinedConfigurationContextResolver usingTagsList(final List<String> tags);  }