This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPersoneelTest.java
89 lines (78 loc) · 1.87 KB
/
PersoneelTest.java
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package supermarkt.simulator;
import java.awt.Point;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.Ignore;
/**
*
* @author Allard
*/
public class PersoneelTest
{
private static Personeel ps;
private static Controller controller;
public PersoneelTest()
{
}
@BeforeClass
public static void setUpClass()
{
controller = new Controller();
ps = new Personeel("Test Personeel 1", new Point(1,31), 5, controller);
}
@AfterClass
public static void tearDownClass()
{
}
@Before
public void setUp()
{
}
@After
public void tearDown()
{
}
/**
* Test of setPostition method, of class Personeel.
*/
@Test
public void testSetPostition()
{
System.out.println("setPostition");
Point p = new Point(1,30);
Personeel instance = ps;
instance.setPostition(p);
assertEquals(10, Controller.bord[p.x][p.y].getItem());
}
/**
* Test of voegTaakToe method, of class Personeel.
*/
@Test
public void testVoegTaakToe()
{
System.out.println("voegTaakToe");
Taken taak = new Taken(Taken.Taak.Pad1);
Personeel instance = ps;
instance.voegTaakToe(taak);
//assertEquals(taak, ps.taken.get(0)); //Maak public voor test
}
/**
* Test of move method, of class Personeel.
*/
@Ignore @Test
public void testMove() throws Exception
{
System.out.println("move");
Personeel instance = ps;
instance.move();
}
}