mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Completed working boat selection screen.
When a user selects a different boat, it is sent to all other clients and updates accordingly. Boats are all shown with their correct models in game. #story[1274]
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package seng302.utilities;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import seng302.visualiser.fxObjects.assets_3D.BoatMeshType;
|
||||
|
||||
/**
|
||||
* Basic tests for the next and previous methods
|
||||
* Created by kre39 on 20/09/17.
|
||||
*/
|
||||
public class BoatMeshTypeTest {
|
||||
|
||||
|
||||
@Test
|
||||
public void testNextBoatMeshType() {
|
||||
BoatMeshType currentBoat = BoatMeshType.DINGHY;
|
||||
BoatMeshType nextBoat = BoatMeshType.getNextBoatType(currentBoat);
|
||||
Assert.assertEquals(BoatMeshType.CAT_ATE_A_MERINGUE, nextBoat);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPreviousBoatMeshType() {
|
||||
BoatMeshType currentBoat = BoatMeshType.CAT_ATE_A_MERINGUE;
|
||||
BoatMeshType prevBoat = BoatMeshType.getPrevBoatType(currentBoat);
|
||||
Assert.assertEquals(BoatMeshType.DINGHY, prevBoat);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetBoatMeshType() {
|
||||
BoatMeshType currentBoat = BoatMeshType.getBoatMeshType("DINGHY");
|
||||
Assert.assertEquals(BoatMeshType.DINGHY, currentBoat);
|
||||
BoatMeshType wrongBoat = BoatMeshType.getBoatMeshType("NOT A REAL BOAT");
|
||||
Assert.assertEquals(BoatMeshType.DINGHY, wrongBoat);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user