test names refactoring to given when then

This commit is contained in:
Korneliusz Wandzel 2018-01-30 18:58:25 +01:00
parent 7e9794256d
commit 8b8a6a6e54
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ public class BoatTest {
Boat boat; Boat boat;
@Test @Test
public void engineInjectionTest() { public void givenAutowired_whenOnSetter_thenInjected() {
assertNotNull(boat); assertNotNull(boat);
assertNotNull(boat.getEngine()); assertNotNull(boat.getEngine());
} }

View File

@ -16,7 +16,7 @@ public class CarTest {
Car car; Car car;
@Test @Test
public void engineInjectionTest() { public void givenAutowired_whenOnField_thenSetterInjected() {
assertNotNull(car); assertNotNull(car);
assertNotNull(car.getEngine()); assertNotNull(car.getEngine());
} }

View File

@ -16,7 +16,7 @@ public class LawnMowerTest {
LawnMower lawnMower; LawnMower lawnMower;
@Test @Test
public void engineInjectionTest() { public void givenAutowired_whenOnField_thenConstructorInjected() {
assertNotNull(lawnMower); assertNotNull(lawnMower);
assertNotNull(lawnMower.getEngine()); assertNotNull(lawnMower.getEngine());
} }

View File

@ -16,7 +16,7 @@ public class RocketTest {
Rocket rocket; Rocket rocket;
@Test @Test
public void engineInjectionTest() { public void givenAutowired_whenOnConstructor_thenInjected() {
assertNotNull(rocket); assertNotNull(rocket);
assertNotNull(rocket.getEngine()); assertNotNull(rocket.getEngine());
} }