Package org.openbravo.test.dal
Class ValidationTest
- java.lang.Object
-
- org.openbravo.test.base.MockableBaseTest
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.test.dal.ValidationTest
-
public class ValidationTest extends OBBaseTest
Test property validations and validators.- Author:
- mtaal
- See Also:
Property.getValidator()
,Property.checkIsValidValue(Object)
,NumericPropertyValidator
,StringPropertyValidator
-
-
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 ValidationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testFieldLength()
Tests the field length validation on a String.void
testListValue()
Tests the validation of a list value (an enumeration).void
testMantis8624()
Tests Mantis issue: 8624: Validation should not check field length of id/foreign key columnsvoid
testMaxValue()
Test the validation of a max value of a numeric property.void
testMinValue()
Test the validation of a min value of a numeric property.void
testTypeCheckDynamicObject()
Performs type checking of property values on aDynamicOBObject
.void
testTypeChecking()
Tests the type checking of primitiveProperty
values.-
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
-
testTypeChecking
public void testTypeChecking()
Tests the type checking of primitiveProperty
values.
-
testTypeCheckDynamicObject
public void testTypeCheckDynamicObject()
Performs type checking of property values on aDynamicOBObject
.
-
testListValue
public void testListValue()
Tests the validation of a list value (an enumeration).
-
testFieldLength
public void testFieldLength()
Tests the field length validation on a String.
-
testMaxValue
public void testMaxValue()
Test the validation of a max value of a numeric property.- See Also:
Property.getMaxValue()
-
testMinValue
public void testMinValue()
Test the validation of a min value of a numeric property.- See Also:
Property.getMinValue()
-
testMantis8624
public void testMantis8624()
Tests Mantis issue: 8624: Validation should not check field length of id/foreign key columns
-
-