Skip to content

Commit

Permalink
fixed this test file for some reason when there's an outstanding pr
Browse files Browse the repository at this point in the history
TheRealEmissions committed May 23, 2024
1 parent 89a1898 commit b234329
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions game/tests/src/com/eng1/gdxtesting/AssetTests.java
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

import static org.junit.Assert.assertTrue;

import com.eng1.game.assets.images.ImageAssets;
import com.eng1.game.game.player.Player;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -12,16 +13,16 @@
public class AssetTests {
@Test
public void testCharacter1AssetExists() {
assertTrue("Testing whether the asset for character 1 exists", Gdx.files.internal(Player.CHAR1).exists());
assertTrue("Testing whether the asset for character 1 exists", ImageAssets.PLAYER_CHARACTER_1.get() != null);
}

@Test
public void testCharacter2AssetExists() {
assertTrue("Testing whether the asset for character 2 exists", Gdx.files.internal(Player.CHAR2).exists());
assertTrue("Testing whether the asset for character 2 exists", ImageAssets.PLAYER_CHARACTER_2.get() != null);
}

@Test
public void testCharacter3AssetExists() {
assertTrue("Testing whether the asset for character 3 exists", Gdx.files.internal(Player.CHAR3).exists());
assertTrue("Testing whether the asset for character 3 exists", ImageAssets.PLAYER_CHARACTER_3.get() != null);
}
}

0 comments on commit b234329

Please sign in to comment.