提交
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ class WarehouseResourceServiceTest {
|
||||
|
||||
ArgumentCaptor<WarehousePalletEntity> captor = ArgumentCaptor.forClass(WarehousePalletEntity.class);
|
||||
verify(repository).insertPallet(captor.capture());
|
||||
assertThat(captor.getValue().getPalletCode()).matches("PLT-USLAX01-[0-9]{6}-[0-9A-Z]+");
|
||||
assertThat(captor.getValue().getPalletCode()).matches("TP-[0-9A-Z]+");
|
||||
assertThat(captor.getValue().getPalletCode()).hasSizeLessThanOrEqualTo(34);
|
||||
assertThat(captor.getValue().getLocationId()).isEqualTo(30003L);
|
||||
assertThat(captor.getValue().getId()).isNotNull();
|
||||
|
||||
Reference in New Issue
Block a user