We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e770ab3 commit b2c533fCopy full SHA for b2c533f
1 file changed
src/test/java/de/codecentric/java8examples/lambdas/LambdaExampleTest.java
@@ -43,13 +43,13 @@ public boolean test(Person person) {
43
}
44
45
@Test
46
- public void printAge() throws Exception {
+ public void getAgeFromWrappedElementViaFunctionApplication() throws Exception {
47
// type is inferred from context
48
assertEquals("Parker", example.apply(p -> p.getLastName()));
49
50
51
52
- public void transgendering() throws Exception {
+ public void changeStateOfWrappedElementViaConsumer() throws Exception {
53
// this will change the state of the wrapped element!
54
example.consume(p -> p.setGender(oppositeOf(p.getGender())));
55
0 commit comments