public class AdminTestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SB |
protected org.broadleafcommerce.common.sandbox.service.SandBoxService |
sandBoxService |
protected org.broadleafcommerce.common.site.service.SiteService |
siteService |
protected StreamingTransactionCapableUtil |
transUtil |
| Constructor and Description |
|---|
AdminTestHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
endView()
Complete the scope of the EntityManager-In-View operation.
|
org.broadleafcommerce.common.sandbox.domain.SandBox |
findSandBox(Long siteId,
String sandBoxName)
Find the user sandbox based on the provided site and sandbox name.
|
void |
pause(Long wait)
Simple pause
|
void |
startView()
|
void |
startView(Long siteId)
|
void |
startView(Long siteId,
String sandBoxName)
Useful to start an EntityManager-In-View.
|
void |
tryWithPause(Integer retryCount,
Long wait,
Runnable runnable)
Try a test assertion repeatedly encapsulated in a Runnable.
|
public static final String DEFAULT_SB
@Autowired @Qualifier(value="blStreamingTransactionCapableUtil") protected StreamingTransactionCapableUtil transUtil
@Autowired protected org.broadleafcommerce.common.site.service.SiteService siteService
@Autowired protected org.broadleafcommerce.common.sandbox.service.SandBoxService sandBoxService
public void pause(Long wait)
wait - public void tryWithPause(Integer retryCount, Long wait, Runnable runnable)
retryCount - wait - runnable - public void startView()
startView(Long, String). Allows avoiding providing a site and sandbox.public void startView(Long siteId)
startView(Long, String). Allows avoiding providing a sandbox.siteId - public void startView(Long siteId, String sandBoxName)
endView() method should be called to end the scope of the view.
This view scope is also aware of nested views against the same persistence unit, so you don't need to worry
about coding carefully to avoid nesting calls to startView.siteId - sandBoxName - public void endView()
startView(Long, String).Copyright © 2018. All rights reserved.