package io.github.lukehutch.fastclasspathscanner.test;

import static org.assertj.core.api.Assertions.assertThat;

import java.util.stream.Collectors;

import org.junit.Test;

import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner;
import io.github.lukehutch.fastclasspathscanner.scanner.ScanResult;

public class Java8Test {
    @Test
    public void stream() throws Exception {
        final ScanResult scanResult = new FastClasspathScanner().scan();
        assertThat(scanResult.getClassNameToClassInfo().values().stream()
                .filter(c -> c.getClassName().contains("ClsSub")).map(c -> c.getClassName())
                .collect(Collectors.toSet())).containsExactly(
                        "io.github.lukehutch.fastclasspathscanner.test.whitelisted.ClsSub",
                        "io.github.lukehutch.fastclasspathscanner.test.whitelisted.ClsSubSub");
    }
}

@@ -479,16 +479,36 @@
 ertThat(
+ //%0A                
 scanResu
@@ -570,16 +570,24 @@
         
+        
 .filter(
@@ -627,16 +627,44 @@
 lsSub%22))
+ //%0A                        
 .map(c -
@@ -682,17 +682,25 @@
 sName())
-%0A
+ //%0A     
         
@@ -707,16 +707,19 @@
         
+   
 .collect
@@ -743,25 +743,11 @@
 ()))
-.containsExactly(
+ //
 %0A   
@@ -759,32 +759,57 @@
                 
+        .containsExactly(
 %22io.github.lukeh
@@ -860,16 +860,32 @@
 lsSub%22,%0A
+                
         

Fix formatting