@Test public void getEmptyMemberships() throws Exception { when(restService.makeCall(any(), any(), any())).thenReturn(new Membership()); Assert.assertTrue(membershipService.getAllMemberships().size() == 0); }
public List<String> getAllMemberships() { Membership memberships = restService.makeCall(membershipServerUrl, membershipServerUri, Membership.class); memberships.getMemberships().replaceAll(String::toUpperCase); return memberships.getMemberships(); }
MembershipService { public List<String> getAllMemberships() { Membership memberships = restService.makeCall(membershipServerUrl, membershipServerUri, Membership.class); memberships.getMemberships().replaceAll(String::toUpperCase); return memberships.getMemberships(); } }
MembershipService { public List<String> getAllMemberships() { Membership memberships = restService.makeCall(membershipServerUrl, membershipServerUri, Membership.class); memberships.getMemberships().replaceAll(String::toUpperCase); return memberships.getMemberships(); }  }
MembershipService { public List<String> getAllMemberships() { Membership memberships = restService.makeCall(membershipServerUrl, membershipServerUri, Membership.class); memberships.getMemberships().replaceAll(String::toUpperCase); return memberships.getMemberships(); }  List<String> getAllMemberships(); }
MembershipService { public List<String> getAllMemberships() { Membership memberships = restService.makeCall(membershipServerUrl, membershipServerUri, Membership.class); memberships.getMemberships().replaceAll(String::toUpperCase); return memberships.getMemberships(); }  List<String> getAllMemberships();  }