Skip to content

Commit 526a8b7

Browse files
Merge branch 'dev' into inventory
2 parents 1d51196 + a574cab commit 526a8b7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

backend/src/test/java/com/smalltrend/controller/inventory/dashboard/InventoryDashboardControllerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ void getBatchStatuses_shouldReturnOk() {
158158
.status("SAFE")
159159
.daysUntilExpiry(111)
160160
.value(new BigDecimal("5000000"))
161-
.locationName("Kho A1")
162161
.build(),
163162
BatchStatusResponse.builder()
164163
.batchId(2)
@@ -169,7 +168,6 @@ void getBatchStatuses_shouldReturnOk() {
169168
.status("EXPIRING_SOON")
170169
.daysUntilExpiry(4)
171170
.value(new BigDecimal("2500000"))
172-
.locationName("Kho B1")
173171
.build()
174172
);
175173
when(dashboardService.getBatchStatuses()).thenReturn(expected);

backend/src/test/java/com/smalltrend/service/inventory/dashboard/InventoryDashboardServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void getBatchStatuses_shouldReturnBatchStatuses() {
159159
assertEquals("BATCH-1", response.getBatchCode());
160160
assertEquals(100, response.getQuantity());
161161
assertEquals("EXPIRING_SOON", response.getStatus());
162-
assertEquals("Location 1", response.getLocationName());
162+
assertEquals(batch.getMfgDate(), response.getReceivedDate());
163163
assertEquals(new BigDecimal("1000.0"), response.getValue());
164164
}
165165

0 commit comments

Comments
 (0)