Class TriggerServiceDemoTest

    • Constructor Detail

      • TriggerServiceDemoTest

        public TriggerServiceDemoTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cleanUp

        public void cleanUp()
      • createType

        protected ComposedType createType​(java.lang.Class<? extends Item> parentJaloClass,
                                          java.lang.String typeCode,
                                          java.lang.Class<? extends Item> jaloClass)
                                   throws JaloTypeException
        Create a new Jalo type and register it with the type system. If a type with the same type code and Jalo class already exists, it is returned instead.
        Parameters:
        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.
        Returns:
        The new type instance.
        Throws:
        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.
      • setTypeAttributeWritable

        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.
        Parameters:
        typeCode - The type code.
        modelClass - Model class for the type.
        attributeQualifier - Qualifier to identify the attribute.
        writable - New writable status.
        Returns:
        Original writable status of the given attribute.
      • testJobCreationWithNonWritableJobAttribute

        public void testJobCreationWithNonWritableJobAttribute()
                                                        throws JaloTypeException,
                                                               ConsistencyCheckException
        Mapping of cron job to cron job model may not be possible when some attributes of the cron job model are not writable. This test validates that the corresponding exception is caught (and logged) and does not cause failure of the cron job creation and execution.
        Throws:
        JaloTypeException
        ConsistencyCheckException
      • testActivationWithCronExpression

        public void testActivationWithCronExpression()
      • testActivationOldWay

        public void testActivationOldWay()