Package org.openbravo.service.json.test
Class JsonConversionTest
- java.lang.Object
-
- org.openbravo.test.base.MockableBaseTest
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.service.json.test.JsonConversionTest
-
public class JsonConversionTest extends OBBaseTest
Test theDataToJsonConverter
and theJsonToDataConverter
classes by converting to and from json.- 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_INVOICE_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 JsonConversionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testIssue14697CheckDerivedReadableCurrency()
void
testJsonConversionAllObjects()
Read all objects in the database and translate to json and back.void
testJsonConversionListOfObjects()
Read list of ADColumn objects and translate to json and back.void
testJsonConversionOfSingleObject()
Read one BaseOBObject and convert to json and back to the object again.void
testJsonMultiplePaths()
Test a json property path consisting of several steps (dots).-
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
-
Methods inherited from class org.openbravo.test.base.MockableBaseTest
mockStatic
-
-
-
-
Method Detail
-
testJsonConversionOfSingleObject
public void testJsonConversionOfSingleObject() throws Exception
Read one BaseOBObject and convert to json and back to the object again.- Throws:
Exception
-
testJsonMultiplePaths
public void testJsonMultiplePaths() throws Exception
Test a json property path consisting of several steps (dots).- Throws:
Exception
-
testJsonConversionListOfObjects
public void testJsonConversionListOfObjects() throws Exception
Read list of ADColumn objects and translate to json and back.- Throws:
Exception
-
testJsonConversionAllObjects
public void testJsonConversionAllObjects() throws Exception
Read all objects in the database and translate to json and back. Then check that no updates take place.- Throws:
Exception
-
testIssue14697CheckDerivedReadableCurrency
public void testIssue14697CheckDerivedReadableCurrency()
-
-