@Test public void checkReturnMapWithTwoIfTwoJavaFunctionsFound() throws ODataJPAModelException { javaActions.add(ExampleJavaTwoActions.class); Map<? extends String, ? extends IntermediateJavaAction> act = cut.create(new JPADefaultEdmNameBuilder(PUNIT_NAME), reflections, helper.schema); assertEquals(2, act.size()); }
@SuppressWarnings("unchecked") <F extends IntermediateJavaAction> Map<String, F> create(final JPAEdmNameBuilder nameBuilder, final Reflections reflections, final IntermediateSchema schema) throws ODataJPAModelException { return (Map<String, F>) createOperationMap(nameBuilder, reflections, schema, ODataAction.class, EdmAction.class); }
IntermediateActionFactory extends IntermediateOperationFactory { @SuppressWarnings("unchecked") <F extends IntermediateJavaAction> Map<String, F> create(final JPAEdmNameBuilder nameBuilder, final Reflections reflections, final IntermediateSchema schema) throws ODataJPAModelException { return (Map<String, F>) createOperationMap(nameBuilder, reflections, schema, ODataAction.class, EdmAction.class); } }
IntermediateActionFactory extends IntermediateOperationFactory { @SuppressWarnings("unchecked") <F extends IntermediateJavaAction> Map<String, F> create(final JPAEdmNameBuilder nameBuilder, final Reflections reflections, final IntermediateSchema schema) throws ODataJPAModelException { return (Map<String, F>) createOperationMap(nameBuilder, reflections, schema, ODataAction.class, EdmAction.class); }  }
IntermediateActionFactory extends IntermediateOperationFactory { @SuppressWarnings("unchecked") <F extends IntermediateJavaAction> Map<String, F> create(final JPAEdmNameBuilder nameBuilder, final Reflections reflections, final IntermediateSchema schema) throws ODataJPAModelException { return (Map<String, F>) createOperationMap(nameBuilder, reflections, schema, ODataAction.class, EdmAction.class); }   }
IntermediateActionFactory extends IntermediateOperationFactory { @SuppressWarnings("unchecked") <F extends IntermediateJavaAction> Map<String, F> create(final JPAEdmNameBuilder nameBuilder, final Reflections reflections, final IntermediateSchema schema) throws ODataJPAModelException { return (Map<String, F>) createOperationMap(nameBuilder, reflections, schema, ODataAction.class, EdmAction.class); }    }