Class EntityCollectionPropertyProcessorUnitTest


  • @UnitTest
    public class EntityCollectionPropertyProcessorUnitTest
    extends java.lang.Object
    • Constructor Detail

      • EntityCollectionPropertyProcessorUnitTest

        public EntityCollectionPropertyProcessorUnitTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testIsPropertySupportedWithNoMatchingAttribute

        public void testIsPropertySupportedWithNoMatchingAttribute()
      • testIsPropertySupportedWithPrimitiveCollection

        public void testIsPropertySupportedWithPrimitiveCollection()
      • testIsPropertySupportedWithNotPrimitiveCollection

        public void testIsPropertySupportedWithNotPrimitiveCollection()
      • testIsPropertySupportedWithPrimitiveValue

        public void testIsPropertySupportedWithPrimitiveValue()
      • testIsPropertySupportedWithNonPrimitiveValue

        public void testIsPropertySupportedWithNonPrimitiveValue()
      • testItemWithNoProperties

        public void testItemWithNoProperties()
                                      throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testEntityNoSettableProperties

        public void testEntityNoSettableProperties()
                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testEntitySettableProperties

        public void testEntitySettableProperties()
                                          throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessItemWithIntegrationKey

        public void testProcessItemWithIntegrationKey()
                                               throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessWithMergeOfCollectionEntries

        public void testProcessSuccessWithMergeOfCollectionEntries()
                                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testAddNewItemToCollectionWhenAutoCreateIsTrue

        public void testAddNewItemToCollectionWhenAutoCreateIsTrue()
                                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessForTwoPartOfCollectionEntries

        public void testProcessSuccessForTwoPartOfCollectionEntries()
                                                             throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessForTwoPartOfCollectionEntriesWithSet

        public void testProcessSuccessForTwoPartOfCollectionEntriesWithSet()
                                                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessForTwoCollectionEntries

        public void testProcessSuccessForTwoCollectionEntries()
                                                       throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessForPropertyOfMapType

        public void testProcessSuccessForPropertyOfMapType()
                                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessSuccessForTwoCollectionEntriesWhenExistingItemOnAttributeIsNotDuplicatedInCollection

        public void testProcessSuccessForTwoCollectionEntriesWhenExistingItemOnAttributeIsNotDuplicatedInCollection()
                                                                                                             throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testExceptionWhileProcess

        public void testExceptionWhileProcess()
                                       throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPartOfRelationToSetOwnerAsForeignKey

        public void testPartOfRelationToSetOwnerAsForeignKey()
                                                      throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testAutoCreateAttributeDoesNotSetOwner

        public void testAutoCreateAttributeDoesNotSetOwner()
                                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testInnerStorageRequestsCorrectlyBuilt

        public void testInnerStorageRequestsCorrectlyBuilt()
                                                    throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPartOfRelationNotToOverrideOwnerForExistingItem

        public void testPartOfRelationNotToOverrideOwnerForExistingItem()
                                                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testNotPartOfAndNewCollectionItemThrowsException

        public void testNotPartOfAndNewCollectionItemThrowsException()
                                                              throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryEmptyCollection

        public void testPopulateEntryEmptyCollection()
                                              throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntrySingletonCollection

        public void testPopulateEntrySingletonCollection()
                                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryCollection

        public void testPopulateEntryCollection()
                                         throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryCollectionWhenNavigationSegmentProvidedIsIncluded

        public void testPopulateEntryCollectionWhenNavigationSegmentProvidedIsIncluded()
                                                                                throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryCollectionWhenNavigationSegmentProvidedNotIncluded

        public void testPopulateEntryCollectionWhenNavigationSegmentProvidedNotIncluded()
                                                                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryWithApplyInnerPopulationFalse

        public void testPopulateEntryWithApplyInnerPopulationFalse()
                                                            throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntrySet

        public void testPopulateEntrySet()
                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntrySetWhenPropertyValueIsNotCollection

        public void testPopulateEntrySetWhenPropertyValueIsNotCollection()
                                                                  throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntrySetWhenPropertyValueIsNotCollectionOfItems

        public void testPopulateEntrySetWhenPropertyValueIsNotCollectionOfItems()
                                                                         throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testPopulateEntryEnumNotSupported

        public void testPopulateEntryEnumNotSupported()
                                               throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessEntryRethrowsAttributeDescriptorNotFoundException

        public void testProcessEntryRethrowsAttributeDescriptorNotFoundException()
                                                                          throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • testProcessItemRethrowsAttributeDescriptorNotFoundException

        public void testProcessItemRethrowsAttributeDescriptorNotFoundException()
                                                                         throws org.apache.olingo.odata2.api.edm.EdmException
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException