public class UtilsForTests extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UtilsForTests.EntityException |
Constructor and Description |
---|
UtilsForTests() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSingleElementCollection(Collection collection,
Object expected)
Check that a collection has only one element, and that is the object provided
|
static void |
cleanOFBiz() |
static void |
cleanWebWork() |
static org.ofbiz.core.entity.GenericValue |
getTestConstant(String entity,
Map params) |
static org.ofbiz.core.entity.GenericValue |
getTestEntity(String entity,
Map fields)
Get a test Entity
|
public static org.ofbiz.core.entity.GenericValue getTestEntity(String entity, Map fields)
entity
- the name of the entityfields
- the field valuesUtilsForTests.EntityException
- if OfBiz throws a GenericEntityException
public static org.ofbiz.core.entity.GenericValue getTestConstant(String entity, Map params)
public static void cleanWebWork()
public static void cleanOFBiz()
public static void checkSingleElementCollection(Collection collection, Object expected)
Copyright © 2002-2019 Atlassian. All Rights Reserved.