Class OutletResultTest
java.lang.Object
org.apache.torque.generator.outlet.OutletResultTest
Component tests for OutletResult.
- Version:
- $Id: $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidChecks that the concatenate() method works for normal byte array results.voidChecks that the concatenate() method throws an exception for an empty input.voidChecks that the concatenate() method throws an exception for a null input.voidChecks that the concatenate() method works for null byte array results.voidChecks that the concatenate() method throws an exception for a null input.voidChecks that the concatenate() method works for null String results.voidChecks that the concatenate() method works if we start with a null byte array result.voidChecks that the concatenate() method works if we start with a null string result.voidChecks that the concatenate() method works for normal String results.voidChecks that the concatenate() throws an exception if OutletResults of different types are concatenated.voidChecks that the equals() method returns the correct content.voidChecks that the getStringResult() method returns the correct content.voidChecks that the getStringResult() method returns the correct content.voidChecks that the isByteArrayResult() method returns the correct content.voidChecks that the isStringResult() method returns the correct content.
-
Constructor Details
-
OutletResultTest
public OutletResultTest()
-
-
Method Details
-
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
Checks that the concatenate() method works for normal String results.- Throws:
GeneratorException
-
testConcatenateNullString
Checks that the concatenate() method works for null String results.- Throws:
GeneratorException
-
testConcatenateStartingWithNullString
Checks that the concatenate() method works if we start with a null string result.- Throws:
GeneratorException
-
testConcatenateByteArray
Checks that the concatenate() method works for normal byte array results.- Throws:
GeneratorException
-
testConcatenateNullByteArray
Checks that the concatenate() method works for null byte array results.- Throws:
GeneratorException
-
testConcatenateStartingWithNullByteArray
Checks that the concatenate() method works if we start with a null byte array result.- Throws:
GeneratorException
-
testConcatenateNullArray
Checks that the concatenate() method throws an exception for a null input.- Throws:
GeneratorException
-
testConcatenateNullList
Checks that the concatenate() method throws an exception for a null input.- Throws:
GeneratorException
-
testConcatenateEmpty
Checks 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.
-