Beispiel #1
0
 @Test
 public void testRemoveProfile() throws Exception {
   UserProfile userProfile = new UserProfile(1224, "43562", "*****@*****.**", Locale.US);
   userProfile.addConnection(225, Status.SEX);
   ProfileClient.postProfile(userProfile);
   ProfileClient.removeProfile(userProfile);
 }
Beispiel #2
0
 @Test
 public void testGetProfile() throws Exception {
   UserProfile userProfile = new UserProfile(1223, "456", "*****@*****.**", Locale.US);
   userProfile.addConnection(225, Status.SEX);
   ProfileClient.postProfile(userProfile);
   UserProfile newUserProfile = ProfileClient.getUserProfile(userProfile);
   assertNotNull(newUserProfile);
 }
Beispiel #3
0
 @Test
 public void testAddConnection() throws Exception {
   UserProfile userProfile = new UserProfile(421345274, "Zw8Vj0pZ", "*****@*****.**", Locale.US);
   UserProfile myProfile =
       new UserProfile(21795879, "Zw8Vj0pZ", "*****@*****.**", Locale.US);
   ProfileClient.postProfile(myProfile);
   userProfile.addConnection(21795879, Status.TALK);
   ProfileClient.postProfile(userProfile);
   ProfileClient.removeProfile(myProfile);
 }