agave-metadata/metadata-core/src/test/java/org/iplantc/service/metadata/uuid/MetadataSchemaItemUUIDEntityLookupIT.java
/**
     * Create a test entity persisted and available for lookup.
     *
     * @return a persisted instance of the entity
     */
Create a test entity persisted and available for lookup.
@return a persisted instance of the entity
Create a test entity persisted and available for lookup . @return a persisted instance of the entity
@Override
    public MetadataSchemaItem createEntity() {
        MetadataSchemaItem entity = null;
        try {
            entity = new MetadataSchemaItem();
            entity.setSchema(mapper.createObjectNode());
            entity.setOwner(TEST_USER);
            MetadataSchemaDao.getInstance().insert(entity);
        } catch (Exception e) {
            Assert.fail("Unable to create metadata schema event", e);
        }
        return entity;
    }
@ Override public MetadataSchemaItem createEntity ( ) { MetadataSchemaItem entity = null ; try { entity = new MetadataSchemaItem ( ) ; entity . setSchema ( mapper . createObjectNode ( ) ) ; entity . setOwner ( TEST_USER ) ; MetadataSchemaDao . getInstance ( ) . insert ( entity ) ; } catch ( Exception e ) { Assert . fail ( "Unable to create metadata schema event" , e ) ; } return entity ; }
Create a test entity persisted and available for lookup.
Create a test entity persisted and available for lookup .