Package org.apache.rave.portal.model

Examples of org.apache.rave.portal.model.JpaApplicationData


        assertThat(applicationData, is(nullValue()));
    }

    @Test
    public void getApplicationData_byUserIdAndApplicationId_valid() {
        JpaApplicationData applicationData = (JpaApplicationData) repository.getApplicationData(VALID_USER_ID, VALID_APPLICATION_ID);
        validateApplicationData(applicationData);
    }
View Full Code Here


    @Test
    @Transactional
    @Rollback(true)
    public void save_newEntity() {
        ApplicationData applicationData = new JpaApplicationData(null, VALID_USER_ID, SECOND_VALID_APPLICATION_ID,
                validApplicationDataMap);

        JpaApplicationData saved = (JpaApplicationData)repository.save(applicationData);
        manager.flush();
        assertThat(saved.getEntityId(), is(notNullValue()));
    }
View Full Code Here

    @Test
    @Transactional
    @Rollback(true)
    public void save_existingEntity() {
        JpaApplicationData applicationData = new JpaApplicationData(VALID_APPLICATION_DATA_ID, VALID_USER_ID,
                VALID_APPLICATION_ID, new HashMap<String, Object>());

        JpaApplicationData saved = (JpaApplicationData)repository.save(applicationData);
        manager.flush();
        assertThat(saved, is(not(sameInstance(applicationData))));
        assertThat(saved.getEntityId(), is(equalTo(applicationData.getEntityId())));
    }
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.model.JpaApplicationData

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.