-
Notifications
You must be signed in to change notification settings - Fork 673
Expand file tree
/
Copy pathOwnerTest.java
More file actions
107 lines (85 loc) · 1.76 KB
/
OwnerTest.java
File metadata and controls
107 lines (85 loc) · 1.76 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package guru.springframework.sfgpetclinic.model;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/*
Author: jalnor
Date: 7/13/2021 7:32 AM
Project: guru.springframework.sfgpetclinic.model
*/
class OwnerTest {
Owner owner;
@BeforeEach
void setUp() {
owner = new Owner(1l, "Joe", "Schmoe");
owner.setCity("Key West");
owner.setTelephone("1231231234");
}
// Can run multiple tests in same method
@Test
void dependentAssertions() {
assertAll("Properties Test",
() -> assertAll("Person Properties",
() -> assertEquals("Joe", owner.getFirstName()),
() -> assertEquals("Schmoe", owner.getLastName())),
() -> assertAll("Owner Properties",
() -> assertEquals("Key West", owner.getCity()),
() -> assertEquals("1231231234", owner.getTelephone())
));
}
@AfterEach
void tearDown() {
}
@Test
void getFirstName() {
}
@Test
void setFirstName() {
}
@Test
void getLastName() {
}
@Test
void setLastName() {
}
@Test
void isNew() {
}
@Test
void getId() {
}
@Test
void setId() {
}
@Test
void getPet() {
}
@Test
void testGetPet() {
}
@Test
void getAddress() {
}
@Test
void setAddress() {
}
@Test
void getCity() {
}
@Test
void setCity() {
}
@Test
void getTelephone() {
}
@Test
void setTelephone() {
}
@Test
void getPets() {
}
@Test
void setPets() {
}
}