agave-apps/apps-core/src/test/java/org/iplantc/service/apps/uuid/SoftwareEventUUIDEntityLookupTest.java
/**
     * Create a test entity persisted and available for lookup.
     *
     * @return
     */
Create a test entity persisted and available for lookup.
@return
Create a test entity persisted and available for lookup . @return
@Override
    public SoftwareEvent createEntity() {
        SoftwareEvent testEvent = null;
        try {
            software = createSoftware();
            testEvent = new SoftwareEvent(software, SoftwareEventType.CREATED, SoftwareEventType.CREATED.getDescription(), SYSTEM_OWNER);
            new SoftwareEventDao().persist(testEvent);
        } catch (Exception e) {
            Assert.fail("Unable to create software event", e);
        }
        return testEvent;
    }
@ Override public SoftwareEvent createEntity ( ) { SoftwareEvent testEvent = null ; try { software = createSoftware ( ) ; testEvent = new SoftwareEvent ( software , SoftwareEventType . CREATED , SoftwareEventType . CREATED . getDescription ( ) , SYSTEM_OWNER ) ; new SoftwareEventDao ( ) . persist ( testEvent ) ; } catch ( Exception e ) { Assert . fail ( "Unable to create software event" , e ) ; } return testEvent ; }
Create a test entity persisted and available for lookup.
Create a test entity persisted and available for lookup .