Examples of AuditRecordsRepresentation


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

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

    @Before
    public void setup() throws Exception {
        MockitoAnnotations.initMocks(this);

        auditRecordsApiRepresentation = new AuditRecordsRepresentation();
        AuditRecordCollectionRepresentation collectionRepresentation = new AuditRecordCollectionRepresentation();
        collectionRepresentation.setSelf(AUDIT_RECORDS_URL);
        auditRecordsApiRepresentation.setAuditRecords(collectionRepresentation);

        auditRecordApi = new AuditRecordApiImpl(restConnector, urlProcessor, auditRecordsApiRepresentation, DEFAULT_PAGE_SIZE);
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.