@Test public void testUsingTags() throws Exception { final String tag1 = "tag1"; final String tag2 = "tag2"; final List<String> tags = PredefinedConfigurationContextResolver.usingTags(tag1, tag2).getTags(); assertEquals(tag1, tags.get(0)); assertEquals(tag2, tags.get(1)); }
public static PredefinedConfigurationContextResolver usingTags(final String... tags) { if (tags == null) { return empty(); } else { return usingTagsList(Arrays.asList(tags)); } }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTags(final String... tags) { if (tags == null) { return empty(); } else { return usingTagsList(Arrays.asList(tags)); } } }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTags(final String... tags) { if (tags == null) { return empty(); } else { return usingTagsList(Arrays.asList(tags)); } } private  PredefinedConfigurationContextResolver(final List<String> tags); }
PredefinedConfigurationContextResolver implements ConfigurationContextResolver { public static PredefinedConfigurationContextResolver usingTags(final String... tags) { if (tags == null) { return empty(); } else { return usingTagsList(Arrays.asList(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 usingTags(final String... tags) { if (tags == null) { return empty(); } else { return usingTagsList(Arrays.asList(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);  }