Testfälle anfügen

This commit is contained in:
JanUlrich 2015-01-27 11:10:16 +01:00
parent 6e6908d460
commit a579bb964f
6 changed files with 72 additions and 0 deletions

View File

@ -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);
}

View 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);
}
}

View File

@ -0,0 +1,15 @@
class GenericTest<A>{
A method(){
return null;
}
}
class GenericTest2{
GenericTest<Integer> var = new GenericTest<Integer>();
method2(){
return var.method();
}
}

View 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);
}
}

View File

@ -0,0 +1,4 @@
class Id{
op = (x)->x;
}

View 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);
}
}