FileDocCategorySizeDatePackage
TestText.javaAPI DocApache Axis 1.41911Sat Apr 22 18:57:28 BST 2006test.message

TestText

public class TestText extends TestCase
Test case for {@link Text}.
author
Ian P. Springer

Fields Summary
private static final String
VANILLA
private static final String
CHOCOLATE
private static final String
NULL
private org.apache.axis.message.Text
vanillaText
private org.apache.axis.message.Text
chocolateText
private org.apache.axis.message.Text
nullText
private org.apache.axis.message.Text
vanillaText2
Constructors Summary
Methods Summary
protected voidsetUp()


        
    
        vanillaText = new org.apache.axis.message.Text( VANILLA );
        vanillaText2 = new org.apache.axis.message.Text( VANILLA );
        chocolateText = new org.apache.axis.message.Text( CHOCOLATE );
        nullText = new org.apache.axis.message.Text( NULL );
    
public voidtestEquals()
Test for {@link org.apache.axis.message.Text#equals(Object)}.

throws
Exception on error

        assertEquals( vanillaText, vanillaText2 );
        assertEquals( vanillaText2, vanillaText );
        assertTrue( !vanillaText.equals( chocolateText ) );
        assertTrue( !chocolateText.equals( vanillaText ) );
        assertTrue( !vanillaText.equals( null ) );
        assertTrue( !vanillaText.equals( VANILLA ) );
    
public voidtestHashCode()
Test for {@link org.apache.axis.message.Text#hashCode()}.

throws
Exception on error

        assertEquals( VANILLA.hashCode(), vanillaText.hashCode() );
        assertEquals( 0, nullText.hashCode() );
    
public voidtestToString()
Test for {@link org.apache.axis.message.Text#toString()}.

throws
Exception on error

        assertEquals( VANILLA, vanillaText.toString() );
        assertEquals( NULL, nullText.toString() );