Lab 2


Home - Syllabus - Schedule - Project


Description

During this lab you will run a JUnit test suite and add a JUnit test to it. The test will make use of mock objects. Then you will make changes to an existing Ant build file.

Task 0

Checkout a working copy of your project and change to the working copy directory.

Task 1

Write a JUnit test for the IRCClient class that uses mock objects. To the IRCClientTest, add a JUnit test called testServerNickMessageWithInUseError. The test represents an invocation of the /nick command to which the server replies with a ERR_NICKNAMEINUSE.

Task 2

Modify the Ant build file. When you are done, only the targets listed below may be defined.

Check List


Useful Links



Valid XHTML 1.0 Strict