@Test public void Test() { EdmEntitySet edmEntitySet = EasyMock.createMock(EdmEntitySet.class); try { EasyMock.expect(edmEntitySet.getName()).andReturn("SalesOrder"); EasyMock.replay(edmEntitySet); } catch (EdmException e) { fail("Not Expected"); } GetEntitySetUriInfo resultsView = EasyMock.createMock(GetEntitySetUriInfo.class); EasyMock.expect(resultsView.getTargetEntitySet()).andReturn(edmEntitySet); EasyMock.replay(resultsView); JPATombstoneCallBack tombStoneCallBack = new JPATombstoneCallBack("/sample/", resultsView, "1"); TombstoneCallbackResult result = tombStoneCallBack.getTombstoneCallbackResult(); assertEquals("/sample/SalesOrder?!deltatoken=1", result.getDeltaLink()); }
@Override public TombstoneCallbackResult getTombstoneCallbackResult() { TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult(); jpaTombstoneCallBackResult.setDeltaLink(buildToken()); return jpaTombstoneCallBackResult; }
JPATombstoneCallBack implements TombstoneCallback { @Override public TombstoneCallbackResult getTombstoneCallbackResult() { TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult(); jpaTombstoneCallBackResult.setDeltaLink(buildToken()); return jpaTombstoneCallBackResult; } }
JPATombstoneCallBack implements TombstoneCallback { @Override public TombstoneCallbackResult getTombstoneCallbackResult() { TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult(); jpaTombstoneCallBackResult.setDeltaLink(buildToken()); return jpaTombstoneCallBackResult; } JPATombstoneCallBack(final String baseUri, final GetEntitySetUriInfo resultsView,
      final String deltaTokenValue); }
JPATombstoneCallBack implements TombstoneCallback { @Override public TombstoneCallbackResult getTombstoneCallbackResult() { TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult(); jpaTombstoneCallBackResult.setDeltaLink(buildToken()); return jpaTombstoneCallBackResult; } JPATombstoneCallBack(final String baseUri, final GetEntitySetUriInfo resultsView,
      final String deltaTokenValue); @Override TombstoneCallbackResult getTombstoneCallbackResult(); }
JPATombstoneCallBack implements TombstoneCallback { @Override public TombstoneCallbackResult getTombstoneCallbackResult() { TombstoneCallbackResult jpaTombstoneCallBackResult = new TombstoneCallbackResult(); jpaTombstoneCallBackResult.setDeltaLink(buildToken()); return jpaTombstoneCallBackResult; } JPATombstoneCallBack(final String baseUri, final GetEntitySetUriInfo resultsView,
      final String deltaTokenValue); @Override TombstoneCallbackResult getTombstoneCallbackResult();  }