@IntegrationTest public class BeanShellConstraintValidationTest extends AbstractConstraintTest
AbstractConstraintTest.ConstraintconstraintDao, flexibleSearchService, i18nService, modelService, typeService, validationServiceimportServicejaloSession| Constructor and Description |
|---|
BeanShellConstraintValidationTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testSimpleCustomerDateCheck()
validates customer instance if it suits such script
|
void |
testSimpleCustomerNameCheck()
validates customer instance if it suits such script
|
void |
testSimplePojoFieldCheck() |
void |
testSimplePrintln() |
void |
testSimplePrintlnInvalidScript()
this case in future should be replaced with checking script validity after saving such constraint , so misspelled
BSH scripts throwing
bsh.EvalError won't be savable |
void |
testSimpleSlayerFetch()
tests bindable application ctx object
|
assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithEvaluatedMessage, assertModelSavingExceptionWithMessageKey, assertModelSavingExceptionWithMessageKey, assertTrimmedException, calculateFractionPrecision, checkException, checkException, getDefaultMessage, resetConstraints, unloadEnginecreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void testSimplePrintln()
public void testSimpleSlayerFetch()
public void testSimplePrintlnInvalidScript()
bsh.EvalError won't be savablepublic void testSimpleCustomerNameCheck()
return (this.name != this.customerID);
public void testSimpleCustomerDateCheck()
return (this.creationDate.after(new Date());
public void testSimplePojoFieldCheck()
Copyright © 2018 SAP SE. All Rights Reserved.