Coverage Summary for Class: DifficultManagerTest (io.team9.game.tests.Managers)

Class Class, % Method, % Line, %
DifficultManagerTest 100% (1/1) 100% (4/4) 100% (13/13)


1 package io.team9.game.tests.Managers; 2  3 import com.mygdx.game.Managers.DifficultyManager; 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.assertEquals; 9 import static org.junit.Assert.assertTrue; 10  11 @RunWith(GdxTestRunner.class) 12 public class DifficultManagerTest { 13  14  @Test 15  public void testNormal() { 16  DifficultyManager manager = new DifficultyManager(); 17  manager.SelectNormal(); 18  String difficulty ="n"; 19  assertEquals("true", manager.getDifficulty(), difficulty); 20  } 21  22  @Test 23  public void testEasy() { 24  DifficultyManager manager = new DifficultyManager(); 25  manager.SelectEasy(); 26  String difficulty ="e"; 27  assertEquals("true", manager.getDifficulty(), difficulty); 28  } 29  30  @Test 31  public void testHard() { 32  DifficultyManager manager = new DifficultyManager(); 33  manager.SelectHard(); 34  String difficulty ="h"; 35  assertEquals("true", manager.getDifficulty(), difficulty); 36  } 37  38 }