Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.util
Class TestToStringBuilder  view TestToStringBuilder download TestToStringBuilder.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.hivemind.test.HiveMindTestCase
              extended byorg.apache.hivemind.util.TestToStringBuilder
All Implemented Interfaces:
junit.framework.Test

public class TestToStringBuilder
extends org.apache.hivemind.test.HiveMindTestCase

Tests for the ToStringBuilder class.


Nested Class Summary
 
Nested classes inherited from class org.apache.hivemind.test.HiveMindTestCase
 
Field Summary
private  int _originalDefaultMode
           
 
Fields inherited from class org.apache.hivemind.test.HiveMindTestCase
_appender, _interceptedLoggerName
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestToStringBuilder()
           
 
Method Summary
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Removes the appender that may have been setup by HiveMindTestCase.interceptLogging(String)>HiveMindTestCase.interceptLogging(String) 55 .
 void testAppendBoolean()
           
 void testAppendByte()
           
 void testAppendInt()
           
 void testAppendNullObject()
           
 void testAppendNullString()
           
 void testAppendObject()
           
 void testAppendShort()
           
 void testAppendString()
           
 void testAppendTwo()
           
 void testNull()
           
 void testSetDefault()
           
 void testSimple()
           
 void testWithHashCode()
           
 
Methods inherited from class org.apache.hivemind.test.HiveMindTestCase
addControl, assertExceptionRegexp, assertExceptionSubstring, assertListsEqual, assertListsEqual, assertLoggedMessage, assertLoggedMessage, assertLoggedMessagePattern, assertLoggedMessagePattern, assertLoggedMessages, assertRegexp, buildFrameworkRegistry, buildFrameworkRegistry, buildFrameworkRegistry, buildMinimalRegistry, fabricateLocation, findNestedException, getClassResolver, getControl, getInterceptedLogEvents, getResource, interceptLogging, matches, newControl, newLocation, newMock, replayControls, resetControls, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setReturnValue, setThrowable, unreachable, verifyControls
 
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

_originalDefaultMode

private int _originalDefaultMode
Constructor Detail

TestToStringBuilder

public TestToStringBuilder()
Method Detail

tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: org.apache.hivemind.test.HiveMindTestCase
Removes the appender that may have been setup by HiveMindTestCase.interceptLogging(String)>HiveMindTestCase.interceptLogging(String) 55 . Also, invokes PropertyUtils.clearCache() 55 .


setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testNull

public void testNull()

testSimple

public void testSimple()

testWithHashCode

public void testWithHashCode()

testSetDefault

public void testSetDefault()

testAppendString

public void testAppendString()

testAppendNullString

public void testAppendNullString()

testAppendTwo

public void testAppendTwo()

testAppendObject

public void testAppendObject()

testAppendNullObject

public void testAppendNullObject()

testAppendBoolean

public void testAppendBoolean()

testAppendByte

public void testAppendByte()

testAppendShort

public void testAppendShort()

testAppendInt

public void testAppendInt()