forked from JavaTX/JavaCompilerCore
Testfälle anfügen
This commit is contained in:
parent
6e6908d460
commit
a579bb964f
@ -0,0 +1,5 @@
|
||||
import java.util.Vector;
|
||||
|
||||
class WildcardTest extends Vector<Integer>{
|
||||
<AFL, R684154003> Fun1<? extends AFL, ? super Fun1<R684154003, WildcardTest>> op = (f) -> f.apply(this);
|
||||
}
|
16
test/plugindevelopment/TypeInsertTests/GenericVarTest.java
Normal file
16
test/plugindevelopment/TypeInsertTests/GenericVarTest.java
Normal file
@ -0,0 +1,16 @@
|
||||
package plugindevelopment.TypeInsertTests;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class GenericVarTest {
|
||||
private static final String TEST_FILE = "GenericVarTest.jav";
|
||||
|
||||
@Test
|
||||
public void run(){
|
||||
Vector<String> mustContain = new Vector<String>();
|
||||
//mustContain.add("Fun1<Fun1<Fun1<void, Object3>, Object2>, Object1> op");
|
||||
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||
}
|
||||
}
|
15
test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav
Normal file
15
test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav
Normal file
@ -0,0 +1,15 @@
|
||||
class GenericTest<A>{
|
||||
A method(){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class GenericTest2{
|
||||
|
||||
GenericTest<Integer> var = new GenericTest<Integer>();
|
||||
|
||||
method2(){
|
||||
return var.method();
|
||||
}
|
||||
|
||||
}
|
16
test/plugindevelopment/TypeInsertTests/GenericVarTest2.java
Normal file
16
test/plugindevelopment/TypeInsertTests/GenericVarTest2.java
Normal file
@ -0,0 +1,16 @@
|
||||
package plugindevelopment.TypeInsertTests;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class GenericVarTest2 {
|
||||
private static final String TEST_FILE = "GenericVarTest2.jav";
|
||||
|
||||
@Test
|
||||
public void run(){
|
||||
Vector<String> mustContain = new Vector<String>();
|
||||
//mustContain.add("Fun1<Fun1<Fun1<void, Object3>, Object2>, Object1> op");
|
||||
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||
}
|
||||
}
|
4
test/plugindevelopment/TypeInsertTests/Id.jav
Normal file
4
test/plugindevelopment/TypeInsertTests/Id.jav
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
class Id{
|
||||
op = (x)->x;
|
||||
}
|
16
test/plugindevelopment/TypeInsertTests/Id.java
Normal file
16
test/plugindevelopment/TypeInsertTests/Id.java
Normal file
@ -0,0 +1,16 @@
|
||||
package plugindevelopment.TypeInsertTests;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class Id {
|
||||
private static final String TEST_FILE = "Id.jav";
|
||||
|
||||
@Test
|
||||
public void run(){
|
||||
Vector<String> mustContain = new Vector<String>();
|
||||
//mustContain.add("TestIfStmt var");
|
||||
MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user