Class ItemModelTest

    • Constructor Detail

      • ItemModelTest

        public ItemModelTest()
    • Method Detail

      • setUp

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

        public void tearDown()
      • enableDirectMode

        protected void enableDirectMode()
      • forceLegacyMode

        protected void forceLegacyMode()
      • getPrefetchMode

        protected abstract java.lang.String getPrefetchMode()
      • getModelConvertersToReload

        protected abstract java.util.Map<java.lang.String,​java.lang.Class<? extends ItemModel>> getModelConvertersToReload()
      • testSerializableStrategies

        public void testSerializableStrategies()
                                        throws java.io.IOException,
                                               java.lang.ClassNotFoundException,
                                               JaloSecurityException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        JaloSecurityException
      • testNotSerializableWhenNewChangedOrRemoved

        public void testNotSerializableWhenNewChangedOrRemoved()
                                                        throws java.io.IOException,
                                                               java.lang.ClassNotFoundException,
                                                               JaloSecurityException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        JaloSecurityException
      • testLoadingNormalAttributeUsingDirectPersistence

        public abstract void testLoadingNormalAttributeUsingDirectPersistence()
      • testLoadingNormalAttributeUsingOldPersistence

        public abstract void testLoadingNormalAttributeUsingOldPersistence()
      • testLoadingReferenceAttribute

        public void testLoadingReferenceAttribute()
      • testChangingUnloadedReference

        public void testChangingUnloadedReference()
      • testLoadingPrimitiveAttributeUsingDirectPersistence

        public abstract void testLoadingPrimitiveAttributeUsingDirectPersistence()
      • testLoadingPrimitiveAttributeUsingOldPersistence

        public abstract void testLoadingPrimitiveAttributeUsingOldPersistence()
      • testLoadingOnlyInitialAttribute

        public void testLoadingOnlyInitialAttribute()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLocalizedLoading

        public void testLocalizedLoading()
      • testLoadingSettingComposedAttribute

        public void testLoadingSettingComposedAttribute()
      • testCreateByModelClass

        public void testCreateByModelClass()
      • testCreateByTypeCode

        public void testCreateByTypeCode()
      • getLoadedValue

        protected <T> T getLoadedValue​(AbstractItemModel model,
                                       java.lang.String attribute)
      • testLoadByPK

        public void testLoadByPK()
      • testCreateAttachLocalization

        public void testCreateAttachLocalization()
      • testDetachedLocalization

        public void testDetachedLocalization()
      • testUpToDate

        public void testUpToDate()
      • testDetachViaSource

        public void testDetachViaSource()
      • testModifieableCollections

        public void testModifieableCollections()
      • testLanguageFallback

        public void testLanguageFallback()
      • testLoadingError

        public void testLoadingError()
      • testSaveMapAttribute

        public void testSaveMapAttribute()
      • testEnumLocalization

        public void testEnumLocalization()
      • testHashMapVersusArrays

        public void testHashMapVersusArrays()
      • testContextStateChange

        public void testContextStateChange()
        PLA-9413
      • testRelationSetterWithNull

        public void testRelationSetterWithNull()
        PLA-10327
      • testRelationSetterWithEmptyColl

        public void testRelationSetterWithEmptyColl()
        PLA-10327
      • testLocalizedSetterWithoutSessionLang

        public void testLocalizedSetterWithoutSessionLang()
      • testLocalizedSetterWithSessionLang

        public void testLocalizedSetterWithSessionLang()
      • testSetLocalizedAttributesForSubTypeInModelHierarchy

        public void testSetLocalizedAttributesForSubTypeInModelHierarchy()
        Example of test fetching localized attribute from super parent type "TypeManagerManaged" , where in type hierarchy comes another type "Type" which adds additional localized values. This is special case when the protected _localizedValues could be overriden and localized attribute might get lost.
      • testSaveAfterAttachedTwice

        public void testSaveAfterAttachedTwice()
      • testGeneratePKForNewModel

        public void testGeneratePKForNewModel()