Class EntityPropertyProcessorUnitTest


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

      • EntityPropertyProcessorUnitTest

        public EntityPropertyProcessorUnitTest()
    • Method Detail

      • setUp

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

        public void testIsPropertySupportedWithNonPrimitiveCollection()
      • testIsPropertySupportedWithPrimitiveCollection

        public void testIsPropertySupportedWithPrimitiveCollection()
      • testIsPropertySupportedWithPrimitiveValue

        public void testIsPropertySupportedWithPrimitiveValue()
      • testIsPropertySupportedWithNonPrimitiveValue

        public void testIsPropertySupportedWithNonPrimitiveValue()
      • testEntityWithNoProperties

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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