Coverage Summary for Class: RenderingManagerTest (io.team9.game.tests.Managers)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| RenderingManagerTest | 100% (1/1) | 100% (2/2) | 100% (5/5) |
1 package io.team9.game.tests.Managers; 2 3 import com.badlogic.gdx.graphics.OrthographicCamera; 4 import com.badlogic.gdx.graphics.g2d.Batch; 5 import com.badlogic.gdx.graphics.g2d.SpriteBatch; 6 import com.mygdx.game.Managers.DifficultyManager; 7 import com.mygdx.game.Managers.RenderingManager; 8 import com.mygdx.utils.Constants; 9 import io.team9.game.tests.GdxTestRunner; 10 import org.junit.Test; 11 import org.junit.runner.RunWith; 12 13 import static org.junit.Assert.assertEquals; 14 15 @RunWith(GdxTestRunner.class) 16 public class RenderingManagerTest { 17 18 19 @Test 20 public void testSetCamera() { 21 RenderingManager manager = new RenderingManager(); 22 OrthographicCamera cam = new OrthographicCamera(); 23 manager.setCamera(cam); 24 assertEquals("true", manager.getCamera(), cam); 25 } 26 27 28 29 30 }