-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminsTest.java
42 lines (36 loc) · 1.06 KB
/
AdminsTest.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;
import java.util.UUID;
//Tested by Christian Rios
class AdminsTest {
@BeforeEach
public void setup() {
//runs before each test
UUID id = UUID.fromString("0b5330dc-7e63-410f-9c9f-32f660ee9c4f");
String email = "[email protected]";
String username = "abc";
String password = "123";
String firstName = "ABC";
String lastName = "DEF";
Admins.addAdmin(id, email, username, password, firstName, lastName);
}
@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 testAddingAdmin() {
ArrayList<Admin> adminList = Admins.getAdmin();
assertNotNull(adminList);
}
}