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;
@Test
public void engineInjectionTest() {
public void givenAutowired_whenOnSetter_thenInjected() {
assertNotNull(boat);
assertNotNull(boat.getEngine());
}

View File

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

View File

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

View File

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