@Test public void testFunctionImportBasic() { VARIANT = 0; build(); List<FunctionImport> functionImportList = jpaEdmfunctionImport.getConsistentFunctionImportList(); assertEquals(functionImportList.size(), 1); for (FunctionImport functionImport : functionImportList) { assertEquals(functionImport.getName(), "Method1"); assertNotNull(functionImport.getMapping()); Mapping mapping = new Mapping(); mapping.setInternalName("method1"); assertEquals(mapping.getInternalName(), functionImport.getMapping().getInternalName()); ReturnType returnType = functionImport.getReturnType(); assertNotNull(returnType); assertEquals(EdmMultiplicity.MANY, returnType.getMultiplicity()); List<FunctionImportParameter> funcImpList = functionImport.getParameters(); assertEquals(2, funcImpList.size()); assertEquals("Param1", funcImpList.get(0).getName()); assertEquals(EdmSimpleTypeKind.String, funcImpList.get(0).getType()); assertEquals("Param3", funcImpList.get(1).getName()); assertEquals(EdmSimpleTypeKind.Double, funcImpList.get(1).getType()); } }
@Override public List<FunctionImport> getConsistentFunctionImportList() { return consistentFunctionImportList; }
JPAEdmFunctionImport extends JPAEdmBaseViewImpl implements JPAEdmFunctionImportView { @Override public List<FunctionImport> getConsistentFunctionImportList() { return consistentFunctionImportList; } }
JPAEdmFunctionImport extends JPAEdmBaseViewImpl implements JPAEdmFunctionImportView { @Override public List<FunctionImport> getConsistentFunctionImportList() { return consistentFunctionImportList; } JPAEdmFunctionImport(final JPAEdmSchemaView view); }
JPAEdmFunctionImport extends JPAEdmBaseViewImpl implements JPAEdmFunctionImportView { @Override public List<FunctionImport> getConsistentFunctionImportList() { return consistentFunctionImportList; } JPAEdmFunctionImport(final JPAEdmSchemaView view); @Override JPAEdmBuilder getBuilder(); @Override List<FunctionImport> getConsistentFunctionImportList(); }
JPAEdmFunctionImport extends JPAEdmBaseViewImpl implements JPAEdmFunctionImportView { @Override public List<FunctionImport> getConsistentFunctionImportList() { return consistentFunctionImportList; } JPAEdmFunctionImport(final JPAEdmSchemaView view); @Override JPAEdmBuilder getBuilder(); @Override List<FunctionImport> getConsistentFunctionImportList();  }