source: MotivateDuringTherapy/src/test/java/tudelft/mentalhealth/motivatepersisting/SituationTest.java

Last change on this file was 5, checked in by Bart Vastenhouw, 5 years ago

Intermediate update

File size: 1.1 KB
Line 
1package tudelft.mentalhealth.motivatepersisting;
2
3import java.util.Arrays;
4import java.util.LinkedList;
5import java.util.List;
6
7import org.junit.Test;
8
9import tudelft.utilities.junit.GeneralTests;
10
11public class SituationTest extends GeneralTests<Situation> {
12
13 private static Situation situation1 = new Situation(PclTrend.DROPPING,
14 Trust.HIGH);
15 private static Situation situation2 = new Situation(PclTrend.DROPPING,
16 Trust.HIGH);
17 private static Situation situation3 = new Situation(PclTrend.RISING,
18 Trust.HIGH);
19 private static Situation situation4 = new Situation(PclTrend.DROPPING,
20 Trust.LOW);
21
22 @Override
23 public List<List<Situation>> getGeneralTestData() {
24 List<List<Situation>> list = new LinkedList<>();
25 list.add(Arrays.asList(situation1, situation2));
26 list.add(Arrays.asList(situation3));
27 list.add(Arrays.asList(situation4));
28 return list;
29 }
30
31 @Override
32 public List<String> getGeneralTestStrings() {
33 return Arrays.asList("<DROPPING,HIGH>", "<RISING,HIGH>",
34 "<DROPPING,LOW>");
35 }
36
37 @Test(expected = NullPointerException.class)
38 public void nullTest() {
39 new Situation(null, null);
40 }
41
42}
Note: See TracBrowser for help on using the repository browser.