@IntegrationTest public class RuleVersioningIT extends ServicelayerTest
importServicejaloSession| Constructor and Description |
|---|
RuleVersioningIT() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractRuleEngineRuleModel |
createEmptyRule(java.lang.String ruleCode,
java.lang.String ruleUUID) |
protected SourceRuleModel |
createSourceRule() |
protected AbstractRuleEngineRuleModel |
getRuleFromResource(java.lang.String resourceName,
java.lang.String ruleCode,
java.lang.String ruleUUID) |
protected java.lang.String |
readFromResource(java.lang.String resourceName) |
void |
setUp() |
void |
shouldRaiseExceptionWhenTryingToSaveSourceRuleBasedRuleVersionLessThenModuleVersion() |
void |
shouldSaveManuallyCreatedRuleVersionWithoutContentValidation() |
void |
testRuleAndModuleChangeVersionSync() |
void |
testRuleAndModuleInitialVersion() |
void |
testRuleAndModuleVersionNotChangedIfContentIsSame() |
void |
testRuleVersionEqualsToModuleVersion() |
void |
testRuleVersionIfNewRuleIsAdded() |
void |
testRuleWithoutContent() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected SourceRuleModel createSourceRule()
public void testRuleWithoutContent()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleAndModuleInitialVersion()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleAndModuleChangeVersionSync()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleAndModuleVersionNotChangedIfContentIsSame()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleVersionIfNewRuleIsAdded()
throws java.lang.Exception
java.lang.Exceptionpublic void testRuleVersionEqualsToModuleVersion()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldRaiseExceptionWhenTryingToSaveSourceRuleBasedRuleVersionLessThenModuleVersion()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldSaveManuallyCreatedRuleVersionWithoutContentValidation()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String readFromResource(java.lang.String resourceName)
throws java.io.IOException
java.io.IOExceptionprotected AbstractRuleEngineRuleModel getRuleFromResource(java.lang.String resourceName, java.lang.String ruleCode, java.lang.String ruleUUID) throws java.io.IOException
java.io.IOExceptionprotected AbstractRuleEngineRuleModel createEmptyRule(java.lang.String ruleCode, java.lang.String ruleUUID) throws java.io.IOException
java.io.IOExceptionCopyright © 2018 SAP SE. All Rights Reserved.