Create Test Case

COS Test Framework is based upon test cases. Each test case is a Java class that defines a granular set of test methods. JUnit4 is used to annotate the Java class to identify the test methods.

Example


package test.cos.kernel;

import static org.junit.Assert.*;
import org.junit.Test;

import com.compuware.cos.internal.Activator;

public class TestInternalActivator {

	@Test
	public void testGetInstance() {
		Activator activator = Activator.getInstance();
		assertNotNull("COSKernel 'Activator' is not defined", activator);
	}

}