com.atlassian.core.ofbiz.test
Class UtilsForTests

java.lang.Object
  extended by com.atlassian.core.ofbiz.test.UtilsForTests

public class UtilsForTests
extends Object


Nested Class Summary
static class UtilsForTests.EntityException
           
 
Constructor Summary
UtilsForTests()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilsForTests

public UtilsForTests()
Method Detail

getTestEntity

public static org.ofbiz.core.entity.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

getTestConstant

public static org.ofbiz.core.entity.GenericValue getTestConstant(String entity,
                                                                 Map params)

cleanWebWork

public static void cleanWebWork()

cleanOFBiz

public static void cleanOFBiz()

checkSingleElementCollection

public static void checkSingleElementCollection(Collection collection,
                                                Object expected)
Check that a collection has only one element, and that is the object provided



Copyright © 2002-2014 Atlassian. All Rights Reserved.