blob: 1d79c9d76be5d2082e795728f25ce9f7b5597ef3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package ca.mokhan.test;
import Q7.*;
import java.io.*;
import java.text.*;
import java.util.*;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
public class PersonTest extends TestCase {
private Person subject;
public PersonTest(String testName) {
super(testName);
this.subject = new Person("mo", 1, 1);
}
public static Test suite() {
return new TestSuite(PersonTest.class);
}
public void test_getBMI_underweight() {
this.subject.setHeight(72);
this.subject.setWeight(100);
assertEquals("Underweight", this.subject.getCategory());
}
}
|