Skip to content

Commit 839a94a

Browse files
committed
Updated to look at the new totalComp column.
1 parent c55e32d commit 839a94a

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

server/src/test/java/com/objectcomputing/checkins/services/reports/ReportDataControllerTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ void validateReportData(JsonNode node, MemberProfile user) {
185185

186186
// Compensation History
187187
ArrayNode comp = (ArrayNode)node.get("compensationHistory");
188-
assertEquals(5, comp.size());
188+
assertEquals(10, comp.size());
189189
assertEquals(memberId, comp.get(0).get("memberId").asText());
190190
assertTrue(comp.get(0).get("amount").asDouble() > 0);
191+
assertFalse(comp.get(9).get("totalComp").asText().isEmpty());
191192

192193
// Current Information
193194
JsonNode curr = node.get("currentInformation");
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
"emailAddress","startDate","compensation"
2-
"[email protected]","1/1/2024","100000.00"
3-
"[email protected]","1/1/2023","95000.00"
4-
"[email protected]","1/1/2022","90000.00"
5-
"[email protected]","1/1/2021","85000.00"
6-
"[email protected]","1/1/2020","80000.00"
7-
"[email protected]","2/1/2024","100000.00"
8-
"[email protected]","2/1/2023","95000.00"
9-
"[email protected]","2/1/2022","90000.00"
10-
"[email protected]","2/1/2021","85000.00"
11-
"[email protected]","2/1/2020","80000.00"
1+
"emailAddress","startDate","compensation","totalComp"
2+
"[email protected]","1/1/2024","100000.00",
3+
"[email protected]","1/1/2023","95000.00",
4+
"[email protected]","1/1/2022","90000.00",
5+
"[email protected]","1/1/2021","85000.00",
6+
"[email protected]","1/1/2020","80000.00",
7+
"[email protected]","2/1/2024","100000.00",
8+
"[email protected]","2/1/2023","95000.00",
9+
"[email protected]","2/1/2022","90000.00",
10+
"[email protected]","2/1/2021","85000.00",
11+
"[email protected]","2/1/2020","80000.00",
12+
"[email protected]","2024",,"103000.00"
13+
"[email protected]","2023",,"98000.00"
14+
"[email protected]","2022",,"93000.00"
15+
"[email protected]","2021",,"88000.00"
16+
"[email protected]","2020",,"83000.00"
17+
"[email protected]","2024",,"103000.00"
18+
"[email protected]","2023",,"98000.00"
19+
"[email protected]","2022",,"93000.00"
20+
"[email protected]","2021",,"88000.00"
21+
"[email protected]","2020",,"83000.00"

0 commit comments

Comments
 (0)