org.hd.d.pg2k.test.dev
Class TinyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hd.d.pg2k.test.dev.TinyTest
All Implemented Interfaces:
junit.framework.Test

public final class TinyTest
extends junit.framework.TestCase

Tiny test that can be used to ensure that JUnit mechanism is behaving. This is useful as a preliminary in use from command-line, IDE, etc.


Field Summary
private  boolean flag
          Only becomes true if setUp() does its thang.
 
Constructor Summary
TinyTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
          Do any setup needed for the tests.
protected  void tearDown()
          Do any clearup needed after the tests.
 void testOut()
          Make sure that the streams are set up.
 void testSetup()
          Test that setup/cleanup works.
 void testTruth()
          Simplest possible test.
 
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

flag

private boolean flag
Only becomes true if setUp() does its thang.

Constructor Detail

TinyTest

public TinyTest(java.lang.String name)
Method Detail

testTruth

public void testTruth()
Simplest possible test.


testSetup

public void testSetup()
Test that setup/cleanup works.


testOut

public void testOut()
Make sure that the streams are set up.


setUp

protected void setUp()
Do any setup needed for the tests.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Do any clearup needed after the tests.

Overrides:
tearDown in class junit.framework.TestCase

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.