org.apache.commons.resources.impl
Class BasicMessageTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.resources.impl.BasicMessageTestCase
All Implemented Interfaces:
junit.framework.Test

public class BasicMessageTestCase
extends junit.framework.TestCase

Unit tests for the org.apache.commons.resources.Message class.

Orginally based on org.apache.http.action.TestActionMessage, Revision 1.2.


Field Summary
protected  org.apache.commons.resources.impl.BasicMessage amWithMultipleValues
           
protected  org.apache.commons.resources.impl.BasicMessage amWithNoValue
           
protected  org.apache.commons.resources.impl.BasicMessage amWithOneValue
           
 
Constructor Summary
BasicMessageTestCase(String theName)
          Defines the testcase name for JUnit.
 
Method Summary
static void main(String[] theArgs)
          Start the tests.
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testBasicMessageWithAStringValue()
           
 void testBasicMessageWithNoValue()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

amWithNoValue

protected org.apache.commons.resources.impl.BasicMessage amWithNoValue

amWithOneValue

protected org.apache.commons.resources.impl.BasicMessage amWithOneValue

amWithMultipleValues

protected org.apache.commons.resources.impl.BasicMessage amWithMultipleValues
Constructor Detail

BasicMessageTestCase

public BasicMessageTestCase(String theName)
Defines the testcase name for JUnit.

Parameters:
theName - the testcase's name.
Method Detail

main

public static void main(String[] theArgs)
Start the tests.

Parameters:
theArgs - the arguments. Not used

suite

public static junit.framework.Test suite()
Returns:
a test suite (TestSuite) that includes all methods starting with "test"

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase

testBasicMessageWithNoValue

public void testBasicMessageWithNoValue()

testBasicMessageWithAStringValue

public void testBasicMessageWithAStringValue()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.