Tests angefügt

This commit is contained in:
JanUlrich 2014-03-26 02:33:47 +01:00
parent 0e19e996c1
commit 69af867293
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,10 @@
class LambdaTest{
String var;
op = () -> (f) -> {
f.apply(this,var);
return var;
};
}

View File

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

View File

@ -0,0 +1,5 @@
class LambdaTest{
Fun1<Fun1<K, Fun2<LambdaTest, C>>, C> op = (m) -> (f) -> f.apply(this,m);
}

View File

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