Exemplo n.º 1
0
 /**
  * Tests whether parseSabotageCommand() correctly returns the component to sabotage from the given
  * string containing the name of the component.
  */
 @Test
 public void testParseSabotageCommand() {
   assertEquals(falableComponents.Pump1, presenter.parseSabotageCommand("pump1"));
   assertEquals(falableComponents.Pump2, presenter.parseSabotageCommand("pump2"));
   assertEquals(falableComponents.Pump3, presenter.parseSabotageCommand("pump3"));
   assertEquals(falableComponents.Turbine, presenter.parseSabotageCommand("Turbine"));
   assertEquals(
       falableComponents.OperatorSoftare, presenter.parseSabotageCommand("Operator Software"));
   assertEquals(falableComponents.other, presenter.parseSabotageCommand("asefawg24gawg23gq24gq"));
 }