Y2S1-Seabed_Explorer/test/state_pattern_tests/StateTransitionTest.java

20 lines
426 B
Java
Raw Normal View History

2020-06-07 21:14:52 +00:00
package state_pattern_tests;
import org.junit.Test;
import static org.junit.Assert.*;
import seabedexplorer.submersible.ROV;
import seabedexplorer.submersible.equipment.locationtracking.Location;
public class StateTransitionTest {
@Test
public void StateTransitionTest()
{
ROV rov = new ROV();
rov.move(new Location(5, 5, 5));
assertEquals(rov.getStateName(), "Idle");
}
}