Package org.openbravo.test.expression
Class OBBindingsTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.expression.OBBindingsTest
-
public class OBBindingsTest extends OBBaseTest
Test the result of evaluating JavaScript expressions configuringOBBindings
as the Java binding to be used by the engine in the execution of the scripts.
-
-
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 OBBindingsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customFormatDate()
void
customParseDate()
void
formatDate()
void
formatDateTime()
void
getBooleanValueFromRequestMap()
void
getContextInfo()
void
getStringValueFromRequestMap()
void
initScriptEngine()
void
parseDate()
void
parseDateTime()
void
shouldGetNullWhenNull()
void
shouldGetNullWhenUndefinedProperty()
void
shouldGetNullWhenUndefinedPropertyInArray()
-
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
-
formatDate
public void formatDate() throws ScriptException
- Throws:
ScriptException
-
customFormatDate
public void customFormatDate() throws ScriptException
- Throws:
ScriptException
-
formatDateTime
public void formatDateTime() throws ScriptException
- Throws:
ScriptException
-
parseDate
public void parseDate() throws ScriptException, ParseException
- Throws:
ScriptException
ParseException
-
customParseDate
public void customParseDate() throws ScriptException, ParseException
- Throws:
ScriptException
ParseException
-
parseDateTime
public void parseDateTime() throws ScriptException, ParseException
- Throws:
ScriptException
ParseException
-
getContextInfo
public void getContextInfo() throws ScriptException
- Throws:
ScriptException
-
getStringValueFromRequestMap
public void getStringValueFromRequestMap() throws ScriptException
- Throws:
ScriptException
-
getBooleanValueFromRequestMap
public void getBooleanValueFromRequestMap() throws ScriptException
- Throws:
ScriptException
-
shouldGetNullWhenUndefinedProperty
public void shouldGetNullWhenUndefinedProperty() throws ScriptException
- Throws:
ScriptException
-
shouldGetNullWhenUndefinedPropertyInArray
public void shouldGetNullWhenUndefinedPropertyInArray() throws ScriptException
- Throws:
ScriptException
-
shouldGetNullWhenNull
public void shouldGetNullWhenNull() throws ScriptException
- Throws:
ScriptException
-
-