DDMSVersion.setCurrentVersion("4.1");
Security security = SecurityTest.getFixture();
PropertyReader.setProperty("output.json.inlineAttributes", "false");
assertEquals("{\"excludeFromRollup\":true,\"securityAttributes\":{\"classification\":\"U\",\"ownerProducer\":[\"USA\"]}}", security.toJSON());
PropertyReader.setProperty("output.json.inlineAttributes", "true");
assertEquals("{\"excludeFromRollup\":true,\"classification\":\"U\",\"ownerProducer\":[\"USA\"]}", security.toJSON());
}
@Test
public void testSelfEquality() throws InvalidDDMSException {
Rights rights = new Rights(true, true, true);