@Test public void testFullyQualifiedWrongFunctionImportName() { String fullyQualifiedFunctionImportName = AnnotationFunctionImportFactory.getFullyQualifiedFunctionImportName( WrongFunctionImportSample.class.getAnnotation(EdmFunctionImport.class), WrongFunctionImportSample.class); assertEquals("com.sdl.odata.edm.factory.annotations.WrongFunctionImportSample", fullyQualifiedFunctionImportName); }
public static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation, Class<?> functionImportClass) { String name = getTypeName(functionImportAnnotation, functionImportClass); String namespace = getNamespace(functionImportAnnotation, functionImportClass); return namespace + "." + name; }
AnnotationFunctionImportFactory { public static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation, Class<?> functionImportClass) { String name = getTypeName(functionImportAnnotation, functionImportClass); String namespace = getNamespace(functionImportAnnotation, functionImportClass); return namespace + "." + name; } }
AnnotationFunctionImportFactory { public static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation, Class<?> functionImportClass) { String name = getTypeName(functionImportAnnotation, functionImportClass); String namespace = getNamespace(functionImportAnnotation, functionImportClass); return namespace + "." + name; }  }
AnnotationFunctionImportFactory { public static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation, Class<?> functionImportClass) { String name = getTypeName(functionImportAnnotation, functionImportClass); String namespace = getNamespace(functionImportAnnotation, functionImportClass); return namespace + "." + name; }  void addFunctionImport(Class<?> cls); Iterable<FunctionImport> build(FactoryLookup lookup); static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation,
                                                             Class<?> functionImportClass); }
AnnotationFunctionImportFactory { public static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation, Class<?> functionImportClass) { String name = getTypeName(functionImportAnnotation, functionImportClass); String namespace = getNamespace(functionImportAnnotation, functionImportClass); return namespace + "." + name; }  void addFunctionImport(Class<?> cls); Iterable<FunctionImport> build(FactoryLookup lookup); static String getFullyQualifiedFunctionImportName(EdmFunctionImport functionImportAnnotation,
                                                             Class<?> functionImportClass);  }