@DemoTest public class TriggerServiceDemoTest extends ServicelayerBaseTest
| Modifier and Type | Field and Description |
|---|---|
protected static long |
HOUR |
protected static long |
MINUTE |
protected static long |
SECOND |
jaloSession| Constructor and Description |
|---|
TriggerServiceDemoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
protected ComposedType |
createType(java.lang.Class<? extends Item> parentJaloClass,
java.lang.String typeCode,
java.lang.Class<? extends Item> jaloClass)
Create a new Jalo type and register it with the type system.
|
protected boolean |
setTypeAttributeWritable(java.lang.String typeCode,
java.lang.Class<? extends AbstractItemModel> modelClass,
java.lang.String attributeQualifier,
boolean writable)
Set the writable status of a type attribute.
|
void |
setUp() |
void |
testActivationOldWay() |
void |
testActivationWithCronExpression() |
void |
testJobCreationWithNonWritableJobAttribute()
Mapping of cron job to cron job model may not be possible when some attributes of the cron job model are not
writable.
|
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected static final long SECOND
protected static final long MINUTE
protected static final long HOUR
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void cleanUp()
protected ComposedType createType(java.lang.Class<? extends Item> parentJaloClass, java.lang.String typeCode, java.lang.Class<? extends Item> jaloClass) throws JaloTypeException
parentJaloClass - The Jalo class of the parent type.typeCode - Type code of the new type. Must be unique.jaloClass - The Jalo class of the new type.JaloTypeException - Thrown if the code is not unique in the type system.java.lang.IllegalStateException - If a type with the same type code and a different Jalo class already exists in the type system.protected boolean setTypeAttributeWritable(java.lang.String typeCode,
java.lang.Class<? extends AbstractItemModel> modelClass,
java.lang.String attributeQualifier,
boolean writable)
typeCode - The type code.modelClass - Model class for the type.attributeQualifier - Qualifier to identify the attribute.writable - New writable status.public void testJobCreationWithNonWritableJobAttribute()
throws JaloTypeException,
ConsistencyCheckException
public void testActivationWithCronExpression()
public void testActivationOldWay()
Copyright © 2018 SAP SE. All Rights Reserved.