mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestObservation.java
public void testObsDupPointingLocation() throws PersistenceFailedException, ValidationFailedException
    {
        // Persist the first observation
        m_PersistedObservation = createTestObservation();
        m_PersistedObservation.setPointingLocation(m_PointingLocation);
        m_ObservationStore.persist(m_PersistedObservation);

        // Persist second observation containing some duplicate data
        Observation observation = createTestObservation();
        observation.setPointingLocation(m_PointingLocation);
        m_ObservationStore.persist(observation);
        m_ObservationStore.remove(observation);

        // Verify that all data exists for the first observation persisted
        observation = m_ObservationStore.find(m_PersistedObservation.getUuid());
        assertEquals(m_PersistedObservation, observation);
    }
/**
     * Make sure that observations with duplicate location data can be persisted and deleted.
     */
Make sure that observations with duplicate location data can be persisted and deleted.
Make sure that observations with duplicate location data can be persisted and deleted .
public void testObsDupPointingLocation() throws PersistenceFailedException, ValidationFailedException
    {
        m_PersistedObservation = createTestObservation();
        m_PersistedObservation.setPointingLocation(m_PointingLocation);
        m_ObservationStore.persist(m_PersistedObservation);
        Observation observation = createTestObservation();
        observation.setPointingLocation(m_PointingLocation);
        m_ObservationStore.persist(observation);
        m_ObservationStore.remove(observation);
        observation = m_ObservationStore.find(m_PersistedObservation.getUuid());
        assertEquals(m_PersistedObservation, observation);
    }
public void testObsDupPointingLocation ( ) throws PersistenceFailedException , ValidationFailedException { m_PersistedObservation = createTestObservation ( ) ; m_PersistedObservation . setPointingLocation ( m_PointingLocation ) ; m_ObservationStore . persist ( m_PersistedObservation ) ; Observation observation = createTestObservation ( ) ; observation . setPointingLocation ( m_PointingLocation ) ; m_ObservationStore . persist ( observation ) ; m_ObservationStore . remove ( observation ) ; observation = m_ObservationStore . find ( m_PersistedObservation . getUuid ( ) ) ; assertEquals ( m_PersistedObservation , observation ) ; }
Make sure that observations with duplicate location data can be persisted and deleted.
Make sure that observations with duplicate location data can be persisted and deleted .
// Persist the first observation // Persist second observation containing some duplicate data // Verify that all data exists for the first observation persisted