new file: resources/AllgemeinTest/StreamTest.jav

modified:   src/test/java/AllgemeinTest.java
This commit is contained in:
pl@gohorb.ba-horb.de 2023-05-22 14:40:35 +02:00
parent 66944cf3c1
commit 58a72b0286
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
import java.util.stream.Stream;
import java.util.Vector;
import java.lang.Integer;
class StreamTest {
m() {
var vecInt = new Vector<Integer>();
var strInt = vecInt.stream();
var dup = x -> x*2;
strInt.map(dup);
return dup;
}
}

View File

@ -40,7 +40,7 @@ public class AllgemeinTest {
//String className = "FCTest3";
//String className = "Var";
//String className = "Put";
String className = "Twice";
//String className = "Twice";
//String className = "TestSubTypless";
//String className = "addList";
//String className = "M";
@ -55,6 +55,7 @@ public class AllgemeinTest {
//String className = "Pair";
//String className = "UseWildcardPair";
//String className = "Assign";
String className = "StreamTest";
//PL 2019-10-24: genutzt fuer unterschiedliche Tests
path = System.getProperty("user.dir")+"/resources/AllgemeinTest/" + className + ".jav";
//path = System.getProperty("user.dir")+"/src/test/resources/AllgemeinTest/Overloading_Generics.jav";