Coverage Summary for Class: AssetTests (io.team9.game.tests)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| AssetTests | 100% (1/1) | 100% (38/38) | 100% (75/75) |
1 package io.team9.game.tests; 2 3 import com.badlogic.gdx.Gdx; 4 import org.junit.Test; 5 import org.junit.runner.RunWith; 6 import static org.junit.Assert.assertTrue; 7 8 @RunWith(GdxTestRunner.class) 9 public class AssetTests { 10 11 // Root assets directory 12 @Test 13 public void testBeachTilesetAssetPNGExists() { 14 assertTrue("This test will only pass when the Beach Tileset.png asset exists", Gdx.files 15 .internal("Beach Tileset.png").exists()); 16 } 17 18 @Test 19 public void testBeachTilesetTSXAssetExists() { 20 assertTrue("This test will only pass when the Beach Tileset.tsx asset exists", Gdx.files 21 .internal("Beach Tileset.tsx").exists()); 22 } 23 24 @Test 25 public void testBoatsTXTAssetExists() { 26 assertTrue("This test will only pass when the Boats.txt asset exists", Gdx.files 27 .internal("Boats.txt").exists()); 28 } 29 30 @Test 31 public void testBuildingsTXTAssetExists() { 32 assertTrue("This test will only pass when the Beach Buildings.txt asset exists", Gdx.files 33 .internal("Buildings.txt").exists()); 34 } 35 36 @Test 37 public void testChestAssetExists() { 38 assertTrue("This test will only pass when the Chest.png asset exists", Gdx.files 39 .internal("Chest.png").exists()); 40 } 41 42 @Test 43 public void testGameSettingsJSONAssetExists() { 44 assertTrue("This test will only pass when the GameSettings.json asset exists", Gdx.files 45 .internal("GameSettings.json").exists()); 46 } 47 48 @Test 49 public void testMapTMXAssetExists() { 50 assertTrue("This test will only pass when the Map.tmx asset exists", Gdx.files 51 .internal("Map.tmx").exists()); 52 } 53 54 @Test 55 public void testArialTTFAssetExists() { 56 assertTrue("This test will only pass when the arial.ttf asset exists", Gdx.files 57 .internal("arial.ttf").exists()); 58 } 59 60 @Test 61 public void testBoatsAssetExists() { 62 assertTrue("This test will only pass when the boats.png asset exists", Gdx.files 63 .internal("boats.png").exists()); 64 } 65 66 @Test 67 public void testMenuBGAssetExists() { 68 assertTrue("This test will only pass when the menuBG.jpg asset exists", Gdx.files 69 .internal("menuBG.jpg").exists()); 70 } 71 72 @Test 73 public void testNewMenuBGAssetExists() { 74 assertTrue("This test will only pass when the newmenuBG.jpg asset exists", Gdx.files 75 .internal("newmenuBG.jpg").exists()); 76 } 77 78 @Test 79 public void testOtherAssetExists() { 80 assertTrue("This test will only pass when the other.png asset exists", Gdx.files 81 .internal("other.png").exists()); 82 } 83 84 @Test 85 public void testShipAssetExists() { 86 assertTrue("This test will only pass when the ship.png asset exists", Gdx.files 87 .internal("ship.png").exists()); 88 } 89 90 @Test 91 public void testShopBGAssetExists() { 92 assertTrue("This test will only pass when the shopBG.jpg asset exists", Gdx.files 93 .internal("shopBG.jpg").exists()); 94 } 95 96 @Test 97 public void testSaveXMLExists() { 98 assertTrue("This test will only pass when the mac_save.xml asset exists", Gdx.files 99 .internal("mac_save.xml").exists()); 100 } 101 102 @Test 103 public void testTestXMLAssetExists() { 104 assertTrue("This test will only pass when the restart.xml asset exists", Gdx.files 105 .internal("restart.xml").exists()); 106 } 107 108 @Test 109 public void testMonsterDownAssetExists() { 110 assertTrue("This test will only pass when the monster-down.png asset exists", Gdx.files 111 .internal("monster-down.png").exists()); 112 } 113 114 @Test 115 public void testMonsterLeftAssetExists() { 116 assertTrue("This test will only pass when the monster-left.png asset exists", Gdx.files 117 .internal("monster-left.png").exists()); 118 } 119 120 @Test 121 public void testMonsterRightAssetExists() { 122 assertTrue("This test will only pass when the monster-right.png asset exists", Gdx.files 123 .internal("monster-right.png").exists()); 124 } 125 126 @Test 127 public void testMonsterUpAssetExists() { 128 assertTrue("This test will only pass when the monster-up.png asset exists", Gdx.files 129 .internal("monster-up.png").exists()); 130 } 131 132 @Test 133 public void testMonsterUpLeftAssetExists() { 134 assertTrue("This test will only pass when the monster-up-left.png asset exists", Gdx.files 135 .internal("monster-up-left.png").exists()); 136 } 137 138 @Test 139 public void testMonsterUpRightAssetExists() { 140 assertTrue("This test will only pass when the monster-up-right.png asset exists", Gdx.files 141 .internal("monster-up-right.png").exists()); 142 } 143 144 @Test 145 public void testMonsterDownLeftAssetExists() { 146 assertTrue("This test will only pass when the monster-down-left.png asset exists", Gdx.files 147 .internal("monster-down-left.png").exists()); 148 } 149 150 @Test 151 public void testMonsterDownRightAssetExists() { 152 assertTrue("This test will only pass when the monster-down-right.png asset exists", Gdx.files 153 .internal("monster-down-right.png").exists()); 154 } 155 156 @Test 157 public void testWhirlpoolAssetExists() { 158 assertTrue("This test will only pass when the whirlpool.png asset exists", Gdx.files 159 .internal("whirlpool.png").exists()); 160 } 161 162 // /UISkin files 163 164 @Test 165 public void testDefaultFNTAssetExists() { 166 assertTrue("This test will only pass when the /UISkin/default.fnt asset exists", Gdx.files 167 .internal("UISkin/default.fnt").exists()); 168 } 169 170 @Test 171 public void testUISkinDefaultAssetExists() { 172 assertTrue("This test will only pass when the /UISkin/default.png asset exists", Gdx.files 173 .internal("UISkin/default.png").exists()); 174 } 175 176 @Test 177 public void testSkinATLASAssetExists() { 178 assertTrue("This test will only pass when the /UISkin/skin.atlas asset exists", Gdx.files 179 .internal("UISkin/skin.atlas").exists()); 180 } 181 182 @Test 183 public void testSkinJSONAssetExists() { 184 assertTrue("This test will only pass when the /UISkin/skin.json asset exists", Gdx.files 185 .internal("UISkin/skin.json").exists()); 186 } 187 188 @Test 189 public void testUISkinAssetExists() { 190 assertTrue("This test will only pass when the /UISkin/uiskin.png asset exists", Gdx.files 191 .internal("UISkin/uiskin.png").exists()); 192 } 193 194 195 // /powerups files 196 @Test 197 public void testPowerup1AssetExists() { 198 assertTrue("This test will only pass when the powerups/powerup1.png asset exists", Gdx.files 199 .internal("powerups/powerup1.png").exists()); 200 } 201 202 @Test 203 public void testPowerup2AssetExists() { 204 assertTrue("This test will only pass when the powerups/powerup2.png asset exists", Gdx.files 205 .internal("powerups/powerup2.png").exists()); 206 } 207 208 @Test 209 public void testPowerup3AssetExists() { 210 assertTrue("This test will only pass when the powerups/powerup3.png asset exists", Gdx.files 211 .internal("powerups/powerup3.png").exists()); 212 } 213 214 @Test 215 public void testPowerup4AssetExists() { 216 assertTrue("This test will only pass when the powerups/powerup4.png asset exists", Gdx.files 217 .internal("powerups/powerup4.png").exists()); 218 } 219 220 @Test 221 public void testPowerup5AssetExists() { 222 assertTrue("This test will only pass when the powerups/powerup5.png asset exists", Gdx.files 223 .internal("powerups/powerup5.png").exists()); 224 } 225 226 @Test 227 public void testPowerup6AssetExists() { 228 assertTrue("This test will only pass when the powerups/powerup6.png asset exists", Gdx.files 229 .internal("powerups/powerup6.png").exists()); 230 } 231 232 @Test 233 public void testPointsAssetExists() { 234 assertTrue("This test will only pass when the points.png asset exists", Gdx.files 235 .internal("points.png").exists()); 236 } 237 }