From de446f5443cbb75a440211293b640860daaaceb8 Mon Sep 17 00:00:00 2001 From: Stephen Braimah Date: Wed, 11 Jan 2017 21:54:53 +0000 Subject: [PATCH] Revert: added test class Java8FindAnyFindFirstTest --- .../java8/Java8FindAnyFindFirstTest.java | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 core-java/src/test/java/com/baeldung/java8/Java8FindAnyFindFirstTest.java 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()); - } - - } -}