Пример #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);
 }
Пример #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);
 }
Пример #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);
 }