diff --git a/topic01/exercise01/.gitignore b/topic01/exercise01/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic01/exercise01/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic01/exercise01/README.md b/topic01/exercise01/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic01/exercise01/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic01/exercise01/competency-tests.mft b/topic01/exercise01/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic01/exercise01/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic01/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise02/.gitignore b/topic01/exercise02/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic01/exercise02/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic01/exercise02/README.md b/topic01/exercise02/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic01/exercise02/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic01/exercise02/competency-tests.mft b/topic01/exercise02/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic01/exercise02/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic01/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise03/.gitignore b/topic01/exercise03/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic01/exercise03/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic01/exercise03/README.md b/topic01/exercise03/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic01/exercise03/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic01/exercise03/competency-tests.mft b/topic01/exercise03/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic01/exercise03/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic01/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise04/.gitignore b/topic01/exercise04/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic01/exercise04/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic01/exercise04/README.md b/topic01/exercise04/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic01/exercise04/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic01/exercise04/competency-tests.mft b/topic01/exercise04/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic01/exercise04/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic01/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise05/.gitignore b/topic01/exercise05/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic01/exercise05/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic01/exercise05/README.md b/topic01/exercise05/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic01/exercise05/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic01/exercise05/competency-tests.mft b/topic01/exercise05/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic01/exercise05/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic01/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise01/.gitignore b/topic02/exercise01/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic02/exercise01/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic02/exercise01/README.md b/topic02/exercise01/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic02/exercise01/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic02/exercise01/competency-tests.mft b/topic02/exercise01/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic02/exercise01/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic02/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise02/.gitignore b/topic02/exercise02/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic02/exercise02/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic02/exercise02/README.md b/topic02/exercise02/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic02/exercise02/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic02/exercise02/competency-tests.mft b/topic02/exercise02/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic02/exercise02/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic02/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise03/.gitignore b/topic02/exercise03/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic02/exercise03/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic02/exercise03/README.md b/topic02/exercise03/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic02/exercise03/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic02/exercise03/competency-tests.mft b/topic02/exercise03/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic02/exercise03/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic02/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise04/.gitignore b/topic02/exercise04/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic02/exercise04/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic02/exercise04/README.md b/topic02/exercise04/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic02/exercise04/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic02/exercise04/competency-tests.mft b/topic02/exercise04/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic02/exercise04/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic02/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise05/.gitignore b/topic02/exercise05/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic02/exercise05/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic02/exercise05/README.md b/topic02/exercise05/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic02/exercise05/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic02/exercise05/competency-tests.mft b/topic02/exercise05/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic02/exercise05/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic02/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise01/.gitignore b/topic03/exercise01/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic03/exercise01/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic03/exercise01/README.md b/topic03/exercise01/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic03/exercise01/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic03/exercise01/competency-tests.mft b/topic03/exercise01/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic03/exercise01/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic03/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise02/.gitignore b/topic03/exercise02/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic03/exercise02/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic03/exercise02/README.md b/topic03/exercise02/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic03/exercise02/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic03/exercise02/competency-tests.mft b/topic03/exercise02/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic03/exercise02/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic03/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise03/.gitignore b/topic03/exercise03/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic03/exercise03/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic03/exercise03/README.md b/topic03/exercise03/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic03/exercise03/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic03/exercise03/competency-tests.mft b/topic03/exercise03/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic03/exercise03/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic03/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise04/.gitignore b/topic03/exercise04/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic03/exercise04/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic03/exercise04/README.md b/topic03/exercise04/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic03/exercise04/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic03/exercise04/competency-tests.mft b/topic03/exercise04/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic03/exercise04/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic03/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise01/.gitignore b/topic04/exercise01/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic04/exercise01/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic04/exercise01/README.md b/topic04/exercise01/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic04/exercise01/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic04/exercise01/competency-tests.mft b/topic04/exercise01/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic04/exercise01/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic04/exercise01/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise02/.gitignore b/topic04/exercise02/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic04/exercise02/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic04/exercise02/README.md b/topic04/exercise02/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic04/exercise02/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic04/exercise02/competency-tests.mft b/topic04/exercise02/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic04/exercise02/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic04/exercise02/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise03/.gitignore b/topic04/exercise03/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic04/exercise03/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic04/exercise03/README.md b/topic04/exercise03/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic04/exercise03/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic04/exercise03/competency-tests.mft b/topic04/exercise03/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic04/exercise03/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic04/exercise03/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise04/.gitignore b/topic04/exercise04/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic04/exercise04/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic04/exercise04/README.md b/topic04/exercise04/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic04/exercise04/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic04/exercise04/competency-tests.mft b/topic04/exercise04/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic04/exercise04/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic04/exercise04/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise05/.gitignore b/topic04/exercise05/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7653693f4d865c660222f2ff3a3c79d9c8402cf4 --- /dev/null +++ b/topic04/exercise05/.gitignore @@ -0,0 +1,7 @@ + +*.class + +# IntelliJ +/.idea +/out +*.iml diff --git a/topic04/exercise05/README.md b/topic04/exercise05/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b3746c51cd59e344db3f3699a85e67a9eb8961d0 --- /dev/null +++ b/topic04/exercise05/README.md @@ -0,0 +1,13 @@ +# DTT example Unittest OpenJDK11 JUnit5 Testrunner + +This is the source code repository for the DTT example unittest with JUnit5. + +Documentation for this is done with GitLab Pages using MkDocs and is available here: +[https://transfer.hft-stuttgart.de/pages/dtt/documentation][pages-link] + +If you don't want to open the Webpage or it is not available for whatever reason, +the documentation root is found [here][docs-root] + +[docs-root]: https://transfer.hft-stuttgart.de/gitlab/dtt/documentation/-/blob/master/docs/index.md +[pages-link]: https://transfer.hft-stuttgart.de/pages/dtt/documentation + diff --git a/topic04/exercise05/competency-tests.mft b/topic04/exercise05/competency-tests.mft new file mode 100644 index 0000000000000000000000000000000000000000..ac4758a1c79f7048381c77b6090114cb4bc258e2 --- /dev/null +++ b/topic04/exercise05/competency-tests.mft @@ -0,0 +1,10 @@ +de.hftstuttgart.ip2;CalculatorTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;add();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sub();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;mult();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;div();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 +de.hftstuttgart.ip2;CalculatorSecondTest;sum();1;0;0;0;0;0;0;0;0;0;0;0.5;0;0;0;0 diff --git a/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java b/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java new file mode 100644 index 0000000000000000000000000000000000000000..27476c63dcfe6397851df0508484162380fc063b --- /dev/null +++ b/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorSecondTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorSecondTest { + + private Calculator calculator = new Calculator(); + + @Test + public void add2() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub2() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult2() throws Exception { + assertEquals(15, calculator.mult(5, 2), 0.1); + } + + @Test + public void div2() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum2() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +} diff --git a/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java b/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java new file mode 100644 index 0000000000000000000000000000000000000000..829203cf38f0bcd986b4428717ff57c7b204d606 --- /dev/null +++ b/topic04/exercise05/test/de/hftstuttgart/ip2/CalculatorTest.java @@ -0,0 +1,36 @@ +package de.hftstuttgart.ip2; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +public class CalculatorTest +{ + private Calculator calculator = new Calculator(); + + @Test + public void add() throws Exception { + assertEquals(5, calculator.add(2, 3), 0.1); + } + + @Test + public void sub() throws Exception { + assertEquals(-1, calculator.sub(2, 3), 0.1); + } + + @Test + public void mult() throws Exception { + assertEquals(15, calculator.mult(5, 3), 0.1); + } + + @Test + public void div() throws Exception { + assertEquals(5, calculator.div(15, 3), 0.1); + } + + @Test + public void sum() throws Exception { + assertEquals(12, calculator.sum(3, 4, 5), 0.1); + } + +}