@Test public void removeCorrespondingKeys() { Properties p = new Properties(); p.setProperty(SessionProfile.KEY_PROVIDER, "aaa"); p.setProperty(SessionProfile.KEY_PROVIDER + "_", "bbb"); p.setProperty(SessionProfile.KEY_PREFIX + "", ""); p.setProperty(SessionProfile.KEY_PREFIX + "ccc", "ccc"); SessionProfile.removeCorrespondingKeys(p); Properties answer = new Properties(); answer.setProperty(SessionProfile.KEY_PROVIDER + "_", "bbb"); assertThat(p, is(answer)); }
public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } properties.remove(KEY_PROVIDER); PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); }
SessionProfile extends BaseProfile<SessionProfile, SessionProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } properties.remove(KEY_PROVIDER); PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } }
SessionProfile extends BaseProfile<SessionProfile, SessionProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } properties.remove(KEY_PROVIDER); PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } SessionProfile(
            Class<? extends SessionProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); }
SessionProfile extends BaseProfile<SessionProfile, SessionProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } properties.remove(KEY_PROVIDER); PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } SessionProfile(
            Class<? extends SessionProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); @Override Class<? extends SessionProvider> getProviderClass(); @Override ProfileContext getContext(); Map<String, String> getConfiguration(); @Deprecated static SessionProfile loadFrom(Properties properties, ClassLoader loader); static SessionProfile loadFrom(Properties properties, ProfileContext context); void storeTo(Properties properties); static void removeCorrespondingKeys(Properties properties); }
SessionProfile extends BaseProfile<SessionProfile, SessionProvider> { public static void removeCorrespondingKeys(Properties properties) { if (properties == null) { throw new IllegalArgumentException("properties must not be null"); } properties.remove(KEY_PROVIDER); PropertiesUtil.removeKeyPrefix(properties, KEY_PREFIX); } SessionProfile(
            Class<? extends SessionProvider> providerClass,
            ProfileContext context,
            Map<String, String> configuration); @Override Class<? extends SessionProvider> getProviderClass(); @Override ProfileContext getContext(); Map<String, String> getConfiguration(); @Deprecated static SessionProfile loadFrom(Properties properties, ClassLoader loader); static SessionProfile loadFrom(Properties properties, ProfileContext context); void storeTo(Properties properties); static void removeCorrespondingKeys(Properties properties); static final String KEY_PROVIDER; static final String KEY_PREFIX; }