From a579bb964f084436b49ec9b5aad4836e7b3bb452 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Tue, 27 Jan 2015 11:10:16 +0100 Subject: [PATCH] =?UTF-8?q?Testf=C3=A4lle=20anf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TypeInsertTests/GenericVarTest.jav | 5 +++++ .../TypeInsertTests/GenericVarTest.java | 16 ++++++++++++++++ .../TypeInsertTests/GenericVarTest2.jav | 15 +++++++++++++++ .../TypeInsertTests/GenericVarTest2.java | 16 ++++++++++++++++ test/plugindevelopment/TypeInsertTests/Id.jav | 4 ++++ test/plugindevelopment/TypeInsertTests/Id.java | 16 ++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 test/plugindevelopment/TypeInsertTests/GenericVarTest.jav create mode 100644 test/plugindevelopment/TypeInsertTests/GenericVarTest.java create mode 100644 test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav create mode 100644 test/plugindevelopment/TypeInsertTests/GenericVarTest2.java create mode 100644 test/plugindevelopment/TypeInsertTests/Id.jav create mode 100644 test/plugindevelopment/TypeInsertTests/Id.java diff --git a/test/plugindevelopment/TypeInsertTests/GenericVarTest.jav b/test/plugindevelopment/TypeInsertTests/GenericVarTest.jav new file mode 100644 index 00000000..7345b977 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/GenericVarTest.jav @@ -0,0 +1,5 @@ +import java.util.Vector; + +class WildcardTest extends Vector{ + Fun1> op = (f) -> f.apply(this); +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/GenericVarTest.java b/test/plugindevelopment/TypeInsertTests/GenericVarTest.java new file mode 100644 index 00000000..ef787454 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/GenericVarTest.java @@ -0,0 +1,16 @@ +package plugindevelopment.TypeInsertTests; + +import java.util.Vector; + +import org.junit.Test; + +public class GenericVarTest { + private static final String TEST_FILE = "GenericVarTest.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + //mustContain.add("Fun1, Object2>, Object1> op"); + MultipleTypesInsertTester.test(this.TEST_FILE, mustContain); + } +} diff --git a/test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav b/test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav new file mode 100644 index 00000000..2aef0758 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/GenericVarTest2.jav @@ -0,0 +1,15 @@ +class GenericTest{ + A method(){ + return null; + } +} + +class GenericTest2{ + + GenericTest var = new GenericTest(); + + method2(){ + return var.method(); + } + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/GenericVarTest2.java b/test/plugindevelopment/TypeInsertTests/GenericVarTest2.java new file mode 100644 index 00000000..9195de50 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/GenericVarTest2.java @@ -0,0 +1,16 @@ +package plugindevelopment.TypeInsertTests; + +import java.util.Vector; + +import org.junit.Test; + +public class GenericVarTest2 { + private static final String TEST_FILE = "GenericVarTest2.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + //mustContain.add("Fun1, Object2>, Object1> op"); + MultipleTypesInsertTester.test(this.TEST_FILE, mustContain); + } +} diff --git a/test/plugindevelopment/TypeInsertTests/Id.jav b/test/plugindevelopment/TypeInsertTests/Id.jav new file mode 100644 index 00000000..54a930cf --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Id.jav @@ -0,0 +1,4 @@ + +class Id{ + op = (x)->x; +} diff --git a/test/plugindevelopment/TypeInsertTests/Id.java b/test/plugindevelopment/TypeInsertTests/Id.java new file mode 100644 index 00000000..0bc010ba --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Id.java @@ -0,0 +1,16 @@ +package plugindevelopment.TypeInsertTests; + +import java.util.Vector; + +import org.junit.Test; + +public class Id { + private static final String TEST_FILE = "Id.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + //mustContain.add("TestIfStmt var"); + MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain); + } +}