-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathApplicationTest.java
More file actions
45 lines (32 loc) · 939 Bytes
/
ApplicationTest.java
File metadata and controls
45 lines (32 loc) · 939 Bytes
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
package io.zipcoder;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class ApplicationTest {
@Test
public void userDataOfPets() {
}
@Test
public void addPet() {
//Given
Application application = new Application();
//When
application.addPet("Hugo", "Dog");
String expected = "Hugo Dog, ";
String actual = application.printList();
//Then
Assert.assertEquals(expected, actual);
}
@Test
public void printListTest() {
//Given
Application application = new Application();
//When
application.addPet("Hugo", "Dog");
application.addPet("Bob", "Cat");
String expected = "Hugo Dog, Bob Cat, ";
String actual = application.printList();
//Then
Assert.assertEquals(expected, actual);
}
}