Skip to content

Commit b2c533f

Browse files
committed
Better names for test methods
1 parent e770ab3 commit b2c533f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/de/codecentric/java8examples/lambdas/LambdaExampleTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public boolean test(Person person) {
4343
}
4444

4545
@Test
46-
public void printAge() throws Exception {
46+
public void getAgeFromWrappedElementViaFunctionApplication() throws Exception {
4747
// type is inferred from context
4848
assertEquals("Parker", example.apply(p -> p.getLastName()));
4949
}
5050

5151
@Test
52-
public void transgendering() throws Exception {
52+
public void changeStateOfWrappedElementViaConsumer() throws Exception {
5353
// this will change the state of the wrapped element!
5454
example.consume(p -> p.setGender(oppositeOf(p.getGender())));
5555

0 commit comments

Comments
 (0)