ps0.test
Class RandomHelloTest
java.lang.Object
TestCase
ps0.test.RandomHelloTest
public class RandomHelloTest
- extends TestCase
RandomHelloTest is a simple test of the RandomHello class that is
to be written by the students. This test just makes sure that the
program does not crash and that it prints at least 5 different
greetings.
Method Summary |
void |
testCrash()
Tests that RandomHello does not crash. |
void |
testGreetings()
Tests that the greetings are indeed random and that there are
at least 5 different ones. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomHelloTest
public RandomHelloTest()
testCrash
public void testCrash()
- Tests that RandomHello does not crash.
testGreetings
public void testGreetings()
- Tests that the greetings are indeed random and that there are
at least 5 different ones.