2010-01-22 1.2.0

org.eclipse.soda.dk.gpio.profile.test.agent
Class GpioProfileInputTestCase

java.lang.Object
  extended by ProfileAbstractTestCase
      extended by org.eclipse.soda.dk.gpio.profile.test.agent.GpioProfileAbstractTestCase
          extended by org.eclipse.soda.dk.gpio.profile.test.agent.GpioProfileInputTestCase

public class GpioProfileInputTestCase
extends GpioProfileAbstractTestCase

Since:
1.0
Version:
1.2.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.gpio.profile.test.agent.GpioProfileAbstractTestCase
gpioProfileServiceAnalogInputCountExternalKey, gpioProfileServiceAnalogInputExternalKey, gpioProfileServiceAnalogOutputCountExternalKey, gpioProfileServiceAnalogOutputExternalKey, gpioProfileServiceAnalogOutputRequestExternalKey, gpioProfileServiceCapabilitiesExternalKey, gpioProfileServiceConfigurationExternalKey, gpioProfileServiceI10DataKey, gpioProfileServiceI11DataKey, gpioProfileServiceI12DataKey, gpioProfileServiceI13DataKey, gpioProfileServiceI14DataKey, gpioProfileServiceI15DataKey, gpioProfileServiceI16DataKey, gpioProfileServiceI17DataKey, gpioProfileServiceI18DataKey, gpioProfileServiceI19DataKey, gpioProfileServiceI1DataKey, gpioProfileServiceI20DataKey, gpioProfileServiceI21DataKey, gpioProfileServiceI22DataKey, gpioProfileServiceI23DataKey, gpioProfileServiceI24DataKey, gpioProfileServiceI25DataKey, gpioProfileServiceI26DataKey, gpioProfileServiceI27DataKey, gpioProfileServiceI28DataKey, gpioProfileServiceI29DataKey, gpioProfileServiceI2DataKey, gpioProfileServiceI30DataKey, gpioProfileServiceI31DataKey, gpioProfileServiceI32DataKey, gpioProfileServiceI3DataKey, gpioProfileServiceI4DataKey, gpioProfileServiceI5DataKey, gpioProfileServiceI6DataKey, gpioProfileServiceI7DataKey, gpioProfileServiceI8DataKey, gpioProfileServiceI9DataKey, gpioProfileServiceInputCountExternalKey, gpioProfileServiceInputExternalKey, gpioProfileServiceO0DataKey, gpioProfileServiceO10DataKey, gpioProfileServiceO11DataKey, gpioProfileServiceO12DataKey, gpioProfileServiceO13DataKey, gpioProfileServiceO14DataKey, gpioProfileServiceO15DataKey, gpioProfileServiceO16DataKey, gpioProfileServiceO17DataKey, gpioProfileServiceO18DataKey, gpioProfileServiceO19DataKey, gpioProfileServiceO1DataKey, gpioProfileServiceO20DataKey, gpioProfileServiceO21DataKey, gpioProfileServiceO22DataKey, gpioProfileServiceO23DataKey, gpioProfileServiceO24DataKey, gpioProfileServiceO25DataKey, gpioProfileServiceO26DataKey, gpioProfileServiceO27DataKey, gpioProfileServiceO28DataKey, gpioProfileServiceO29DataKey, gpioProfileServiceO2DataKey, gpioProfileServiceO30DataKey, gpioProfileServiceO31DataKey, gpioProfileServiceO32DataKey, gpioProfileServiceO3DataKey, gpioProfileServiceO4DataKey, gpioProfileServiceO5DataKey, gpioProfileServiceO6DataKey, gpioProfileServiceO7DataKey, gpioProfileServiceO8DataKey, gpioProfileServiceO9DataKey, gpioProfileServiceOutput0ExpressionExternalKey, gpioProfileServiceOutput10ExpressionExternalKey, gpioProfileServiceOutput11ExpressionExternalKey, gpioProfileServiceOutput12ExpressionExternalKey, gpioProfileServiceOutput13ExpressionExternalKey, gpioProfileServiceOutput14ExpressionExternalKey, gpioProfileServiceOutput15ExpressionExternalKey, gpioProfileServiceOutput16ExpressionExternalKey, gpioProfileServiceOutput17ExpressionExternalKey, gpioProfileServiceOutput18ExpressionExternalKey, gpioProfileServiceOutput19ExpressionExternalKey, gpioProfileServiceOutput1ExpressionExternalKey, gpioProfileServiceOutput20ExpressionExternalKey, gpioProfileServiceOutput21ExpressionExternalKey, gpioProfileServiceOutput22ExpressionExternalKey, gpioProfileServiceOutput23ExpressionExternalKey, gpioProfileServiceOutput24ExpressionExternalKey, gpioProfileServiceOutput25ExpressionExternalKey, gpioProfileServiceOutput26ExpressionExternalKey, gpioProfileServiceOutput27ExpressionExternalKey, gpioProfileServiceOutput28ExpressionExternalKey, gpioProfileServiceOutput29ExpressionExternalKey, gpioProfileServiceOutput2ExpressionExternalKey, gpioProfileServiceOutput30ExpressionExternalKey, gpioProfileServiceOutput31ExpressionExternalKey, gpioProfileServiceOutput32ExpressionExternalKey, gpioProfileServiceOutput3ExpressionExternalKey, gpioProfileServiceOutput4ExpressionExternalKey, gpioProfileServiceOutput5ExpressionExternalKey, gpioProfileServiceOutput6ExpressionExternalKey, gpioProfileServiceOutput7ExpressionExternalKey, gpioProfileServiceOutput8ExpressionExternalKey, gpioProfileServiceOutput9ExpressionExternalKey, gpioProfileServiceOutputCountExternalKey, gpioProfileServiceOutputExternalKey, gpioProfileServiceOutputRequestExternalKey, gpioProfileServiceStatusExternalKey, INVALID_EXPRESSION
 
