name.angoca.db2sa.interfaze.model
Class ReturnOptionsTest

Package class diagram package ReturnOptionsTest
java.lang.Object
  extended by name.angoca.db2sa.interfaze.model.ReturnOptionsTest

public final class ReturnOptionsTest
extends Object

This is the test for the ReturnOption class, testing the main method, including those that retrieve array copies.

Control Version

Version:
1.2.0 2009-09-27
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
ReturnOptionsTest()
          Default constructor.
 
Method Summary
 void testCongruent()
          Tests if two consecutive calls returns the same value.
 void testEqualsObjectDifferent1()
          Tests the equals method with two different objects.
 void testEqualsObjectDifferent2()
          Tests the equals method with two different objects.
 void testEqualsObjectDifferent3()
          Tests the equals method with two different objects.
 void testEqualsObjectIdentical()
          Tests the equals method with two identical objects.
 void testEqualsObjectNull()
          Tests the equals method with a null value.
 void testGetOptions()
          Tests the array copy of the options.
 void testGetPhrases()
          Tests the array copy of the phrases.
 void testHashCode()
          Tests that the hashcode is different to 0, -1 and 1.
 void testHashCodeDifferent()
          Tests if the hashcode of two different objects are different.
 void testHashCodeIdentical()
          Tests if the hashcode of two identical objects are the same.
 void testReturnOptionsNullOptions()
          Tests the null exception when the options is null.
 void testReturnOptionsNullPhrase()
          Tests the null exception when the phrase is null.
 void testReturnOptionsNullPhrases()
          Tests the null exception when the phrases is null.
 void testReturnOptionsOneNullInOptions()
          Tests the null exception when one element in the options is null.
 void testReturnOptionsOneNullInPhrases()
          Tests the null exception when one element in the phrases is null.
 void testSymmetric()
          Tests the symmetry of equals.
 void testToString1()
          Test the toString method.
 void testToString2()
          Test the toString method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnOptionsTest

public ReturnOptionsTest()
Default constructor.

Method Detail

testCongruent

public void testCongruent()
                   throws ParameterNullException
Tests if two consecutive calls returns the same value.

Throws:
ParameterNullException - Never.

testEqualsObjectDifferent1

public void testEqualsObjectDifferent1()
                                throws ParameterNullException
Tests the equals method with two different objects.

Throws:
ParameterNullException - Never.

testEqualsObjectDifferent2

public void testEqualsObjectDifferent2()
                                throws ParameterNullException
Tests the equals method with two different objects.

Throws:
ParameterNullException - Never.

testEqualsObjectDifferent3

public void testEqualsObjectDifferent3()
                                throws ParameterNullException
Tests the equals method with two different objects.

Throws:
ParameterNullException - Never.

testEqualsObjectIdentical

public void testEqualsObjectIdentical()
                               throws ParameterNullException
Tests the equals method with two identical objects.

Throws:
ParameterNullException - Never.

testEqualsObjectNull

public void testEqualsObjectNull()
                          throws ParameterNullException
Tests the equals method with a null value.

Throws:
ParameterNullException - Never.

testGetOptions

public void testGetOptions()
                    throws ParameterNullException
Tests the array copy of the options.

Throws:
ParameterNullException - Never.

testGetPhrases

public void testGetPhrases()
                    throws ParameterNullException
Tests the array copy of the phrases.

Throws:
ParameterNullException - Never.

testHashCode

public void testHashCode()
                  throws ParameterNullException
Tests that the hashcode is different to 0, -1 and 1.

Throws:
ParameterNullException - Never.

testHashCodeDifferent

public void testHashCodeDifferent()
                           throws ParameterNullException
Tests if the hashcode of two different objects are different.

Throws:
ParameterNullException - Never.

testHashCodeIdentical

public void testHashCodeIdentical()
                           throws ParameterNullException
Tests if the hashcode of two identical objects are the same.

Throws:
ParameterNullException - Never.

testReturnOptionsNullOptions

public void testReturnOptionsNullOptions()
                                  throws ParameterNullException
Tests the null exception when the options is null.

Throws:
ParameterNullException - Never.

testReturnOptionsNullPhrase

public void testReturnOptionsNullPhrase()
                                 throws ParameterNullException
Tests the null exception when the phrase is null.

Throws:
ParameterNullException - Never.

testReturnOptionsNullPhrases

public void testReturnOptionsNullPhrases()
                                  throws ParameterNullException
Tests the null exception when the phrases is null.

Throws:
ParameterNullException - Never.

testReturnOptionsOneNullInOptions

public void testReturnOptionsOneNullInOptions()
                                       throws ParameterNullException
Tests the null exception when one element in the options is null.

Throws:
ParameterNullException - Never.

testReturnOptionsOneNullInPhrases

public void testReturnOptionsOneNullInPhrases()
                                       throws ParameterNullException
Tests the null exception when one element in the phrases is null.

Throws:
ParameterNullException - Never.

testSymmetric

public void testSymmetric()
                   throws ParameterNullException
Tests the symmetry of equals.

Throws:
ParameterNullException - Never.

testToString1

public void testToString1()
                   throws ParameterNullException
Test the toString method.

Throws:
ParameterNullException - Never.

testToString2

public void testToString2()
                   throws ParameterNullException
Test the toString method.

Throws:
ParameterNullException - Never.


Andres Gomez Casanova (AngocA) 2009-2010 Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.