@UnitTest public class DefaultFlashbuyPromotionServiceTest extends java.lang.Object
DefaultFlashbuyPromotionService| Constructor and Description |
|---|
DefaultFlashbuyPromotionServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testAllocateNoReserveFound() |
void |
testAllocateSuccess() |
void |
testAllocateWhenCartEntryIsNull() |
void |
testAllocateWhenProductIsNull() |
void |
testAllocateWhenPromotionIsNull() |
void |
testEnqueue() |
void |
testEnqueueFailedTwice() |
void |
testEnqueueFailedWhenPromotionNotExists() |
void |
testEnqueueFailedWhenPromotionNotFlashbuy() |
void |
testEnqueueWhenCustomerIsNull() |
void |
testEnqueueWhenProductIsNull() |
void |
testEnqueueWhenPromotionIsNull() |
void |
testGetReamainingQty() |
void |
testGetReservedQty() |
void |
testReserveNoEnqueueFound() |
void |
testReserveSuccess() |
void |
testReserveWhenCartEntryIsNull() |
void |
testReserveWhenCustomerIsNull() |
void |
testReserveWhenProductIsNull() |
void |
testReserveWhenPromotionIsNull() |
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetReamainingQty()
public void testGetReservedQty()
public void testEnqueueWhenCustomerIsNull()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueueWhenPromotionIsNull()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueueWhenProductIsNull()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueueFailedTwice()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueueFailedWhenPromotionNotFlashbuy()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueueFailedWhenPromotionNotExists()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testEnqueue()
throws MultipleEnqueueException
MultipleEnqueueExceptionpublic void testReserveWhenCustomerIsNull()
public void testReserveWhenPromotionIsNull()
public void testReserveWhenProductIsNull()
public void testReserveWhenCartEntryIsNull()
public void testAllocateWhenPromotionIsNull()
public void testAllocateWhenProductIsNull()
public void testAllocateWhenCartEntryIsNull()
public void testReserveNoEnqueueFound()
public void testReserveSuccess()
public void testAllocateNoReserveFound()
public void testAllocateSuccess()
Copyright © 2018 SAP SE. All Rights Reserved.