org.tritonus.test
Class ControlTypeTestCase

java.lang.Object
  extended by TestCase
      extended by org.tritonus.test.ControlTypeTestCase

public class ControlTypeTestCase
extends TestCase

Tests for class javax.sound.sampled.Control.


Constructor Summary
ControlTypeTestCase(java.lang.String strName)
           
 
Method Summary
 void testConstructor()
          Checks the constructor().
 void testEqualsSelfIdentity()
          Checks equals().
 void testEqualsSelfUnequality()
          Checks equals().
 void testHashCode()
          Checks hashCode().
 void testToString()
          Checks toString().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlTypeTestCase

public ControlTypeTestCase(java.lang.String strName)
Method Detail

testConstructor

public void testConstructor()
                     throws java.lang.Exception
Checks the constructor(). The test checks if the constructor does not throw an exception.

Throws:
java.lang.Exception

testEqualsSelfIdentity

public void testEqualsSelfIdentity()
                            throws java.lang.Exception
Checks equals(). The test checks if an object is considered equal to itself.

Throws:
java.lang.Exception

testEqualsSelfUnequality

public void testEqualsSelfUnequality()
                              throws java.lang.Exception
Checks equals(). The test checks if two objects are considered unequal, even if they have the same type string.

Throws:
java.lang.Exception

testHashCode

public void testHashCode()
                  throws java.lang.Exception
Checks hashCode(). The test checks if two calls to hashCode() on the same object return the same value.

Throws:
java.lang.Exception

testToString

public void testToString()
                  throws java.lang.Exception
Checks toString(). The test checks if the string returned by toString() equals the one passed in the constructor (and doesn't throw an exception).

Throws:
java.lang.Exception