Testfälle anfügen

This commit is contained in:
JanUlrich 2015-02-24 15:26:36 +01:00
parent d72a803027
commit dc7d23d699
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,12 @@
class Test {
String var;
<A> A m (A x) {
return x;
}
m2(){
return m(var);
}
}

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

View File

@ -0,0 +1,5 @@
class LambdaTest<A,B>{
op = (m) -> (f) -> f.apply(this,m);
}

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