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 pathBordPuntTest.java
86 lines (73 loc) · 1.68 KB
/
BordPuntTest.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
/*
* 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.*;
/**
*
* @author Allard
*/
public class BordPuntTest
{
private SupermarkView bord = new SupermarkView();
private BordPunt instance = new BordPunt(new Point(0,0), 5, bord);
public BordPuntTest()
{
}
@BeforeClass
public static void setUpClass()
{
}
@AfterClass
public static void tearDownClass()
{
}
@Before
public void setUp()
{
}
@After
public void tearDown()
{
}
/**
* Test of setItem method, of class BordPunt.
*/
@Test
public void testSetItem()
{
System.out.println("setItem");
instance.setItem(5);
//assertEquals(5, instance.item); //Maak item public
}
/**
* Test of getPositie method, of class BordPunt.
*/
@Test
public void testGetPositie()
{
System.out.println("getPositie");
Point point = new Point(0,0);
Point result = instance.getPositie();
assertEquals(point, result);
}
/**
* Test of getItem method, of class BordPunt.
*/
@Test
public void testGetItem()
{
System.out.println("getItem");
int expResult = 5;
int result = instance.getItem();
assertEquals(expResult, result);
}
}