Coverage Summary for Class: PathTest (io.team9.game.tests.AI)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| PathTest | 100% (1/1) | 100% (2/2) | 100% (6/6) |
1 package io.team9.game.tests.AI; 2 import com.mygdx.game.AI.Node; 3 import com.mygdx.game.AI.Path; 4 import io.team9.game.tests.GdxTestRunner; 5 import org.junit.Test; 6 import org.junit.runner.RunWith; 7 8 import static org.junit.Assert.*; 9 @RunWith(GdxTestRunner.class) 10 public class PathTest { 11 12 @Test 13 public void pathCreationTest(){ 14 Node a = new Node(0,0); 15 Node b = new Node(10,10); 16 Path path = new Path(a,b); 17 18 assertEquals("Get from node",a,path.getFromNode()); 19 assertEquals("Get to node",b,path.getToNode()); 20 } 21 }