Tests angefügt

This commit is contained in:
JanUlrich 2014-04-28 17:21:27 +02:00
parent 6a98115361
commit ab4d26103e
5 changed files with 61 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public class TypeInsertSet {
for(TypeInsertPoint toAdd : p.merge(p2)){
this.add(toAdd);
//TODO: Alle Typen, welche die einzusetzenden Generischen Typen beinhalten, müssen ebenfalls eingesetzt werden.
}
}
//this.add(p);

View File

@ -0,0 +1,10 @@
import java.util.Vector;
class ImportTest{
var;
void methode(a){
var.add(a);
}
}

View File

@ -0,0 +1,17 @@
package plugindevelopment.TypeInsertTests;
import java.util.Vector;
import org.junit.Test;
public class ImportTest2 {
private static final String TEST_FILE = "ImportTest2.jav";
@Test
public void run(){
Vector<String> mustContain = new Vector<String>();
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
}
}

View File

@ -0,0 +1,15 @@
class Recursive{
Test var;
Test methode1(a){
return methode2(a);
}
Test methode2(b){
return methode1(var);
}
}
class Test{}

View File

@ -0,0 +1,18 @@
package plugindevelopment.TypeInsertTests;
import java.util.Vector;
import org.junit.Test;
public class ReursiveTest2 {
private static final String TEST_FILE = "Recursive2.jav";
@Test
public void run(){
Vector<String> mustContain = new Vector<String>();
//mustContain.add("A a");
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
}
}