Package buri.ddmsence.ddms.security

Examples of buri.ddmsence.ddms.security.Security.toJSON()


  @Test
  public void testOutputJSONInline() throws InvalidDDMSException {
    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
View Full Code Here


    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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.