diff --git a/README.md b/README.md index 7cbe42e..d09a313 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run `mvn clean test` to make sure you have JDK 8 and all dependencies in place. ### IDE -Run `Lesson00_HelloWorldTest.java` from your favourite IDE and make sure it compiles and passes. +Run `J01_HelloWorldTest.java` from your favourite IDE and make sure it compiles and passes. ## Troubleshooting @@ -18,7 +18,7 @@ If you see this error message during maven build: [INFO] BUILD FAILURE ... - [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project lazyseq: + [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project java8: Fatal error compiling: invalid target release: 1.8 -> [Help 1] it means you are not compiling using Java 8. Download JDK 8 and let maven use it: diff --git a/src/test/java/com/nurkiewicz/java8/J03_FunctionTest.java b/src/test/java/com/nurkiewicz/java8/J03_FunctionTest.java index c2507e2..993114e 100644 --- a/src/test/java/com/nurkiewicz/java8/J03_FunctionTest.java +++ b/src/test/java/com/nurkiewicz/java8/J03_FunctionTest.java @@ -17,11 +17,11 @@ import static org.mockito.Mockito.mock; /** - * - Use explicit Function, Predicate, Supplier, Consuner (like Guava) + * - Use explicit Function, Predicate, Supplier, Consumer (like Guava) + * - Higher order functions - returning lambdas * - Change Encrypter to class taking Function * - Turning Function, Supplier and Producer into lambda * - Method references (method, static method, constructor) - * - Higher order functions - returning lambdas */ @Ignore public class J03_FunctionTest { diff --git a/src/test/java/com/nurkiewicz/java8/J08_NewMapMethodsTest.java b/src/test/java/com/nurkiewicz/java8/J08_NewMapMethodsTest.java index 506c3f4..13f1d49 100644 --- a/src/test/java/com/nurkiewicz/java8/J08_NewMapMethodsTest.java +++ b/src/test/java/com/nurkiewicz/java8/J08_NewMapMethodsTest.java @@ -48,7 +48,7 @@ public void shouldReturnTotalWords() throws Exception { } @Test - public void shouldReturnFourMostCommonWords() throws Exception { + public void shouldReturnFiveMostCommonWords() throws Exception { final String loremIpsum = LoremIpsum.text(); Map wordCount = LoremIpsum.wordCount(loremIpsum);