Skip to content

Commit

Permalink
JAMES-1842: Rename GuiceJamesServer to GuiceJamesServerImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Duprat authored and Quynh Nguyen committed Nov 18, 2016
1 parent 95e1120 commit 932f16c
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 48 deletions.
Expand Up @@ -22,7 +22,7 @@
import java.util.Iterator; import java.util.Iterator;


import org.apache.james.CassandraJamesServerMain; import org.apache.james.CassandraJamesServerMain;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.backends.cassandra.EmbeddedCassandra; import org.apache.james.backends.cassandra.EmbeddedCassandra;
import org.apache.james.dnsservice.api.DNSService; import org.apache.james.dnsservice.api.DNSService;
import org.apache.james.mailbox.elasticsearch.EmbeddedElasticSearch; import org.apache.james.mailbox.elasticsearch.EmbeddedElasticSearch;
Expand All @@ -42,7 +42,7 @@ public class CassandraJamesSmtpHostSystem extends ExternalSessionFactory impleme
private EmbeddedCassandra embeddedCassandra; private EmbeddedCassandra embeddedCassandra;
private EmbeddedElasticSearch embeddedElasticSearch; private EmbeddedElasticSearch embeddedElasticSearch;


private GuiceJamesServer jamesServer; private GuiceJamesServerImpl jamesServer;
private InMemoryDNSService inMemoryDNSService; private InMemoryDNSService inMemoryDNSService;




Expand Down Expand Up @@ -104,8 +104,8 @@ public InMemoryDNSService getInMemoryDnsService() {
return inMemoryDNSService; return inMemoryDNSService;
} }


