mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestObservation.java
private Observation createTestObservation()
    {
        Observation observation = createBaseObservation();

        // DigitalMedia is shared type, encoding must be start with audio/video/image 
        observation.setDigitalMedia(new DigitalMedia(new byte[] {0, 1, 2}, "audio/mp3"));
        observation.setAudioMetadata(new AudioMetadata().withRecorderType(
                new AudioRecorder().withValue(AudioRecorderEnum.MICROPHONE)));

        return observation;
    }
/**
     * Function to create a valid observation.
     * 
     * @return
     *  the valid observation
     */
Function to create a valid observation.

@return
the valid observation
Function to create a valid observation . @return the valid observation
private Observation createTestObservation()
    {
        Observation observation = createBaseObservation();
        observation.setDigitalMedia(new DigitalMedia(new byte[] {0, 1, 2}, "audio/mp3"));
        observation.setAudioMetadata(new AudioMetadata().withRecorderType(
                new AudioRecorder().withValue(AudioRecorderEnum.MICROPHONE)));
        return observation;
    }
private Observation createTestObservation ( ) { Observation observation = createBaseObservation ( ) ; observation . setDigitalMedia ( new DigitalMedia ( new byte [ ] { 0 , 1 , 2 } , "audio/mp3" ) ) ; observation . setAudioMetadata ( new AudioMetadata ( ) . withRecorderType ( new AudioRecorder ( ) . withValue ( AudioRecorderEnum . MICROPHONE ) ) ) ; return observation ; }
Function to create a valid observation.
Function to create a valid observation .
// DigitalMedia is shared type, encoding must be start with audio/video/image 