RegionTester

RegionTester - one will be called when running JUnit over...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import junit.framework.TestCase; /** * A JUnit test case class. * Every method starting with the word "test" will be called when running * the test with JUnit. */ public class RegionTester extends TestCase { /** * A test method. * (Replace "X" with a name describing the test. You may write as * many "testSomething" methods in this class as you wish, and each
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: * one will be called when running JUnit over this class.) */ public void testRegion() { Region fr= new Region("Fingerlakes Region", 10123); assertEquals("Fingerlakes Region has area 10123 sq miles", fr.toString()); } }...
View Full Document

This document was uploaded on 02/24/2010.

Ask a homework question - tutors are online