protected GuiceJamesServer createJamesServer() { protected GuiceJamesServerImpl createJamesServer() {
return new GuiceJamesServer() return new GuiceJamesServerImpl()
.combineWith(CassandraJamesServerMain.cassandraServerModule) .combineWith(CassandraJamesServerMain.cassandraServerModule)
.overrideWith(new CassandraJmapServerModule(folder::getRoot, embeddedElasticSearch, embeddedCassandra), .overrideWith(new CassandraJmapServerModule(folder::getRoot, embeddedElasticSearch, embeddedCassandra),
(binder) -> binder.bind(DNSService.class).toInstance(inMemoryDNSService)); (binder) -> binder.bind(DNSService.class).toInstance(inMemoryDNSService));
Expand Down
Expand Up @@ -27,7 +27,7 @@
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.util.Modules; import com.google.inject.util.Modules;


public class CassandraJamesServer extends GuiceJamesServer implements JmapServer, WebAdminServer { public class CassandraJamesServer extends GuiceJamesServerImpl implements JmapServer, WebAdminServer {


public CassandraJamesServer() { public CassandraJamesServer() {
super(); super();
Expand Down
Expand Up @@ -52,7 +52,7 @@ public class CassandraJamesServerMain {




public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
GuiceJamesServer server = new GuiceJamesServer() GuiceJamesServerImpl server = new GuiceJamesServerImpl()
.combineWith(cassandraServerModule, new JMXServerModule()); .combineWith(cassandraServerModule, new JMXServerModule());
server.start(); server.start();
} }
Expand Down
Expand Up @@ -46,7 +46,7 @@


public class JamesCapabilitiesServerTest { public class JamesCapabilitiesServerTest {


private GuiceJamesServer server; private GuiceJamesServerImpl server;
private TemporaryFolder temporaryFolder = new TemporaryFolder(); private TemporaryFolder temporaryFolder = new TemporaryFolder();
private EmbeddedElasticSearch embeddedElasticSearch = new EmbeddedElasticSearch(temporaryFolder); private EmbeddedElasticSearch embeddedElasticSearch = new EmbeddedElasticSearch(temporaryFolder);


Expand All @@ -58,10 +58,10 @@ public void teardown() {
server.stop(); server.stop();
} }


private GuiceJamesServer createCassandraJamesServer(final MailboxManager mailboxManager) { private GuiceJamesServerImpl createCassandraJamesServer(final MailboxManager mailboxManager) {
Module mockMailboxManager = (binder) -> binder.bind(MailboxManager.class).toInstance(mailboxManager); Module mockMailboxManager = (binder) -> binder.bind(MailboxManager.class).toInstance(mailboxManager);


return new GuiceJamesServer() return new GuiceJamesServerImpl()
.combineWith(CassandraJamesServerMain.cassandraServerModule) .combineWith(CassandraJamesServerMain.cassandraServerModule)
.overrideWith(new TestElasticSearchModule(embeddedElasticSearch), .overrideWith(new TestElasticSearchModule(embeddedElasticSearch),
new TestFilesystemModule(temporaryFolder), new TestFilesystemModule(temporaryFolder),
Expand Down
Expand Up @@ -38,28 +38,28 @@
import com.google.inject.TypeLiteral; import com.google.inject.TypeLiteral;
import com.google.inject.util.Modules; import com.google.inject.util.Modules;


public class GuiceJamesServer { public class GuiceJamesServerImpl {
protected final Module module; protected final Module module;
private Stager<PreDestroy> preDestroy; private Stager<PreDestroy> preDestroy;
private GuiceProbeProvider guiceProbeProvider; private GuiceProbeProvider guiceProbeProvider;


public GuiceJamesServer() { public GuiceJamesServerImpl() {
this(Modules.combine( this(Modules.combine(
new CommonServicesModule(), new CommonServicesModule(),
new ProtocolsModule(), new ProtocolsModule(),
new MailetProcessingModule())); new MailetProcessingModule()));
} }


protected GuiceJamesServer(Module module) { protected GuiceJamesServerImpl(Module module) {
this.module = module; this.module = module;
} }


public GuiceJamesServer combineWith(Module... modules) { public GuiceJamesServerImpl combineWith(Module... modules) {
return new GuiceJamesServer(Modules.combine(Iterables.concat(Arrays.asList(module), Arrays.asList(modules)))); return new GuiceJamesServerImpl(Modules.combine(Iterables.concat(Arrays.asList(module), Arrays.asList(modules))));
} }


public GuiceJamesServer overrideWith(Module... overrides) { public GuiceJamesServerImpl overrideWith(Module... overrides) {
return new GuiceJamesServer(Modules.override(module).with(overrides)); return new GuiceJamesServerImpl(Modules.override(module).with(overrides));
} }


public void start() throws Exception { public void start() throws Exception {
Expand Down
Expand Up @@ -39,7 +39,7 @@ public abstract class AbstractJamesServerTest {
private static final int SMTP_PORT = 1025; private static final int SMTP_PORT = 1025;
private static final int LMTP_PORT = 1024; private static final int LMTP_PORT = 1024;


private GuiceJamesServer server; private GuiceJamesServerImpl server;
private SocketChannel socketChannel; private SocketChannel socketChannel;


@Before @Before
Expand All @@ -49,7 +49,7 @@ public void setup() throws Exception {
server.start(); server.start();
} }


protected abstract GuiceJamesServer createJamesServer(); protected abstract GuiceJamesServerImpl createJamesServer();


protected abstract void clean(); protected abstract void clean();


Expand Down
Expand Up @@ -39,7 +39,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class AbstractJmapJamesServerTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class AbstractJmapJamesServerTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final int IMAP_PORT = 1143; // You need to be root (superuser) to bind to ports under 1024. private static final int IMAP_PORT = 1143; // You need to be root (superuser) to bind to ports under 1024.
private static final int IMAP_PORT_SSL = 1993; private static final int IMAP_PORT_SSL = 1993;
Expand Down
Expand Up @@ -27,7 +27,7 @@
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.util.Modules; import com.google.inject.util.Modules;


public class MemoryJamesServer extends GuiceJamesServer implements JmapServer, WebAdminServer { public class MemoryJamesServer extends GuiceJamesServerImpl implements JmapServer, WebAdminServer {
public MemoryJamesServer() { public MemoryJamesServer() {
super(); super();
} }
Expand Down
Expand Up @@ -32,7 +32,7 @@
import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatter;
import java.util.UUID; import java.util.UUID;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.model.ContinuationToken; import org.apache.james.jmap.model.ContinuationToken;
Expand All @@ -45,7 +45,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class JMAPAuthenticationTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class JMAPAuthenticationTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final ZonedDateTime oldDate = ZonedDateTime.parse("2011-12-03T10:15:30+01:00", DateTimeFormatter.ISO_OFFSET_DATE_TIME); private static final ZonedDateTime oldDate = ZonedDateTime.parse("2011-12-03T10:15:30+01:00", DateTimeFormatter.ISO_OFFSET_DATE_TIME);
private static final ZonedDateTime newDate = ZonedDateTime.parse("2011-12-03T10:16:30+01:00", DateTimeFormatter.ISO_OFFSET_DATE_TIME); private static final ZonedDateTime newDate = ZonedDateTime.parse("2011-12-03T10:16:30+01:00", DateTimeFormatter.ISO_OFFSET_DATE_TIME);
Expand Down
Expand Up @@ -31,7 +31,7 @@
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.api.access.AccessToken; import org.apache.james.jmap.api.access.AccessToken;
Expand All @@ -51,7 +51,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class VacationIntegrationTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class VacationIntegrationTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";
private static final String SECOND_NAME = "[1][0]"; private static final String SECOND_NAME = "[1][0]";
Expand Down
Expand Up @@ -35,7 +35,7 @@


import javax.mail.Flags; import javax.mail.Flags;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.JmapAuthentication; import org.apache.james.jmap.JmapAuthentication;
Expand All @@ -52,7 +52,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class GetMailboxesMethodTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class GetMailboxesMethodTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {
private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";


Expand Down
Expand Up @@ -36,7 +36,7 @@


import javax.mail.Flags; import javax.mail.Flags;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.JmapAuthentication; import org.apache.james.jmap.JmapAuthentication;
Expand All @@ -54,7 +54,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class GetMessageListMethodTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class GetMessageListMethodTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {
private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";


Expand Down
Expand Up @@ -28,7 +28,7 @@


import java.time.ZonedDateTime; import java.time.ZonedDateTime;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.FixedDateZonedDateTimeProvider; import org.apache.james.jmap.FixedDateZonedDateTimeProvider;
Expand All @@ -47,7 +47,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class GetVacationResponseTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class GetVacationResponseTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";
Expand Down
Expand Up @@ -36,7 +36,7 @@
import static org.hamcrest.Matchers.nullValue; import static org.hamcrest.Matchers.nullValue;
import static org.hamcrest.collection.IsMapWithSize.aMapWithSize; import static org.hamcrest.collection.IsMapWithSize.aMapWithSize;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.JmapAuthentication; import org.apache.james.jmap.JmapAuthentication;
Expand All @@ -54,7 +54,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class SetMailboxesMethodTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class SetMailboxesMethodTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";
Expand Down
Expand Up @@ -49,7 +49,7 @@
import javax.mail.Flags; import javax.mail.Flags;


import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.JmapAuthentication; import org.apache.james.jmap.JmapAuthentication;
Expand Down Expand Up @@ -80,7 +80,7 @@
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;
import com.jayway.restassured.specification.ResponseSpecification; import com.jayway.restassured.specification.ResponseSpecification;


public abstract class SetMessagesMethodTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class SetMessagesMethodTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final int _1MB = 1024*1024; private static final int _1MB = 1024*1024;
private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
Expand Down
Expand Up @@ -28,7 +28,7 @@
import java.time.ZonedDateTime; import java.time.ZonedDateTime;
import java.util.Optional; import java.util.Optional;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.JmapAuthentication; import org.apache.james.jmap.JmapAuthentication;
Expand All @@ -47,7 +47,7 @@
import com.jayway.restassured.builder.RequestSpecBuilder; import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType; import com.jayway.restassured.http.ContentType;


public abstract class SetVacationResponseTest<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public abstract class SetVacationResponseTest<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";
Expand Down
Expand Up @@ -37,7 +37,7 @@
import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Request;
import org.apache.http.client.fluent.Response; import org.apache.http.client.fluent.Response;
import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.api.access.AccessToken; import org.apache.james.jmap.api.access.AccessToken;
Expand All @@ -59,7 +59,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class DownloadStepdefs <T extends GuiceJamesServer & JmapServer & WebAdminServer> { public class DownloadStepdefs <T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String ONE_ATTACHMENT_EML_ATTACHEMENT_BLOB_ID = "4000c5145f633410b80be368c44e1c394bff9437"; private static final String ONE_ATTACHMENT_EML_ATTACHEMENT_BLOB_ID = "4000c5145f633410b80be368c44e1c394bff9437";
private static final String EXPIRED_ATTACHMENT_TOKEN = "usera@domain.tld_" private static final String EXPIRED_ATTACHMENT_TOKEN = "usera@domain.tld_"
Expand Down
Expand Up @@ -38,7 +38,7 @@
import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Request;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.methods.integration.cucumber.util.TableRow; import org.apache.james.jmap.methods.integration.cucumber.util.TableRow;
Expand All @@ -60,7 +60,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class GetMessagesMethodStepdefs <T extends GuiceJamesServer & JmapServer & WebAdminServer> { public class GetMessagesMethodStepdefs <T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final Optional<Map<String, String>> NO_HEADERS = Optional.empty(); private static final Optional<Map<String, String>> NO_HEADERS = Optional.empty();
private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
Expand Down
Expand Up @@ -20,7 +20,7 @@
package org.apache.james.jmap.methods.integration.cucumber; package org.apache.james.jmap.methods.integration.cucumber;


import org.apache.http.client.utils.URIBuilder; import org.apache.http.client.utils.URIBuilder;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;


Expand All @@ -29,7 +29,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class MainStepdefs<T extends GuiceJamesServer & JmapServer & WebAdminServer> { public class MainStepdefs<T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


public T jmapServer; public T jmapServer;
public Runnable awaitMethod = () -> {}; public Runnable awaitMethod = () -> {};
Expand Down
Expand Up @@ -32,7 +32,7 @@
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Request;
import org.apache.http.entity.ContentType; import org.apache.http.entity.ContentType;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.mailbox.exception.MailboxException; import org.apache.james.mailbox.exception.MailboxException;
Expand All @@ -50,7 +50,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class SetMailboxesMethodStepdefs <T extends GuiceJamesServer & JmapServer & WebAdminServer> { public class SetMailboxesMethodStepdefs <T extends GuiceJamesServerImpl & JmapServer & WebAdminServer> {


private static final String NAME = "[0][0]"; private static final String NAME = "[0][0]";
private static final String ARGUMENTS = "[0][1]"; private static final String ARGUMENTS = "[0][1]";
Expand Down
Expand Up @@ -32,7 +32,7 @@
import org.apache.http.client.fluent.Executor; import org.apache.http.client.fluent.Executor;
import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Request;
import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.api.access.AccessToken; import org.apache.james.jmap.api.access.AccessToken;
Expand All @@ -47,7 +47,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class UploadStepdefs <T extends GuiceJamesServer & JmapServer & WebAdminServer> { public class UploadStepdefs <T extends GuiceJamesServerImpl & JmapServer & WebAdminServer>{
private static final String _1M_ZEROED_FILE_BLOB_ID = "3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3"; private static final String _1M_ZEROED_FILE_BLOB_ID = "3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3";
private static final int _1M = 1024 * 1024; private static final int _1M = 1024 * 1024;
private static final int _10M = 10 * _1M; private static final int _10M = 10 * _1M;
Expand Down
Expand Up @@ -27,7 +27,7 @@


import javax.inject.Inject; import javax.inject.Inject;


import org.apache.james.GuiceJamesServer; import org.apache.james.GuiceJamesServerImpl;
import org.apache.james.JmapServer; import org.apache.james.JmapServer;
import org.apache.james.WebAdminServer; import org.apache.james.WebAdminServer;
import org.apache.james.jmap.HttpJmapAuthentication; import org.apache.james.jmap.HttpJmapAuthentication;
Expand All @@ -44,7 +44,7 @@
import cucumber.runtime.java.guice.ScenarioScoped; import cucumber.runtime.java.guice.ScenarioScoped;


@ScenarioScoped @ScenarioScoped
public class UserStepdefs <T extends GuiceJamesServer & JmapServer & WebAdminServer>{ public class UserStepdefs <T extends GuiceJamesServerImpl & JmapServer & WebAdminServer>{


private final MainStepdefs<T> mainStepdefs; private final MainStepdefs<T> mainStepdefs;


Expand Down

0 comments on commit 932f16c

Please sign in to comment.