@Override protected CertPathStore newCertPathStore() { this.memoryStore = new MemoryStore(); return memoryStore; } }
@Override protected CertPathStore newCertPathStore() { this.memoryStore = new MemoryStore(); return memoryStore; } }
@Override protected AccountStore newAccountStore() { return new MemoryStore(); } }
@Override protected AccountStore newAccountStore() { return new MemoryStore(); } }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); store = new MemoryStore(); store.putAccount(account); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); store = new MemoryStore(); store.putAccount(account); }
@Override protected void setUp() throws Exception { accountStore = new MemoryStore(); accountAttachmentStore = mock(AccountAttachmentStore.class); when( accountAttachmentStore.storeAvatar((ParticipantId) anyObject(), anyString(), anyString(), anyString())).thenReturn("image/png;image.png"); sessionManager = mock(SessionManager.class); service = new AccountService(sessionManager, accountStore, accountAttachmentStore, "example.com"); }
@Override protected void setUp() throws Exception { waveletProvider = new WaveletProviderStub(); AccountStore accountStore = new MemoryStore(); accountStore.putAccount(new HumanAccountDataImpl(ParticipantId.ofUnsafe("fred@example.com"))); org.eclipse.jetty.server.SessionManager jettySessionManager = mock(org.eclipse.jetty.server.SessionManager.class); SessionManager sessionManager = new SessionManagerImpl(accountStore, jettySessionManager); session = mock(HttpSession.class); when(session.getAttribute(SessionManager.USER_FIELD)).thenReturn(ParticipantId.ofUnsafe("fred@example.com")); servlet = new FetchServlet(waveletProvider, protoSerializer, sessionManager); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); account = new HumanAccountDataImpl(ParticipantId.ofUnsafe("tubes@example.com")); store.putAccount(account); sessionManager = new SessionManagerImpl(store, jettySessionManager); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); account = new HumanAccountDataImpl(ParticipantId.ofUnsafe("tubes@example.com")); store.putAccount(account); sessionManager = new SessionManagerImpl(store, jettySessionManager); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); HumanAccountData account = new HumanAccountDataImpl(USER, new PasswordDigest("password".toCharArray())); store.putAccount(account); Config config = ConfigFactory.parseMap(ImmutableMap.<String, Object>of( "administration.disable_registration", false, "administration.analytics_account", "UA-someid", "security.enable_clientauth", false, "security.clientauth_cert_domain", "", "administration.disable_loginpage", false) ); servlet = new AuthenticationServlet(store, AuthTestUtil.makeConfiguration(), manager, "examPLe.com", config); AccountStoreHolder.init(store, "eXaMple.com"); when(session.getId()).thenReturn(""); }
@Override protected void setUp() throws Exception { super.setUp(); store = new MemoryStore(); config = ConfigFactory.parseString("federation.waveserver_disable_verification : " + false); manager = new CertificateManagerImpl(config, getSigner(), getVerifier(store, true), store); ticker = new Ticker(); }
@Override protected void setUp() throws Exception { super.setUp(); store = new MemoryStore(); config = ConfigFactory.parseString("federation.waveserver_disable_verification : " + false); manager = new CertificateManagerImpl(config, getSigner(), getVerifier(store, true), store); ticker = new Ticker(); }
@Override protected void setUp() throws Exception { waveletProvider = new WaveletProviderStub(); AccountStore accountStore = new MemoryStore(); accountStore.putAccount(new HumanAccountDataImpl(ParticipantId.ofUnsafe("fred@example.com"))); org.eclipse.jetty.server.SessionManager jettySessionManager = mock(org.eclipse.jetty.server.SessionManager.class); SessionManager sessionManager = new SessionManagerImpl(accountStore, jettySessionManager); servlet = new FetchServlet(waveletProvider, protoSerializer, sessionManager); }
@Override protected void setUp() throws Exception { MockitoAnnotations.initMocks(this); AccountStore store = new MemoryStore(); HumanAccountData account = new HumanAccountDataImpl(USER, new PasswordDigest("password".toCharArray())); store.putAccount(account); Config config = ConfigFactory.parseMap(ImmutableMap.<String, Object>of( "administration.disable_registration", false, "administration.analytics_account", "UA-someid", "security.enable_clientauth", false, "security.clientauth_cert_domain", "", "administration.disable_loginpage", false) ); servlet = new AuthenticationServlet(store, AuthTestUtil.makeConfiguration(), manager, "examPLe.com", config, welcomeBot); AccountStoreHolder.init(store, "eXaMple.com"); }
@Override protected void setUp() throws Exception { AccountStore store = new MemoryStore(); store.putAccount(new HumanAccountDataImpl( ParticipantId.ofUnsafe("haspwd@example.com"), new PasswordDigest("pwd".toCharArray()))); store.putAccount(new HumanAccountDataImpl(ParticipantId.ofUnsafe("nopwd@example.com"))); AccountStoreHolder.init(store, "example.com"); }
@Override protected void setUp() throws Exception { AccountStore store = new MemoryStore(); store.putAccount(new HumanAccountDataImpl( ParticipantId.ofUnsafe("haspwd@example.com"), new PasswordDigest("pwd".toCharArray()))); store.putAccount(new HumanAccountDataImpl(ParticipantId.ofUnsafe("nopwd@example.com"))); AccountStoreHolder.init(store, "example.com"); }