TestClassOne.java Source code

Java tutorial

Introduction

Here is the source code for TestClassOne.java

Source

import junit.framework.*;

public class TestClassOne extends TestCase {

    public TestClassOne(String method) {
        super(method);
    }

    public void testAddition() {
        assertEquals(4, 2 + 2);
    }

    public void testSubtraction() {
        assertEquals(0, 2 - 2);
    }
}