Fix test names

This commit is contained in:
Mariusz Kuligowski 2018-04-08 19:45:33 +02:00
parent 651fe2c0fb
commit 0eb71c85d9
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class CarEngineFacadeTest {
@Test @Test
public void testStartEngine() { public void whenStartEngine_thenAllNecessaryActionsPerformed() {
CarEngineFacade carEngineFacade = new CarEngineFacade(); CarEngineFacade carEngineFacade = new CarEngineFacade();
carEngineFacade.startEngine(); carEngineFacade.startEngine();
assertTrue(appender.logContains("Fuel injector ready to inject fuel.")); assertTrue(appender.logContains("Fuel injector ready to inject fuel."));
@ -49,7 +49,7 @@ public class CarEngineFacadeTest {
@Test @Test
public void testStopEngine() { public void whenStopEngine_thenAllNecessaryActionsPerformed() {
CarEngineFacade carEngineFacade = new CarEngineFacade(); CarEngineFacade carEngineFacade = new CarEngineFacade();
carEngineFacade.stopEngine(); carEngineFacade.stopEngine();
assertTrue(appender.logContains("Stopping Fuel injector...")); assertTrue(appender.logContains("Stopping Fuel injector..."));