ps0.test
Class RandomHelloTest

java.lang.Object
  extended by TestCase
      extended by 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.


Constructor Summary
RandomHelloTest()
           
 
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
 

Constructor Detail

RandomHelloTest

public RandomHelloTest()
Method Detail

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.