mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestObservation.java
public void testValidateObservation() throws IllegalArgumentException, PersistenceFailedException
    {
        ObservationStore observationStore = 
                ServiceUtils.getService(m_Context, ObservationStore.class);
        
        Observation observation = new Observation();
        
        try
        {
            observationStore.persist(observation);
            fail("Validation failed exception expected.");
        }
        catch (ValidationFailedException e)
        {
            Logging.log(LogService.LOG_INFO, e, "Test Chained Exception Message");
        }
    }
/**
     * Make sure that created observations can be validated
     */
Make sure that created observations can be validated
Make sure that created observations can be validated
public void testValidateObservation() throws IllegalArgumentException, PersistenceFailedException
    {
        ObservationStore observationStore = 
                ServiceUtils.getService(m_Context, ObservationStore.class);
        Observation observation = new Observation();
        try
        {
            observationStore.persist(observation);
            fail("Validation failed exception expected.");
        }
        catch (ValidationFailedException e)
        {
            Logging.log(LogService.LOG_INFO, e, "Test Chained Exception Message");
        }
    }
public void testValidateObservation ( ) throws IllegalArgumentException , PersistenceFailedException { ObservationStore observationStore = ServiceUtils . getService ( m_Context , ObservationStore . class ) ; Observation observation = new Observation ( ) ; try { observationStore . persist ( observation ) ; fail ( "Validation failed exception expected." ) ; } catch ( ValidationFailedException e ) { Logging . log ( LogService . LOG_INFO , e , "Test Chained Exception Message" ) ; } }
Make sure that created observations can be validated
Make sure that created observations can be validated