-
Notifications
You must be signed in to change notification settings - Fork 0
/
JobListingTest.java
42 lines (37 loc) · 1.11 KB
/
JobListingTest.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
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import java.util.ArrayList;
//Tested by Christian Rios
class JobListingTest {
@BeforeEach
public void setup() {
//runs before each test
String location = "Columbia";
Double pay = 10.55;
boolean remote = false;
String date = "3/18/2021";
String description = "Work as a TA for Software Engineering.";
ArrayList<String> skills = new ArrayList<String>();
skills.add("Python");
skills.add("JavaScript");
JobListing.addJob(location, pay, remote, date, description, skills);
}
@AfterEach
public void tearDown() {
//runs after each test
}
//assertEquals(val1,val2)
//assertFalse(val)
//assertTrue(val)
//assertSame(val1,val2)
//assertNotSame(val1,val2)
//assertNull(val)
//assertNotNull(val)
@Test
public void testAddingJobListing() {
ArrayList<Job> jobList = JobListing.getJob();
assertNotNull(jobList);
}
}