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