expirationDate = StringUtils.defaultString(get("Expiration", properties), get("Expires", properties));
type = get("Type", properties);
server = get("Server", properties);
- // SONAR-4340 Don't expose Digest property
+ // SONAR-4340 Don't expose Digest and Obeo properties
additionalProperties.remove("Digest");
+ additionalProperties.remove("Obeo");
}
private String get(String key, Map<String, String> properties) {
"Plugin: SQALE\n" +
" Expires: 2012-05-18 \n" +
"Other: field\n" +
- "Digest: abcdef\n";
+ "Digest: abcdef\n" +
+ "Obeo: obeo\n";
@Test
public void readPlainTest() {
assertThat(license.additionalProperties().get("Other")).isEqualTo("field");
assertThat(license.additionalProperties().containsKey("Digest")).isFalse();
+ assertThat(license.additionalProperties().containsKey("Obeo")).isFalse();
}
}