Last change
on this file since 2 was 2, checked in by Wouter Pasman, 6 years ago |
extra buttons etc
|
File size:
1.1 KB
|
Line | |
---|
1 | package tudelft.mentalhealth.motivatepersisting;
|
---|
2 |
|
---|
3 | import java.util.Arrays;
|
---|
4 | import java.util.LinkedList;
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | import org.junit.Test;
|
---|
8 |
|
---|
9 | import tudelft.utilities.junit.GeneralTests;
|
---|
10 |
|
---|
11 | public 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.