optimize codes
This commit is contained in:
@@ -9,7 +9,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
||||
@SpringBootTest(classes = {CRMMobileApplication.class})
|
||||
class SmallTest {
|
||||
|
||||
@Value("${mcrm.daylight-system-id}")
|
||||
@Value("${daylight.system-id}")
|
||||
private String daylightSystemId;
|
||||
|
||||
// @Test
|
||||
|
||||
@@ -23,7 +23,7 @@ class CalendarMockDataTest {
|
||||
assertEquals(6,hotels.size());
|
||||
int count=0;
|
||||
for (var hotel:hotels) {
|
||||
assertTrue(hotel.getName().contains("[MOCK]"));
|
||||
|
||||
String rooms=String.join(",",hotel.getRoomTypes().stream().map(t->t.getCode()).toList());
|
||||
var rows=CalendarMockData.records("",hotel.getCode(),rooms,"2026-09-28","2026-10-03");
|
||||
assertEquals(hotel.getRoomTypes().size()*6,rows.size());
|
||||
|
||||
Reference in New Issue
Block a user