Package com.atlassian.core.ofbiz.test
Class UtilsForTests
java.lang.Object
com.atlassian.core.ofbiz.test.UtilsForTests
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkSingleElementCollection
(Collection collection, Object expected) Check that a collection has only one element, and that is the object providedstatic void
static void
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
-
Constructor Details
-
UtilsForTests
public UtilsForTests()
-
-
Method Details
-
getTestEntity
Get a test Entity- Parameters:
entity
- the name of the entityfields
- the field values- Returns:
- the created GenericValue
- Throws:
UtilsForTests.EntityException
- if OfBiz throws aGenericEntityException
-
getTestConstant
-
cleanWebWork
public static void cleanWebWork() -
cleanOFBiz
public static void cleanOFBiz() -
checkSingleElementCollection
Check that a collection has only one element, and that is the object provided
-