-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectTest.java
49 lines (43 loc) · 1.59 KB
/
ProjectTest.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
import org.junit.Test;
import static org.junit.Assert.*;
//import org.junit.Test;
//import org.junit.BeforeEach;
//import org.junit.AfterEach;
// Jason Spratt
public class ProjectTest {
/*@Test
public void testing() {
assertTrue(true);
}*/
//tests adding columns to a project
@Test
public void testAddColumn() {
Project project = new Project("Test Project", "Test Description", "Test Author");
Column column = new Column("Test Column");
project.addColumn(column);
assertEquals("Test Column", column.getColumnName());
}
//tests adding comments to a project
@Test
public void testAddComment() {
Project project = new Project("Test Project", "Test Description", "Test Author");
Comment comment = new Comment("Test Author", "Test Comment", "Test Date");
project.addComment(comment);
assertEquals("Test Author", comment.getAuthor());
assertEquals("Test Comment", comment.getText());
assertEquals("Test Date", comment.GetDate());
}
//tests printing the board
//Test by Ben Hendrix
@Test
public void testPrintBoard() {
Project project = new Project("Test Project", "Test Description", "Test Author");
Column column = new Column("Test Column");
project.addColumn(column);
Task task = new Task("Test Task", "Test Description", 0, null, null, false, 0, "Test Author");
column.addTask(task);
project.printBoard();
assertEquals("Test Column", column.getColumnName());
assertEquals("Test Task", task.getTaskName());
}
}