The BlueJ User Manual

For COMP111 Students at Franklin University

Getting Started

* Run a Junit test

- Double-click the unit test class and add the following test codes:

@Test

              public void testHelloWorld() {

        assertEquals("HelloWorld", HelloWorld.mainStr);

 }

- Right-click the unit test class and select Test All

- Observe the Test Results window

Now let's learn how to submit a Java program to Web-CAT!

Go to Previous                                                                               Go to Next

Navigation

To help you get started with the BlueJ, a simple java program will be demonstrated step-by-step as the following:

* Create a Java project

* Create a Java class

* Run a Java program

* Run a JUnit test

* Submit a Java program to Web-CAT