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