aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2021-06-26 14:32:12 +0200
committerClyhtsuriva <aimeric@adjutor.xyz>2021-06-26 14:32:12 +0200
commite9ee951e570c441151385d1ccd8c4230abf704ca (patch)
treea0c875335ce68efd4959ee031dfa8671c9eaa78a /src/main
parenta57fd29902578adf7238d71cf9bbd55408584557 (diff)
Updated javadoc, added jacoco and the necessary JUnit for this feature.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/musichub/business/PathValidation.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/main/java/musichub/business/PathValidation.java b/src/main/java/musichub/business/PathValidation.java
index 97f8759..b0281ba 100644
--- a/src/main/java/musichub/business/PathValidation.java
+++ b/src/main/java/musichub/business/PathValidation.java
@@ -11,10 +11,21 @@ import java.nio.file.Paths;
* @version 1.0
*/
-public class PathValidation {
+public final class PathValidation {
/**
- * Methode that checks the validity of a given path
+ * Method that just throws an AssertionError if the class is called
+ *
+ * @throws AssertionError you can't instantiate this class
+ * @author Aimeric ADJUTOR
+ */
+
+ public PathValidation() {
+ throw new AssertionError("You just can't instantiate this class.");
+ }
+
+ /**
+ * Method that checks the validity of a given path
*
* @param inputPath the path given by the user
* @return a boolean