@Test public void shouldConvertToMap() throws Exception { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>() {{ put("email", "email"); put("token", "token"); }}); RequestMap map = sellerCredential.asMap(); assertEquals(expectedMap, map); }
@Override public RequestMap asMap() { final RequestMap form = new RequestMap(); form.putString("email", email); form.putString("token", token); return form; }
SellerCredential extends Credential { @Override public RequestMap asMap() { final RequestMap form = new RequestMap(); form.putString("email", email); form.putString("token", token); return form; } }
SellerCredential extends Credential { @Override public RequestMap asMap() { final RequestMap form = new RequestMap(); form.putString("email", email); form.putString("token", token); return form; } SellerCredential(String email, String token); }
SellerCredential extends Credential { @Override public RequestMap asMap() { final RequestMap form = new RequestMap(); form.putString("email", email); form.putString("token", token); return form; } SellerCredential(String email, String token); @Override RequestMap asMap(); @Override String toString(); @Override boolean equals(Object o); }
SellerCredential extends Credential { @Override public RequestMap asMap() { final RequestMap form = new RequestMap(); form.putString("email", email); form.putString("token", token); return form; } SellerCredential(String email, String token); @Override RequestMap asMap(); @Override String toString(); @Override boolean equals(Object o);  }