From 2a3030dd98ea1c5f33b178e146f12f633ff9ca86 Mon Sep 17 00:00:00 2001 From: Alexandre Lombard Date: Fri, 21 Apr 2017 10:38:01 +0200 Subject: [PATCH] BAEL 767 - Moving module apache-commons-math to module libraries (#1701) * BAEL 767 - Introduction to apache commons math * BAEL 767 - Moving examples to test classes * BAEL 767 - Renaming tests with BDD convention * BAEL 767 - Introduction to apache commons math * BAEL 767 - Moving examples to test classes * BAEL 767 - Renaming tests with BDD convention * BAEL 767 - Moving module apache-commons-math to module libraries * BAEL 767 - Delete directory apache-commons-math --- apache-commons-math/pom.xml | 44 ------------------- libraries/pom.xml | 5 +++ .../baeldung/commons/math/ComplexTests.java | 0 .../baeldung/commons/math/FractionTests.java | 1 - .../baeldung/commons/math/GeometryTests.java | 0 .../commons/math/IntegrationTests.java | 0 .../commons/math/LinearAlgebraTests.java | 0 .../commons/math/ProbabilitiesTests.java | 0 .../commons/math/RootFindingTests.java | 0 .../commons/math/StatisticsTests.java | 0 10 files changed, 5 insertions(+), 45 deletions(-) delete mode 100644 apache-commons-math/pom.xml rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/ComplexTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/FractionTests.java (89%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/GeometryTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/IntegrationTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/LinearAlgebraTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/ProbabilitiesTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/RootFindingTests.java (100%) rename {apache-commons-math => libraries}/src/test/java/com/baeldung/commons/math/StatisticsTests.java (100%) diff --git a/apache-commons-math/pom.xml b/apache-commons-math/pom.xml deleted file mode 100644 index 98c6953120..0000000000 --- a/apache-commons-math/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - 4.0.0 - - com.baeldung - apache-commons-math - 1.0-SNAPSHOT - - - 3.6.0 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin.version} - - 1.8 - 1.8 - - - - - - - - org.apache.commons - commons-math3 - 3.6.1 - - - - junit - junit - 4.12 - test - - - - \ No newline at end of file diff --git a/libraries/pom.xml b/libraries/pom.xml index c0c2321388..0643e8257b 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -171,6 +171,11 @@ ${flink.version} test + + org.apache.commons + commons-math3 + 3.6.1 + diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/ComplexTests.java b/libraries/src/test/java/com/baeldung/commons/math/ComplexTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/ComplexTests.java rename to libraries/src/test/java/com/baeldung/commons/math/ComplexTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/FractionTests.java b/libraries/src/test/java/com/baeldung/commons/math/FractionTests.java similarity index 89% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/FractionTests.java rename to libraries/src/test/java/com/baeldung/commons/math/FractionTests.java index 6efef79b23..6828c8490c 100644 --- a/apache-commons-math/src/test/java/com/baeldung/commons/math/FractionTests.java +++ b/libraries/src/test/java/com/baeldung/commons/math/FractionTests.java @@ -1,7 +1,6 @@ package com.baeldung.commons.math; import org.apache.commons.math3.fraction.Fraction; -import org.apache.commons.math3.fraction.FractionFormat; import org.junit.Assert; import org.junit.Test; diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/GeometryTests.java b/libraries/src/test/java/com/baeldung/commons/math/GeometryTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/GeometryTests.java rename to libraries/src/test/java/com/baeldung/commons/math/GeometryTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/IntegrationTests.java b/libraries/src/test/java/com/baeldung/commons/math/IntegrationTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/IntegrationTests.java rename to libraries/src/test/java/com/baeldung/commons/math/IntegrationTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/LinearAlgebraTests.java b/libraries/src/test/java/com/baeldung/commons/math/LinearAlgebraTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/LinearAlgebraTests.java rename to libraries/src/test/java/com/baeldung/commons/math/LinearAlgebraTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/ProbabilitiesTests.java b/libraries/src/test/java/com/baeldung/commons/math/ProbabilitiesTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/ProbabilitiesTests.java rename to libraries/src/test/java/com/baeldung/commons/math/ProbabilitiesTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/RootFindingTests.java b/libraries/src/test/java/com/baeldung/commons/math/RootFindingTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/RootFindingTests.java rename to libraries/src/test/java/com/baeldung/commons/math/RootFindingTests.java diff --git a/apache-commons-math/src/test/java/com/baeldung/commons/math/StatisticsTests.java b/libraries/src/test/java/com/baeldung/commons/math/StatisticsTests.java similarity index 100% rename from apache-commons-math/src/test/java/com/baeldung/commons/math/StatisticsTests.java rename to libraries/src/test/java/com/baeldung/commons/math/StatisticsTests.java