new file: resources/AllgemeinTest/StreamTest.jav
modified: src/test/java/AllgemeinTest.java
This commit is contained in:
parent
66944cf3c1
commit
58a72b0286
14
resources/AllgemeinTest/StreamTest.jav
Normal file
14
resources/AllgemeinTest/StreamTest.jav
Normal 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;
|
||||
}
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user