Package org.springframework.social.config

Examples of org.springframework.social.config.FakeTemplate


  }

  @Test
  public void jdbcConnectionRepository_connectionSignUp() {
    UsersConnectionRepository repository = context.getBean("usersConnectionRepository", UsersConnectionRepository.class);
    Connection<Fake> connection = new DummyConnection<Fake>("fake", "fakeuser", new FakeTemplate());
    List<String> users = repository.findUserIdsWithConnection(connection);
    assertEquals(1, users.size());
  }
View Full Code Here


         
      Connection<Fake> connection = usersConnectionRepository.createConnectionRepository(userIdSource.getUserId()).findPrimaryConnection(Fake.class);
      if (logger.isDebugEnabled() && connection == null) {
        logger.debug("No current connection; Returning default FakeTemplate instance.");
      }
      return connection != null ? connection.getApi() : new FakeTemplate();
    }
View Full Code Here

 
  @Test
  @Ignore
  public void jdbcConnectionRepository_connectionSignUp() {
    UsersConnectionRepository repository = context.getBean("usersConnectionRepository", UsersConnectionRepository.class);
    Connection<Fake> connection = new DummyConnection<Fake>("fake", "fakeuser", new FakeTemplate());
    List<String> users = repository.findUserIdsWithConnection(connection);
    assertEquals(1, users.size());
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.config.FakeTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.