ALMA Computing Group

alma::demo::client::LampAccessClient Class Reference

JUnit test client for LampAccessComponent. More...

List of all members.

Public Member Functions

 LampAccessClient () throws Exception
 Creates a component with a name.
void testGetLampBrightness () throws LampUnavailable
 Compares the default brightness value with zero.
void testSetLampBrightness () throws LampUnavailable
 Compares the set brightness value with the expected.

Protected Member Functions

void setUp () throws Exception
 Sets up the environment and gets a reference to the LampAccess component.

Private Attributes

LampAccess m_comp


Detailed Description

JUnit test client for LampAccessComponent.

Author:
radi

Definition at line 33 of file LampAccessClient.java.


Constructor & Destructor Documentation

alma::demo::client::LampAccessClient::LampAccessClient  )  throws Exception [inline]
 

Creates a component with a name.

See also:
java.lang.Object#Object()
Definition at line 41 of file LampAccessClient.java.


Member Function Documentation

void alma::demo::client::LampAccessClient::setUp  )  throws Exception [inline, protected]
 

Sets up the environment and gets a reference to the LampAccess component.

This method is called before the test is executed.

See also:
junit.framework.TestCase#setUp()
Definition at line 51 of file LampAccessClient.java.

References m_comp.

void alma::demo::client::LampAccessClient::testGetLampBrightness  )  throws LampUnavailable [inline]
 

Compares the default brightness value with zero.

Definition at line 62 of file LampAccessClient.java.

References m_comp.

void alma::demo::client::LampAccessClient::testSetLampBrightness  )  throws LampUnavailable [inline]
 

Compares the set brightness value with the expected.

Definition at line 72 of file LampAccessClient.java.

References m_comp.


Member Data Documentation

LampAccess alma::demo::client::LampAccessClient::m_comp [private]
 

Definition at line 35 of file LampAccessClient.java.

Referenced by setUp(), testGetLampBrightness(), and testSetLampBrightness().


The documentation for this class was generated from the following file: