edu.udayton.udri.asset.axis/test/edu/udayton/udri/asset/axis/TestCommandProcessorImpl.java
@Test
    public void testSetPanOnly() throws CommandExecutionException
    {
        //Command
        SetPanTiltCommand command = new SetPanTiltCommand().withPanTilt(SpatialTypesFactory.newOrientationOffset(3));
        
        String urlString = m_SUT.processSetPanTilt(command, m_Ip);
        
        assertThat(urlString.contains("pan=3"), is(true));
        assertThat(urlString.contains("tilt="), is(false)); //shouldn't contain the tilt.. mode is pan
    }
/**
     * Verify expected command URL is returned for:
     * MODE: pan
     */
Verify expected command URL is returned for:
MODE: pan
Verify expected command URL is returned for : MODE : pan
@Test
    public void testSetPanOnly() throws CommandExecutionException
    {
        SetPanTiltCommand command = new SetPanTiltCommand().withPanTilt(SpatialTypesFactory.newOrientationOffset(3));
        String urlString = m_SUT.processSetPanTilt(command, m_Ip);
        assertThat(urlString.contains("pan=3"), is(true));
        assertThat(urlString.contains("tilt="), is(false)); 
    }
@ Test public void testSetPanOnly ( ) throws CommandExecutionException { SetPanTiltCommand command = new SetPanTiltCommand ( ) . withPanTilt ( SpatialTypesFactory . newOrientationOffset ( 3 ) ) ; String urlString = m_SUT . processSetPanTilt ( command , m_Ip ) ; assertThat ( urlString . contains ( "pan=3" ) , is ( true ) ) ; assertThat ( urlString . contains ( "tilt=" ) , is ( false ) ) ; }
Verify expected command URL is returned for:
 MODE: pan
Verify expected command URL is returned for : MODE : pan
//Command //shouldn't contain the tilt.. mode is pan