Constructor Summary
GpioProfileInputTestCase(java.lang.String name)
          Constructs a new instance of the GpioProfileInputTestCase class.
 
Method Summary
static void main(java.lang.String[] arguments)
          Main method to run tests in a stand alone mode.
protected  void setUp()
          Set up.
 void test000_SwitchAllOn()
          Test000_ switching all inputs to ON
 void test010_SwitchAllOff()
          Test010_ switching all inputs to OFF
 void test020_SwitchFirstOn()
          Test020_ switching first input to ON
 void test030_SwitchFirstOff()
          Test030_ switching first input to OFF
 void test040_SwitchLastOn()
          Test040_ switching last input to ON
 void test050_SwitchLastOff()
          Test050_ switching last input to OFF
 
Methods inherited from class org.eclipse.soda.dk.gpio.profile.test.agent.GpioProfileAbstractTestCase
analogInputWithinRange, getCapabilities, getConfiguration, getExternalKeys, getInputSignal, getKeysAndSettingsFromProperties, getNotificationService, getStatus, reportBits, setAnalogInputRanges, setAnalogOutputValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GpioProfileInputTestCase

public GpioProfileInputTestCase(java.lang.String name)
Constructs a new instance of the GpioProfileInputTestCase class.

Parameters:
name - The name (String) parameter.
Method Detail

main

public static void main(java.lang.String[] arguments)
Main method to run tests in a stand alone mode.

Parameters:
arguments - The arguments (String[]) parameter.
See Also:
GpioProfileTestAgent

setUp

protected void setUp()
              throws java.lang.Exception
Set up.

Throws:
java.lang.Exception - Exception.

test000_SwitchAllOn

public void test000_SwitchAllOn()
                         throws java.lang.InterruptedException,
                                java.io.IOException
Test000_ switching all inputs to ON

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

test010_SwitchAllOff

public void test010_SwitchAllOff()
                          throws java.lang.InterruptedException,
                                 java.io.IOException
Test010_ switching all inputs to OFF

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

test020_SwitchFirstOn

public void test020_SwitchFirstOn()
                           throws java.lang.InterruptedException,
                                  java.io.IOException
Test020_ switching first input to ON

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

test030_SwitchFirstOff

public void test030_SwitchFirstOff()
                            throws java.lang.InterruptedException,
                                   java.io.IOException
Test030_ switching first input to OFF

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

test040_SwitchLastOn

public void test040_SwitchLastOn()
                          throws java.lang.InterruptedException,
                                 java.io.IOException
Test040_ switching last input to ON

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

test050_SwitchLastOff

public void test050_SwitchLastOff()
                           throws java.lang.InterruptedException,
                                  java.io.IOException
Test050_ switching last input to OFF

Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException

2010-01-22 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.