@Test public void checkReturnTypeEmbedded() throws ODataJPAModelException { EdmFunction func = mock(EdmFunction.class); EdmFunction.ReturnType retType = mock(EdmFunction.ReturnType.class); when(func.returnType()).thenReturn(retType); when(func.parameter()).thenReturn(new EdmParameter[0]); when(retType.type()).thenAnswer(new Answer<Class<?>>() { @Override public Class<?> answer(InvocationOnMock invocation) throws Throwable { return ChangeInformation.class; } }); IntermediateFunction act = new IntermediateDataBaseFunction(new JPADefaultEdmNameBuilder(PUNIT_NAME), func, BusinessPartner.class, helper.schema); assertEquals("com.sap.olingo.jpa.ChangeInformation", act.getEdmItem().getReturnType().getTypeFQN() .getFullQualifiedNameAsString()); }
@Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); @Override String getDBName(); @Override EdmFunctionType getFunctionType(); @Override List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final String internalName); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType(); }
IntermediateDataBaseFunction extends IntermediateFunction implements JPADataBaseFunction { @Override public CsdlReturnType getReturnType() { return edmFunction.getReturnType(); } IntermediateDataBaseFunction(final JPAEdmNameBuilder nameBuilder, final EdmFunction jpaFunction,
      final Class<?> definingPOJO, final IntermediateSchema schema); @Override String getDBName(); @Override EdmFunctionType getFunctionType(); @Override List<JPAParameter> getParameter(); @Override JPAParameter getParameter(final String internalName); @Override JPAOperationResultParameter getResultParameter(); @Override CsdlReturnType getReturnType();  }