new file: ../../AllgemeinTest/VectorNotObject.jav

new file:   ../../AllgemeinTest/WildcardCaptureConversionTest.jav
	modified:   ../../../src/test/java/AllgemeinTest.java
This commit is contained in:
pl@gohorb.ba-horb.de 2023-01-23 11:51:05 +01:00
parent d1fd65fad7
commit 8dfce15850
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,9 @@
import java.util.Vector;
class VectorNotObject {
vectorAddAll(v1, v2) {
v1.addAll(v2);
return v1;
}
}

View File

@ -0,0 +1,16 @@
import java.util.Vector;
import java.lang.Integer;
import java.lang.String;
class WildcardCaptureConversionTest {
m(x, y ,z) {
x = new Vector<Integer>();
y = new Vector<String>();
x.add(1);
y.add("2");
//Integer i = x.elementAt(0);
//String s = y.elementAt(0);
return z.vectorAddAll(x, y);
}
}

View File

@ -48,7 +48,9 @@ public class AllgemeinTest {
//String className = "Box";
//String className = "Box_Main";
//String className = "wildcardPair";
String className = "VectorConstAdd";
//String className = "VectorConstAdd";
String className = "VectorNotObject";
//String className = "WildcardCaptureConversionTest";
//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";