mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/data/TestBaseFactoryObjectDataManager.java
public PersistentData createPersistentData(final UUID uuid, final byte[] entity)
    {
        PersistentData persistentData = mock(PersistentData.class);
        when(persistentData.getEntity()).thenReturn(entity);
        when(persistentData.getUUID()).thenReturn(uuid);
        when(m_PersistentDataStore.find(uuid)).thenReturn(persistentData);
        
        return persistentData;
    }
/**
     * Helper method to create a mock persistent data store entry with the given entity stored at the given UUID.
     * @param uuid
     *     UUID to associate with the entry
     * @param entity
     *     entity for the entry
     * @return persistentData
     *     the mocked data entry
     */
Helper method to create a mock persistent data store entry with the given entity stored at the given UUID.
@param uuid
UUID to associate with the entry
@param entity
entity for the entry
@return persistentData
the mocked data entry
Helper method to create a mock persistent data store entry with the given entity stored at the given UUID . @param uuid UUID to associate with the entry @param entity entity for the entry @return persistentData the mocked data entry
public PersistentData createPersistentData(final UUID uuid, final byte[] entity)
    {
        PersistentData persistentData = mock(PersistentData.class);
        when(persistentData.getEntity()).thenReturn(entity);
        when(persistentData.getUUID()).thenReturn(uuid);
        when(m_PersistentDataStore.find(uuid)).thenReturn(persistentData);
        return persistentData;
    }
public PersistentData createPersistentData ( final UUID uuid , final byte [ ] entity ) { PersistentData persistentData = mock ( PersistentData . class ) ; when ( persistentData . getEntity ( ) ) . thenReturn ( entity ) ; when ( persistentData . getUUID ( ) ) . thenReturn ( uuid ) ; when ( m_PersistentDataStore . find ( uuid ) ) . thenReturn ( persistentData ) ; return persistentData ; }
Helper method to create a mock persistent data store entry with the given entity stored at the given UUID.
Helper method to create a mock persistent data store entry with the given entity stored at the given UUID .