Package com.springsource.greenhouse.database

Examples of com.springsource.greenhouse.database.GreenhouseTestDatabaseBuilder


  private TokenStore tokenStore;
 
    @Before
    public void setup() {
    db = new GreenhouseTestDatabaseBuilder().member().connectedApp().testData(getClass()).getDatabase();
    tokenStore = new JdbcTokenStore(db);
      jdbcTemplate = new JdbcTemplate(db);
      controller = new SettingsController(tokenStore, jdbcTemplate);
     
      AuthorizationRequest authorizationRequest = new DefaultAuthorizationRequest("a08318eb478a1ee31f69a55276f3af64", Arrays.asList("read", "write"));
View Full Code Here


  private GroupRepository groupRepository;

  @Before
  public void setup() {
    db = new GreenhouseTestDatabaseBuilder().member().group().testData(getClass()).getDatabase();
    jdbcTemplate = new JdbcTemplate(db);
    groupRepository = new JdbcGroupRepository(jdbcTemplate);
  }
View Full Code Here

  private JdbcAccountRepository accountRepository;

  private JdbcTemplate jdbcTemplate;

  public JdbcAccountRepositoryTest() {
    EmbeddedDatabase db = new GreenhouseTestDatabaseBuilder().member().testData(getClass()).getDatabase();
    transactional = new Transactional(db);
    jdbcTemplate = new JdbcTemplate(db);
    AccountMapper accountMapper = new AccountMapper(new StubFileStorage(), "http://localhost:8080/members/{profileKey}");
    accountRepository = new JdbcAccountRepository(jdbcTemplate, NoOpPasswordEncoder.getInstance(), accountMapper);
  }
View Full Code Here

  private JdbcTemplate jdbcTemplate;

  private JdbcInviteRepository inviteRepository;
 
  public JdbcInviteRepositoryTest() {
    EmbeddedDatabase db = new GreenhouseTestDatabaseBuilder().member().activity().invite().testData(getClass()).getDatabase();
    transactional = new Transactional(db);
    jdbcTemplate = new JdbcTemplate(db);
    JdbcActionRepository actionRepository = new JdbcActionRepository(jdbcTemplate, new ActionGateway() {
      public void actionPerformed(Action action) {
      }
View Full Code Here

 
  private MailSender mailSender;
 
  @Before
  public void setUp() {
    db = new GreenhouseTestDatabaseBuilder().member().activity().invite().testData(getClass()).getDatabase();
    jdbcTemplate = new JdbcTemplate(db);   
    InviteRepository inviteRepository = new JdbcInviteRepository(jdbcTemplate, null);
    mailSender = mock(MailSender.class);
    inviteService = new AsyncMailInviteService(mailSender, inviteRepository, "http://localhost:8443/invite/accept?token={token}");
  }
View Full Code Here

 
  private EventLoaderRepository eventLoaderRepository;
 
  @Before
  public void setup() {
    db = new GreenhouseTestDatabaseBuilder().member().group().activity().invite().venue().event().testData(getClass()).getDatabase();
    jdbcTemplate = new JdbcTemplate(db);
    eventLoaderRepository = new JdbcEventLoaderRepository(jdbcTemplate);
    eventRepository = new JdbcEventRepository(jdbcTemplate);
  }
View Full Code Here

  private EventLoaderRepository eventLoaderRepository;
  private NFJSLoader loader;

  @Before
  public void setup() {
    db = new GreenhouseTestDatabaseBuilder()
        .member()
        .group()
        .activity()
        .invite()
        .venue()
View Full Code Here

  private EventRepository eventRepository;

  @Before
  public void setup() {
    db = new GreenhouseTestDatabaseBuilder().member().group().activity().invite().venue().event().testData(getClass()).getDatabase();
    jdbcTemplate = new JdbcTemplate(db);
    eventRepository = new JdbcEventRepository(jdbcTemplate);
  }
View Full Code Here

 
  private JdbcTemplate jdbcTemplate;

  @Before
  public void setup() {
    db = new GreenhouseTestDatabaseBuilder().member().connectedAccount().testData(getClass()).getDatabase();
    jdbcTemplate = new JdbcTemplate(db);
    profileRepository = new JdbcProfileRepository(jdbcTemplate, new StubFileStorage());
    }
View Full Code Here

  private JdbcAppRepository appRepository;

  private JdbcTemplate jdbcTemplate;

  public JdbcAppRepositoryTest() {
    EmbeddedDatabase db = new GreenhouseTestDatabaseBuilder().member().connectedApp().testData(getClass()).getDatabase();
    transactional = new Transactional(db);
    jdbcTemplate = new JdbcTemplate(db);
    appRepository = new JdbcAppRepository(jdbcTemplate, Encryptors.noOpText());   
  }
View Full Code Here

TOP

Related Classes of com.springsource.greenhouse.database.GreenhouseTestDatabaseBuilder

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.