You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: service/src/integrationTest/kotlin/fi/espoo/evaka/incomestatement/IncomeStatementControllerIntegrationTest.kt
+81-1
Original file line number
Diff line number
Diff line change
@@ -576,6 +576,77 @@ class IncomeStatementControllerIntegrationTest : FullApplicationTest(resetDbBefo
576
576
)
577
577
}
578
578
579
+
@Test
580
+
fun`list income statements awaiting handler - unit filter`() {
581
+
val placementId1 =PlacementId(UUID.randomUUID())
582
+
val placementId2 =PlacementId(UUID.randomUUID())
583
+
val placementStart = today.minusDays(30)
584
+
val placementEnd = today.plusDays(30)
585
+
db.transaction { tx ->
586
+
tx.insert(
587
+
DevParentship(
588
+
childId = testChild_1.id,
589
+
headOfChildId = citizenId,
590
+
startDate = placementStart,
591
+
endDate = placementEnd,
592
+
)
593
+
)
594
+
tx.insert(
595
+
DevPlacement(
596
+
id = placementId1,
597
+
type =PlacementType.PRESCHOOL_DAYCARE,
598
+
childId = testChild_1.id,
599
+
unitId = daycare1.id,
600
+
startDate = placementStart,
601
+
endDate = placementEnd,
602
+
)
603
+
)
604
+
605
+
tx.insert(
606
+
DevParentship(
607
+
childId = testChild_2.id,
608
+
headOfChildId = testAdult_2.id,
609
+
startDate = placementStart,
610
+
endDate = placementEnd,
611
+
)
612
+
)
613
+
tx.insert(
614
+
DevPlacement(
615
+
id = placementId2,
616
+
type =PlacementType.PRESCHOOL_DAYCARE,
617
+
childId = testChild_2.id,
618
+
unitId = daycare2.id,
619
+
startDate = placementStart,
620
+
endDate = placementEnd,
621
+
)
622
+
)
623
+
}
624
+
625
+
createTestIncomeStatement(citizenId)
626
+
val incomeStatement2 = createTestIncomeStatement(testAdult_2.id)
0 commit comments