@Test public void testGetResultWithTwoLinked() throws ODataJPAModelException, ODataApplicationException { createCutGetResultWithWithTwoLinked(); Map<JPAAssociationPath, JPAExpandResult> act = cut.getChildren(); assertNotNull(act); assertEquals(1, act.size()); for (JPAAssociationPath actPath : act.keySet()) { assertEquals("Children", actPath.getAlias()); List<Tuple> subResult = act.get(actPath).getResult("Eurostat/NUTS1/BE2"); assertEquals(2, subResult.size()); } }
@Override public Map<JPAAssociationPath, JPAExpandResult> getChildren() { return children; }
JPACreateResult implements JPAExpandResult { @Override public Map<JPAAssociationPath, JPAExpandResult> getChildren() { return children; } }
JPACreateResult implements JPAExpandResult { @Override public Map<JPAAssociationPath, JPAExpandResult> getChildren() { return children; } JPACreateResult(final JPAEntityType et, final Map<String, List<String>> requestHeaders); }
JPACreateResult implements JPAExpandResult { @Override public Map<JPAAssociationPath, JPAExpandResult> getChildren() { return children; } JPACreateResult(final JPAEntityType et, final Map<String, List<String>> requestHeaders); @Override void convert(final JPATupleChildConverter converter); @Override JPAExpandResult getChild(JPAAssociationPath associationPath); @Override Map<JPAAssociationPath, JPAExpandResult> getChildren(); @Override Long getCount(final String key); @Override JPAEntityType getEntityType(); @Override boolean hasCount(); }
JPACreateResult implements JPAExpandResult { @Override public Map<JPAAssociationPath, JPAExpandResult> getChildren() { return children; } JPACreateResult(final JPAEntityType et, final Map<String, List<String>> requestHeaders); @Override void convert(final JPATupleChildConverter converter); @Override JPAExpandResult getChild(JPAAssociationPath associationPath); @Override Map<JPAAssociationPath, JPAExpandResult> getChildren(); @Override Long getCount(final String key); @Override JPAEntityType getEntityType(); @Override boolean hasCount();  }