public class

UtilsForTests

extends Object
java.lang.Object
   ↳ com.atlassian.core.ofbiz.test.UtilsForTests

Summary

Nested Classes
class UtilsForTests.EntityException  
Public Constructors
UtilsForTests()
Public Methods
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 GenericValue getTestConstant(String entity, Map params)
static GenericValue getTestEntity(String entity, Map fields)
Get a test Entity
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UtilsForTests ()

Public Methods

public static void checkSingleElementCollection (Collection collection, Object expected)

Check that a collection has only one element, and that is the object provided

public static void cleanOFBiz ()

public static void cleanWebWork ()

public static GenericValue getTestConstant (String entity, Map params)

public static GenericValue getTestEntity (String entity, Map fields)

Get a test Entity

Parameters
entity the name of the entity
fields the field values
Returns
  • the created GenericValue
Throws
UtilsForTests.EntityException if OfBiz throws a GenericEntityException