Uploaded image for project: 'Spring Social'
  1. Spring Social
  2. SOCIAL-341

exception thrown from getPrimaryConnection() if connection 1 is removed

    Details

      Description

      Here is a test case for class JdbcUsersConnectionRepositoryTest

      @Test
      public void findPrimaryConnectionAfterRemove() {
          insertFacebookConnection();
          insertFacebookConnection2();    
          // 9 is the providerUserId of the first Facebook connection
          connectionRepository.removeConnection(new ConnectionKey("facebook", "9"));
          assertEquals(1, connectionRepository.findConnections(TestFacebookApi.class).size());
          assertNotNull(connectionRepository.findPrimaryConnection(TestFacebookApi.class));
      }
      

        Attachments

          Activity

            People

            • Assignee:
              habuma Craig Walls
              Reporter:
              ngriso Nicolas Griso
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: