Class OutletResultTest
- java.lang.Object
-
- org.apache.torque.generator.outlet.OutletResultTest
-
public class OutletResultTest extends Object
Component tests for OutletResult.- Version:
- $Id: $
-
-
Constructor Summary
Constructors Constructor Description OutletResultTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestConcatenateByteArray()Checks that the concatenate() method works for normal byte array results.voidtestConcatenateEmpty()Checks that the concatenate() method throws an exception for an empty input.voidtestConcatenateNullArray()Checks that the concatenate() method throws an exception for a null input.voidtestConcatenateNullByteArray()Checks that the concatenate() method works for null byte array results.voidtestConcatenateNullList()Checks that the concatenate() method throws an exception for a null input.voidtestConcatenateNullString()Checks that the concatenate() method works for null String results.voidtestConcatenateStartingWithNullByteArray()Checks that the concatenate() method works if we start with a null byte array result.voidtestConcatenateStartingWithNullString()Checks that the concatenate() method works if we start with a null string result.voidtestConcatenateString()Checks that the concatenate() method works for normal String results.voidtestConcatenateWrongTypes()Checks that the concatenate() throws an exception if OutletResults of different types are concatenated.voidtestEquals()Checks that the equals() method returns the correct content.voidtestGetByteArrayResult()Checks that the getStringResult() method returns the correct content.voidtestGetStringResult()Checks that the getStringResult() method returns the correct content.voidtestIsByteArrayResult()Checks that the isByteArrayResult() method returns the correct content.voidtestIsStringResult()Checks that the isStringResult() method returns the correct content.
-
-
-
Method Detail
-
setUp
public void setUp()
-
testGetStringResult
public void testGetStringResult()
Checks that the getStringResult() method returns the correct content.
-
testGetByteArrayResult
public void testGetByteArrayResult()
Checks that the getStringResult() method returns the correct content.
-
testIsStringResult
public void testIsStringResult()
Checks that the isStringResult() method returns the correct content.
-
testIsByteArrayResult
public void testIsByteArrayResult()
Checks that the isByteArrayResult() method returns the correct content.
-
testConcatenateWrongTypes
public void testConcatenateWrongTypes()
Checks that the concatenate() throws an exception if OutletResults of different types are concatenated.
-
testConcatenateString
public void testConcatenateString() throws GeneratorExceptionChecks that the concatenate() method works for normal String results.- Throws:
GeneratorException
-
testConcatenateNullString
public void testConcatenateNullString() throws GeneratorExceptionChecks that the concatenate() method works for null String results.- Throws:
GeneratorException
-
testConcatenateStartingWithNullString
public void testConcatenateStartingWithNullString() throws GeneratorExceptionChecks that the concatenate() method works if we start with a null string result.- Throws:
GeneratorException
-
testConcatenateByteArray
public void testConcatenateByteArray() throws GeneratorExceptionChecks that the concatenate() method works for normal byte array results.- Throws:
GeneratorException
-
testConcatenateNullByteArray
public void testConcatenateNullByteArray() throws GeneratorExceptionChecks that the concatenate() method works for null byte array results.- Throws:
GeneratorException
-
testConcatenateStartingWithNullByteArray
public void testConcatenateStartingWithNullByteArray() throws GeneratorExceptionChecks that the concatenate() method works if we start with a null byte array result.- Throws:
GeneratorException
-
testConcatenateNullArray
public void testConcatenateNullArray() throws GeneratorExceptionChecks that the concatenate() method throws an exception for a null input.- Throws:
GeneratorException
-
testConcatenateNullList
public void testConcatenateNullList() throws GeneratorExceptionChecks that the concatenate() method throws an exception for a null input.- Throws:
GeneratorException
-
testConcatenateEmpty
public void testConcatenateEmpty() throws GeneratorExceptionChecks that the concatenate() method throws an exception for an empty input.- Throws:
GeneratorException
-
testEquals
public void testEquals()
Checks that the equals() method returns the correct content.
-
-