forked from JavaTX/JavaCompilerCore
Testfälle anfügen
This commit is contained in:
parent
d72a803027
commit
dc7d23d699
12
test/plugindevelopment/TypeInsertTests/LambdaTest26.jav
Normal file
12
test/plugindevelopment/TypeInsertTests/LambdaTest26.jav
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
class Test {
|
||||||
|
|
||||||
|
String var;
|
||||||
|
|
||||||
|
<A> A m (A x) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
m2(){
|
||||||
|
return m(var);
|
||||||
|
}
|
||||||
|
}
|
18
test/plugindevelopment/TypeInsertTests/LambdaTest26.java
Normal file
18
test/plugindevelopment/TypeInsertTests/LambdaTest26.java
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
package plugindevelopment.TypeInsertTests;
|
||||||
|
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class LambdaTest26 {
|
||||||
|
|
||||||
|
private static final String TEST_FILE = "LambdaTest26.jav";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void run(){
|
||||||
|
Vector<String> mustContain = new Vector<String>();
|
||||||
|
//mustContain.add("A a");
|
||||||
|
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
5
test/plugindevelopment/TypeInsertTests/LambdaTest2_2.jav
Normal file
5
test/plugindevelopment/TypeInsertTests/LambdaTest2_2.jav
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class LambdaTest<A,B>{
|
||||||
|
|
||||||
|
op = (m) -> (f) -> f.apply(this,m);
|
||||||
|
|
||||||
|
}
|
23
test/plugindevelopment/TypeInsertTests/LambdaTest2_2.java
Normal file
23
test/plugindevelopment/TypeInsertTests/LambdaTest2_2.java
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package plugindevelopment.TypeInsertTests;
|
||||||
|
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import de.dhbwstuttgart.logger.Logger;
|
||||||
|
import de.dhbwstuttgart.logger.LoggerConfiguration;
|
||||||
|
import de.dhbwstuttgart.logger.Section;
|
||||||
|
|
||||||
|
public class LambdaTest2_2 {
|
||||||
|
|
||||||
|
private static final String TEST_FILE = "LambdaTest2_2.jav";
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void run(){
|
||||||
|
Logger.getConfiguration().setOutput(Section.ASSUMPTIONS, System.out);
|
||||||
|
Vector<String> mustContain = new Vector<String>();
|
||||||
|
//mustContain.add("S m");
|
||||||
|
MultipleTypesInsertTester.test(this.TEST_FILE, mustContain);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user