Class OFBizTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.ofbiz.entity.testtools.EntityTestCase
org.apache.ofbiz.service.testtools.OFBizTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CCServicesTest, EntityXmlAssertTest, FinAccountTest, FinAccountTests, GroovyDslServiceEngineTests, InventoryItemTransferTest, IssuanceTest, LuceneTests, MiniLangTests, OrderTest, PerformFindTests, PurchaseOrderTest, SalesOrderTest, ServiceEngineTests, ServiceEntityAutoTests, ServicePermissionTests, ServiceSOAPTests, ServiceTest, SimpleMethodTest, SolrTests, StockMovesTest, UspsServicesTests, WidgetMacroLibraryTests

public class OFBizTestCase extends EntityTestCase
  • Constructor Details

    • OFBizTestCase

      public OFBizTestCase(String name)
  • Method Details

    • getDispatcher

      public LocalDispatcher getDispatcher()
      Gets dispatcher.
      Returns:
      the dispatcher
    • setDispatcher

      public void setDispatcher(LocalDispatcher dispatcher)
      Sets dispatcher.
      Parameters:
      dispatcher - the dispatcher
    • getUserLogin

      protected GenericValue getUserLogin(String userLoginId) throws GenericEntityException
      Gets user login.
      Parameters:
      userLoginId - the user login id
      Returns:
      the user login
      Throws:
      GenericEntityException - the generic entity exception
    • getUserLogin

      protected GenericValue getUserLogin() throws GenericEntityException
      Gets user login.
      Returns:
      the user login
      Throws:
      GenericEntityException - the generic entity exception
    • from

      protected EntityQuery from(String entityName)
      From entity query.
      Parameters:
      entityName - the entity name
      Returns:
      the entity query
    • from

      protected EntityQuery from(DynamicViewEntity dynamicViewEntity)
      From entity query.
      Parameters:
      dynamicViewEntity - the dynamic view entity
      Returns:
      the entity query
    • select

      protected EntityQuery select(String... fields)
      Select entity query.
      Parameters:
      fields - the fields
      Returns:
      the entity query
    • select

      protected EntityQuery select(Set<String> fields)
      Select entity query.
      Parameters:
      fields - the fields
      Returns:
      the entity query
    • logInfo

      protected void logInfo(String msg)
      Log info.
      Parameters:
      msg - the msg
    • logError

      protected void logError(String msg)
      Log error.
      Parameters:
      msg - the msg
    • logWarning

      protected void logWarning(String msg)
      Log warning.
      Parameters:
      msg - the msg