forked from JavaTX/JavaCompilerCore
Tests angefügt
This commit is contained in:
parent
6a98115361
commit
ab4d26103e
@ -69,6 +69,7 @@ public class TypeInsertSet {
|
|||||||
for(TypeInsertPoint toAdd : p.merge(p2)){
|
for(TypeInsertPoint toAdd : p.merge(p2)){
|
||||||
this.add(toAdd);
|
this.add(toAdd);
|
||||||
//TODO: Alle Typen, welche die einzusetzenden Generischen Typen beinhalten, müssen ebenfalls eingesetzt werden.
|
//TODO: Alle Typen, welche die einzusetzenden Generischen Typen beinhalten, müssen ebenfalls eingesetzt werden.
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//this.add(p);
|
//this.add(p);
|
||||||
|
10
test/plugindevelopment/TypeInsertTests/ImportTest2.jav
Normal file
10
test/plugindevelopment/TypeInsertTests/ImportTest2.jav
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
|
class ImportTest{
|
||||||
|
var;
|
||||||
|
|
||||||
|
void methode(a){
|
||||||
|
var.add(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
17
test/plugindevelopment/TypeInsertTests/ImportTest2.java
Normal file
17
test/plugindevelopment/TypeInsertTests/ImportTest2.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
15
test/plugindevelopment/TypeInsertTests/Recursive2.jav
Normal file
15
test/plugindevelopment/TypeInsertTests/Recursive2.jav
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
class Recursive{
|
||||||
|
|
||||||
|
Test var;
|
||||||
|
|
||||||
|
Test methode1(a){
|
||||||
|
return methode2(a);
|
||||||
|
}
|
||||||
|
|
||||||
|
Test methode2(b){
|
||||||
|
return methode1(var);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class Test{}
|
18
test/plugindevelopment/TypeInsertTests/ReursiveTest2.java
Normal file
18
test/plugindevelopment/TypeInsertTests/ReursiveTest2.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user