Package org.openbravo.test.dal
Class DalPerformanceProductTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.dal.DalPerformanceProductTest
-
public class DalPerformanceProductTest extends OBBaseTest
Does some simple performance tests by reading and updating of allProduct
objects, either directly or in paged mode.- Author:
- mtaal
-
-
Field Summary
-
Fields inherited from class org.openbravo.test.base.OBBaseTest
DOLLAR, DOLLAR_ID, EURO, EURO_ID, QA_TEST_ADMIN_USER_ID, QA_TEST_CLIENT_ID, QA_TEST_ORG_ID, TEST_BP_CATEGORY_ID, TEST_CLIENT_ID, TEST_LOCATION_ID, TEST_ORDER_ID, TEST_ORG_ID, TEST_ORG_TREE, TEST_PRODUCT_ID, TEST_ROLE_ID, TEST_US_ORG_ID, TEST_USER_ID, TEST_WAREHOUSE_ID, TEST2_USER_ID, userIds, watchFailures
-
-
Constructor Summary
Constructors Constructor Description DalPerformanceProductTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testProduct25PageRead()
Tests a paged read of products and print of the identifier.void
testProduct25PageReadGetExtra()
Tests a paged read of products and print of the identifier.void
testReadProducts()
Reads allProduct
objects sorted by name and also prints related information:Product.getProductCategory()
andProduct.getTaxCategory()
.void
testUpdateAllProducts()
Reads allProduct
objects and updates the name.void
testUpdateAllProductsByPage()
Reads all products in a paged manner and updates the name.-
Methods inherited from class org.openbravo.test.base.OBBaseTest
addReadWriteAccess, classSetUp, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, initializeDisabledTestCases, initializeTestLogAppender, isErrorOccured, reportException, rollback, setLogStackTraces, setQAAdminContext, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUp, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
-
-
-
Method Detail
-
testProduct25PageRead
public void testProduct25PageRead()
Tests a paged read of products and print of the identifier. The timing is reported in the log.
-
testProduct25PageReadGetExtra
public void testProduct25PageReadGetExtra()
Tests a paged read of products and print of the identifier. In addition extra information is read for theProduct
, nl. theProduct.getProductCategory()
and theProduct.getTaxCategory()
. The timing is reported in the log.
-
testReadProducts
public void testReadProducts()
Reads allProduct
objects sorted by name and also prints related information:Product.getProductCategory()
andProduct.getTaxCategory()
.
-
testUpdateAllProducts
public void testUpdateAllProducts()
Reads allProduct
objects and updates the name.
-
testUpdateAllProductsByPage
public void testUpdateAllProductsByPage()
Reads all products in a paged manner and updates the name.
-
-