public abstract class

NamedTestCase

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ bucket.test.NamedTestCase

Class Overview

Superclass for test-cases that want a nicely displayed name for tests instead of the default mashed-together-stuff.

Summary

Public Constructors
NamedTestCase()
NamedTestCase(String testName)
Constructs a test case with the given name.
Public Methods
String getName()
This makes tests return a nice name.
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public NamedTestCase ()

public NamedTestCase (String testName)

Constructs a test case with the given name. eg: new NamedTestCase("testSearchForGold"); will create a test case for the testSearchForGold test.

Parameters
testName the name of the test method to use.

Public Methods

public String getName ()

This makes tests return a nice name. (ie instead of testSearchForGold the test is named "search for gold")