org.apache.commons.resources
Class MessagesTestCase

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

public class MessagesTestCase
extends junit.framework.TestCase

Unit tests for org.apache.commons.resources.Messages.


Field Summary
protected static String CONFIG
           
protected  org.apache.commons.resources.ResourcesFactory factory
           
protected  org.apache.commons.resources.Messages messages
           
protected static String NAME
           
protected  org.apache.commons.resources.Resources resources
           
 
Constructor Summary
MessagesTestCase(String name)
           
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testLocal()
          Test the use of the shortcut getMessages() method.
 void testMessage()
          Test the ability to retrieve messages with replacements.
 void testMessages()
          Test the ability to retrieve messages with replacements.
 void testPristine()
          Test the characteristics of a newly created instance.
 
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

CONFIG

protected static final String CONFIG
See Also:
Constant Field Values

NAME

protected static final String NAME
See Also:
Constant Field Values

factory

protected org.apache.commons.resources.ResourcesFactory factory

resources

protected org.apache.commons.resources.Resources resources

messages

protected org.apache.commons.resources.Messages messages
Constructor Detail

MessagesTestCase

public MessagesTestCase(String name)
Method Detail

setUp

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

suite

public static junit.framework.Test suite()

tearDown

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

testLocal

public void testLocal()
Test the use of the shortcut getMessages() method.


testMessage

public void testMessage()
Test the ability to retrieve messages with replacements.


testMessages

public void testMessages()
Test the ability to retrieve messages with replacements.


testPristine

public void testPristine()
Test the characteristics of a newly created instance.



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