aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/musichub/business/CategoryTest.java
blob: f1fef5071bea915bc246c94cf4389266f6784a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package musichub.business;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;

public class CategoryTest {

    @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.getCategory(), Category.NOVEL);
        s1.setCategory("NOVEL");
        assertEquals(s1.getCategory(), Category.NOVEL);
    }
}