diff --git a/core-java/src/test/java/com/baeldung/java8/Java8FindAnyFindFirstTest.java b/core-java/src/test/java/com/baeldung/java8/Java8FindAnyFindFirstTest.java deleted file mode 100644 index a584c11779..0000000000 --- a/core-java/src/test/java/com/baeldung/java8/Java8FindAnyFindFirstTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.baeldung.java8; - -import org.junit.Test; - -import java.util.Arrays; -import java.util.List; -import java.util.Optional; - -import static org.junit.Assert.assertEquals; - -/** - * Created by Steve on 1/10/2017. - */ -public class Java8FindAnyFindFirstTest { - - @Test - public void createStream_whenFindAnyResultIsPresent_thenCorrect() { - - List list = Arrays.asList("A","B","C","D"); - - Optional result = list.stream().findAny(); - - if(result.isPresent()){ - System.out.println(result.get()); - } - - } - - @Test - public void createStream_whenFindFirstResultIsPresent_thenCorrect() { - - List list = Arrays.asList("A","B","C","D"); - - Optional result = list.stream().findFirst(); - - if(result.isPresent()){ - System.out.println(result.get()); - } - - } -}