aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/musichub/business/LanguageTest.java
diff options
context:
space:
mode:
authorSaid Belhadj <71043286+Said-Belhadj@users.noreply.github.com>2021-06-27 16:19:58 +0200
committerGitHub <noreply@github.com>2021-06-27 16:19:58 +0200
commit26426ef5b31d2d15ce331367358c1853930b863c (patch)
treea562753f0b0387889e68037afd26a59fbb8c35c0 /src/test/java/musichub/business/LanguageTest.java
parent3cf7124b9fd703714f4e90e97c638cebfcd11efa (diff)
parentee224ae15d45f3f47199a3f7cae7453a16bd53c2 (diff)
Merge pull request #13 from Said-Belhadj/test/STZ-0013
Test/STZ-0013
Diffstat (limited to 'src/test/java/musichub/business/LanguageTest.java')
-rw-r--r--src/test/java/musichub/business/LanguageTest.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/java/musichub/business/LanguageTest.java b/src/test/java/musichub/business/LanguageTest.java
new file mode 100644
index 0000000..93e9d1c
--- /dev/null
+++ b/src/test/java/musichub/business/LanguageTest.java
@@ -0,0 +1,23 @@
+package musichub.business;
+
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class LanguageTest {
+ @Test
+ void testGetter() {
+
+ String t1 = "t1";
+ String a1 = "a1";
+ int l1 = 1;
+ String c1 = a1+" - "+t1;
+ String lan1 = "FRENCH";
+ String cat1 = "novel";
+ AudioBook s1 = new AudioBook(t1, a1, l1, c1, lan1, cat1);
+ assertEquals(s1.getLanguage(), Language.FRENCH);
+ s1.setLanguage("french");
+ assertEquals(s1.getLanguage(), Language.FRENCH);
+ }
+
+}