Search in sources :

Example 1 with SLSBOrg

use of org.jboss.as.test.integration.jpa.hibernate.envers.SLSBOrg in project wildfly by wildfly.

the class BasicSelectiveEnversTestCase method testSelectiveEnversOperations.

@Test
public void testSelectiveEnversOperations() throws Exception {
    SLSBOrg slsbOrg = lookup("SLSBOrg", SLSBOrg.class);
    Organization o1 = slsbOrg.createOrg("REDHAT", "Software Co", "10/10/1994", "eternity", "Raleigh");
    Organization o2 = slsbOrg.createOrg("HALDIRAMS", "Food Co", "10/10/1974", "eternity", "Delhi");
    o2.setStartDate("10/10/1924");
    o2.setName("BIKANER");
    slsbOrg.updateOrg(o2);
    o1.setStartDate("10/10/1924");
    slsbOrg.updateOrg(o1);
    slsbOrg.deleteOrg(o1);
    testSelectiveEnversOperationonAuditedandNonAuditedProperty(o2, slsbOrg);
    testSelectiveEnversOperationonFetchbyEntityName(o2, slsbOrg);
    testEnversOperationonDelete(o1, slsbOrg);
}
Also used : Organization(org.jboss.as.test.integration.jpa.hibernate.envers.Organization) SLSBOrg(org.jboss.as.test.integration.jpa.hibernate.envers.SLSBOrg) Test(org.junit.Test)

Aggregations

Organization (org.jboss.as.test.integration.jpa.hibernate.envers.Organization)1 SLSBOrg (org.jboss.as.test.integration.jpa.hibernate.envers.SLSBOrg)1 Test (org.junit.Test)1