Package com.cumulocity.me.rest.representation.audit

Examples of com.cumulocity.me.rest.representation.audit.AuditRecordsRepresentation


   
    @Test
    public void shouldParseWithSimpleProps() throws Exception {
        JSONObject json = new JSONObject("{\"auditRecordsForUserAndType\":\"for_user_type\",\"auditRecordsForUserAndApplication\":\"for_user_app\",\"auditRecordsForType\":\"for_type\",\"auditRecordsForTypeAndUserAndApplication\":\"for_type_user_app\",\"auditRecordsForTypeAndApplication\":\"for_type_app\",\"auditRecordsForApplication\":\"for_app\",\"auditRecordsForUser\":\"for_user\"}");
       
        AuditRecordsRepresentation parsed = (AuditRecordsRepresentation) converter.fromJson(json);
       
        assertThat(parsed.getAuditRecordsForApplication()).isEqualTo(auditRecordsForApplication);
        assertThat(parsed.getAuditRecordsForType()).isEqualTo(auditRecordsForType);
        assertThat(parsed.getAuditRecordsForTypeAndApplication()).isEqualTo(auditRecordsForTypeAndApplication);
        assertThat(parsed.getAuditRecordsForTypeAndUserAndApplication()).isEqualTo(auditRecordsForTypeAndUserAndApplication);
        assertThat(parsed.getAuditRecordsForUser()).isEqualTo(auditRecordsForUser);
        assertThat(parsed.getAuditRecordsForUserAndApplication()).isEqualTo(auditRecordsForUserAndApplication);
        assertThat(parsed.getAuditRecordsForUserAndType()).isEqualTo(auditRecordsForUserAndType);
       
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.rest.representation.audit.AuditRecordsRepresentation

Copyright © 2018 www.massapicom. 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.