From b318a315a66bef6ff7af0167c65d369dfe78e820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Pl=C3=BCmicke?= Date: Fri, 2 Jan 2015 12:46:29 +0100 Subject: [PATCH] eine neue Testfaelle --- .../MartinTestCases/Matrix3.jav | 7 +++++++ .../TypeInsertTests/Matrix3.jav | 5 +++++ .../TypeInsertTests/Matrix3.java | 20 +++++++++++++++++++ .../TypeInsertTests/Matrix_lambda.jav | 6 ++++++ .../TypeInsertTests/Matrix_lambda.java | 20 +++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 test/plugindevelopment/MartinTestCases/Matrix3.jav create mode 100644 test/plugindevelopment/TypeInsertTests/Matrix3.jav create mode 100644 test/plugindevelopment/TypeInsertTests/Matrix3.java create mode 100644 test/plugindevelopment/TypeInsertTests/Matrix_lambda.jav create mode 100644 test/plugindevelopment/TypeInsertTests/Matrix_lambda.java diff --git a/test/plugindevelopment/MartinTestCases/Matrix3.jav b/test/plugindevelopment/MartinTestCases/Matrix3.jav new file mode 100644 index 00000000..942c6790 --- /dev/null +++ b/test/plugindevelopment/MartinTestCases/Matrix3.jav @@ -0,0 +1,7 @@ +import java.util.Vector; + +class Matrix3 extends Vector> { + + op = (f) -> f.apply(this); + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/Matrix3.jav b/test/plugindevelopment/TypeInsertTests/Matrix3.jav new file mode 100644 index 00000000..cd4f1cc0 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Matrix3.jav @@ -0,0 +1,5 @@ +class Matrix3 extends Vector> { + + op = (f) -> f.apply(this); + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/Matrix3.java b/test/plugindevelopment/TypeInsertTests/Matrix3.java new file mode 100644 index 00000000..a5393025 --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Matrix3.java @@ -0,0 +1,20 @@ +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 Matrix3 { + private static final String TEST_FILE = "Matrix3.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + mustContain.add("TestIfStmt var"); + MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain); + } +} diff --git a/test/plugindevelopment/TypeInsertTests/Matrix_lambda.jav b/test/plugindevelopment/TypeInsertTests/Matrix_lambda.jav new file mode 100644 index 00000000..91cac5ef --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Matrix_lambda.jav @@ -0,0 +1,6 @@ +import java.util.Vector; + +class Matrix extends Vector> { + op = (f) -> f.apply(this); + +} \ No newline at end of file diff --git a/test/plugindevelopment/TypeInsertTests/Matrix_lambda.java b/test/plugindevelopment/TypeInsertTests/Matrix_lambda.java new file mode 100644 index 00000000..fca2239f --- /dev/null +++ b/test/plugindevelopment/TypeInsertTests/Matrix_lambda.java @@ -0,0 +1,20 @@ +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 Matrix_lambda { + private static final String TEST_FILE = "Matrix_lambda.jav"; + + @Test + public void run(){ + Vector mustContain = new Vector(); + mustContain.add("TestIfStmt var"); + MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain); + } +}