@SuppressWarnings("serial") @Test public void test() { ActionContext ctx = new ActionContext() { public Serializable getParams() { return new GetRequestForGroupMembershipRequest(8L, null, 0, 0); } public Map<String, Object> getState() { return null; } @Override public String getActionId() { return null; } @Override public void setActionId(final String inActionId) { } }; Serializable result = new HasGroupIdToGroupIdRequestTransformer().transform(ctx); assertEquals("8", result); }
@Override public Serializable transform(final ActionContext inActionContext) { return Long.toString(((HasGroupId) inActionContext.getParams()).getGroupId()); }
HasGroupIdToGroupIdRequestTransformer implements RequestTransformer { @Override public Serializable transform(final ActionContext inActionContext) { return Long.toString(((HasGroupId) inActionContext.getParams()).getGroupId()); } }
HasGroupIdToGroupIdRequestTransformer implements RequestTransformer { @Override public Serializable transform(final ActionContext inActionContext) { return Long.toString(((HasGroupId) inActionContext.getParams()).getGroupId()); }  }
HasGroupIdToGroupIdRequestTransformer implements RequestTransformer { @Override public Serializable transform(final ActionContext inActionContext) { return Long.toString(((HasGroupId) inActionContext.getParams()).getGroupId()); }  @Override Serializable transform(final ActionContext inActionContext); }
HasGroupIdToGroupIdRequestTransformer implements RequestTransformer { @Override public Serializable transform(final ActionContext inActionContext) { return Long.toString(((HasGroupId) inActionContext.getParams()).getGroupId()); }  @Override Serializable transform(final ActionContext inActionContext);  }