sonar fix - add test cases for CommanderTest
This commit is contained in:
@@ -178,6 +178,15 @@ class CommanderTest {
|
|||||||
assertFalse(StringUtils.isBlank(order.id));
|
assertFalse(StringUtils.isBlank(order.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testPlaceOrderNoExceptionShortMsgDuration() throws Exception {
|
||||||
|
Commander c = buildCommanderObjectNoException();
|
||||||
|
var order = new Order(new User("K", "J"), "pen", 1f);
|
||||||
|
Thread.sleep(messageTime);
|
||||||
|
c.placeOrder(order);
|
||||||
|
assertFalse(StringUtils.isBlank(order.id));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testPlaceOrderWithDatabase() throws Exception {
|
void testPlaceOrderWithDatabase() throws Exception {
|
||||||
Commander c = buildCommanderObjectWithDB();
|
Commander c = buildCommanderObjectWithDB();
|
||||||
|
Reference in New Issue
Block a user