Download presentation
Presentation is loading. Please wait.
1
import junit. framework
import junit.framework.TestCase; public class PandaTester extends TestCase { public void testConstructor() { Panda p1 = new Panda("Shuaung",2,null); assertEquals("Shuang",p1.getName()); assertEquals(2,p1.getChild()); assertEquals(null,p1.getFather()); Panda p2 = new Panda("Lin",3,p1); assertEquals("Lin",p2.getName()); assertEquals(3,p2.getChild()); assertEquals(p1,p2.getFather()); } } An example of JUnit test class showing its contents
2
A line representing the entire set of integer
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.