JAMES-2242 Guice meta-modules should be in upper case
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/992a4d07 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/992a4d07 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/992a4d07 Branch: refs/heads/master Commit: 992a4d07dd0f6e29ce639ca58b3909e74e3bbc85 Parents: 9ad1616 Author: benwa <btell...@linagora.com> Authored: Fri Dec 1 15:59:00 2017 +0700 Committer: Antoine Duprat <adup...@linagora.com> Committed: Mon Dec 4 14:42:23 2017 +0100 ---------------------------------------------------------------------- .../smtp/host/CassandraJamesSmtpHostSystem.java | 2 +- .../apache/james/CassandraJamesServerMain.java | 10 +++++----- .../org/apache/james/CassandraJmapTestRule.java | 2 +- .../james/JamesCapabilitiesServerTest.java | 2 +- .../james/CassandraLdapJamesServerMain.java | 2 +- .../org/apache/james/JPAJamesServerMain.java | 10 +++++----- .../org/apache/james/JPAJamesServerTest.java | 2 +- .../james/JamesCapabilitiesServerTest.java | 2 +- .../org/apache/james/JPAJamesServerMain.java | 6 +++--- .../org/apache/james/JPAJamesServerTest.java | 2 +- .../org/apache/james/MemoryJamesServerMain.java | 20 ++++++++++---------- .../org/apache/james/MemoryJmapTestRule.java | 2 +- .../GatewayRemoteDeliveryIntegrationTest.java | 2 +- .../james/mailets/TemporaryJamesServer.java | 2 +- .../cassandra/cucumber/CassandraStepdefs.java | 2 +- .../jmap/memory/cucumber/MemoryStepdefs.java | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java ---------------------------------------------------------------------- diff --git a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java index a7a3fbf..3556014 100644 --- a/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java +++ b/mpt/impl/smtp/cassandra/src/test/java/org/apache/james/mpt/smtp/host/CassandraJamesSmtpHostSystem.java @@ -102,7 +102,7 @@ public class CassandraJamesSmtpHostSystem extends ExternalSessionFactory impleme protected GuiceJamesServer createJamesServer() { return new GuiceJamesServer() - .combineWith(CassandraJamesServerMain.cassandraServerModule, CassandraJamesServerMain.protocols, new ProtocolHandlerModule()) + .combineWith(CassandraJamesServerMain.CASSANDRA_SERVER_MODULE, CassandraJamesServerMain.PROTOCOLS, new ProtocolHandlerModule()) .overrideWith(new CassandraJmapServerModule(folder::getRoot, embeddedElasticSearch, cassandraHost, cassandraPort), (binder) -> binder.bind(DNSService.class).toInstance(inMemoryDNSService)); } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/cassandra-guice/src/main/java/org/apache/james/CassandraJamesServerMain.java ---------------------------------------------------------------------- diff --git a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/CassandraJamesServerMain.java b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/CassandraJamesServerMain.java index fc7b762..8a81e4c 100644 --- a/server/container/guice/cassandra-guice/src/main/java/org/apache/james/CassandraJamesServerMain.java +++ b/server/container/guice/cassandra-guice/src/main/java/org/apache/james/CassandraJamesServerMain.java @@ -51,14 +51,14 @@ import com.google.inject.util.Modules; public class CassandraJamesServerMain { - public static final Module webadmin = Modules.combine( + public static final Module WEBADMIN = Modules.combine( new CassandraRoutesModule(), new DataRoutesModules(), new MailboxRoutesModule(), new SwaggerRoutesModule(), new WebAdminServerModule()); - public static final Module protocols = Modules.combine( + public static final Module PROTOCOLS = Modules.combine( new IMAPServerModule(), new LMTPServerModule(), new ManageSieveServerModule(), @@ -66,9 +66,9 @@ public class CassandraJamesServerMain { new ProtocolHandlerModule(), new SMTPServerModule(), new JMAPServerModule(), - webadmin); + WEBADMIN); - public static final Module cassandraServerModule = Modules.combine( + public static final Module CASSANDRA_SERVER_MODULE = Modules.combine( new ActiveMQQueueModule(), new CassandraDomainListModule(), new CassandraJmapModule(), @@ -85,7 +85,7 @@ public class CassandraJamesServerMain { public static void main(String[] args) throws Exception { GuiceJamesServer server = new GuiceJamesServer() - .combineWith(cassandraServerModule, protocols, new JMXServerModule()); + .combineWith(CASSANDRA_SERVER_MODULE, PROTOCOLS, new JMXServerModule()); server.start(); } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraJmapTestRule.java ---------------------------------------------------------------------- diff --git a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraJmapTestRule.java b/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraJmapTestRule.java index 5d45c16..36eae85 100644 --- a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraJmapTestRule.java +++ b/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraJmapTestRule.java @@ -48,7 +48,7 @@ public class CassandraJmapTestRule implements TestRule { public GuiceJamesServer jmapServer(Module... additionals) { return new GuiceJamesServer() - .combineWith(CassandraJamesServerMain.cassandraServerModule, CassandraJamesServerMain.protocols) + .combineWith(CassandraJamesServerMain.CASSANDRA_SERVER_MODULE, CassandraJamesServerMain.PROTOCOLS) .overrideWith(binder -> binder.bind(TextExtractor.class).to(PDFTextExtractor.class)) .overrideWith(new TestJMAPServerModule(LIMIT_TO_3_MESSAGES)) .overrideWith(new TestESMetricReporterModule()) http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/cassandra-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java ---------------------------------------------------------------------- diff --git a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java b/server/container/guice/cassandra-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java index 5f561b5..1bce059 100644 --- a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java +++ b/server/container/guice/cassandra-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java @@ -61,7 +61,7 @@ public class JamesCapabilitiesServerTest { Module mockMailboxManager = (binder) -> binder.bind(MailboxManager.class).toInstance(mailboxManager); return new GuiceJamesServer() - .combineWith(CassandraJamesServerMain.cassandraServerModule, CassandraJamesServerMain.protocols) + .combineWith(CassandraJamesServerMain.CASSANDRA_SERVER_MODULE, CassandraJamesServerMain.PROTOCOLS) .overrideWith((binder) -> binder.bind(PersistenceAdapter.class).to(MemoryPersistenceAdapter.class)) .overrideWith(new TestElasticSearchModule(embeddedElasticSearch), new TestFilesystemModule(temporaryFolder), http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/CassandraLdapJamesServerMain.java ---------------------------------------------------------------------- diff --git a/server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/CassandraLdapJamesServerMain.java b/server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/CassandraLdapJamesServerMain.java index 746abec..042cb2b 100644 --- a/server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/CassandraLdapJamesServerMain.java +++ b/server/container/guice/cassandra-ldap-guice/src/main/java/org/apache/james/CassandraLdapJamesServerMain.java @@ -27,7 +27,7 @@ import com.google.inject.util.Modules; public class CassandraLdapJamesServerMain { - public static final Module cassandraLdapServerModule = Modules.override(CassandraJamesServerMain.cassandraServerModule, CassandraJamesServerMain.protocols) + public static final Module cassandraLdapServerModule = Modules.override(CassandraJamesServerMain.CASSANDRA_SERVER_MODULE, CassandraJamesServerMain.PROTOCOLS) .with(new LdapUsersRepositoryModule()); public static void main(String[] args) throws Exception { http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/jpa-guice/src/main/java/org/apache/james/JPAJamesServerMain.java ---------------------------------------------------------------------- diff --git a/server/container/guice/jpa-guice/src/main/java/org/apache/james/JPAJamesServerMain.java b/server/container/guice/jpa-guice/src/main/java/org/apache/james/JPAJamesServerMain.java index 783b1bd..141df5f 100644 --- a/server/container/guice/jpa-guice/src/main/java/org/apache/james/JPAJamesServerMain.java +++ b/server/container/guice/jpa-guice/src/main/java/org/apache/james/JPAJamesServerMain.java @@ -47,22 +47,22 @@ import com.google.inject.util.Modules; public class JPAJamesServerMain { - public static final Module webadmin = Modules.combine( + public static final Module WEBADMIN = Modules.combine( new WebAdminServerModule(), new DataRoutesModules(), new MailboxRoutesModule(), new SwaggerRoutesModule()); - public static final Module protocols = Modules.combine( + public static final Module PROTOCOLS = Modules.combine( new IMAPServerModule(), new LMTPServerModule(), new ManageSieveServerModule(), new POP3ServerModule(), new ProtocolHandlerModule(), new SMTPServerModule(), - webadmin); + WEBADMIN); - public static final Module jpaServerModule = Modules.combine( + public static final Module JPA_SERVER_MODULE = Modules.combine( new ActiveMQQueueModule(), new DefaultProcessorsConfigurationProviderModule(), new ElasticSearchMetricReporterModule(), @@ -76,7 +76,7 @@ public class JPAJamesServerMain { public static void main(String[] args) throws Exception { GuiceJamesServer server = new GuiceJamesServer() - .combineWith(jpaServerModule, protocols, + .combineWith(JPA_SERVER_MODULE, PROTOCOLS, new JMXServerModule(), new LuceneSearchMailboxModule()); server.start(); http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/jpa-guice/src/test/java/org/apache/james/JPAJamesServerTest.java ---------------------------------------------------------------------- diff --git a/server/container/guice/jpa-guice/src/test/java/org/apache/james/JPAJamesServerTest.java b/server/container/guice/jpa-guice/src/test/java/org/apache/james/JPAJamesServerTest.java index 1977930..00f1507 100644 --- a/server/container/guice/jpa-guice/src/test/java/org/apache/james/JPAJamesServerTest.java +++ b/server/container/guice/jpa-guice/src/test/java/org/apache/james/JPAJamesServerTest.java @@ -31,7 +31,7 @@ public class JPAJamesServerTest extends AbstractJamesServerTest { @Override protected GuiceJamesServer createJamesServer() { return new GuiceJamesServer() - .combineWith(JPAJamesServerMain.jpaServerModule, JPAJamesServerMain.protocols) + .combineWith(JPAJamesServerMain.JPA_SERVER_MODULE, JPAJamesServerMain.PROTOCOLS) .overrideWith(new TestFilesystemModule(temporaryFolder), new TestJPAConfigurationModule()); } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/jpa-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java ---------------------------------------------------------------------- diff --git a/server/container/guice/jpa-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java b/server/container/guice/jpa-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java index 82e728a..9078637 100644 --- a/server/container/guice/jpa-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java +++ b/server/container/guice/jpa-guice/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java @@ -50,7 +50,7 @@ public class JamesCapabilitiesServerTest { Module mockMailboxManager = (binder) -> binder.bind(MailboxManager.class).toInstance(mailboxManager); return new GuiceJamesServer() - .combineWith(JPAJamesServerMain.jpaServerModule) + .combineWith(JPAJamesServerMain.JPA_SERVER_MODULE) .overrideWith( new TestFilesystemModule(temporaryFolder), new TestJPAConfigurationModule(), http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/jpa-smtp/src/main/java/org/apache/james/JPAJamesServerMain.java ---------------------------------------------------------------------- diff --git a/server/container/guice/jpa-smtp/src/main/java/org/apache/james/JPAJamesServerMain.java b/server/container/guice/jpa-smtp/src/main/java/org/apache/james/JPAJamesServerMain.java index a2079c6..0c36736 100644 --- a/server/container/guice/jpa-smtp/src/main/java/org/apache/james/JPAJamesServerMain.java +++ b/server/container/guice/jpa-smtp/src/main/java/org/apache/james/JPAJamesServerMain.java @@ -38,7 +38,7 @@ import com.google.inject.util.Modules; public class JPAJamesServerMain { - public static final Module protocols = Modules.combine( + public static final Module PROTOCOLS = Modules.combine( new ProtocolHandlerModule(), new SMTPServerModule(), new WebAdminServerModule(), @@ -46,7 +46,7 @@ public class JPAJamesServerMain { new NoJwtModule(), new DefaultProcessorsConfigurationProviderModule()); - public static final Module jpaServerModule = Modules.combine( + public static final Module JPA_SERVER_MODULE = Modules.combine( new JPADataModule(), (binder) -> binder.bind(EntityManagerFactory.class).toProvider(OpenJPAPersistence::getEntityManagerFactory), new ActiveMQQueueModule(), @@ -55,7 +55,7 @@ public class JPAJamesServerMain { public static void main(String[] args) throws Exception { GuiceJamesServer server = new GuiceJamesServer() - .combineWith(jpaServerModule, protocols); + .combineWith(JPA_SERVER_MODULE, PROTOCOLS); server.start(); } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/jpa-smtp/src/test/java/org/apache/james/JPAJamesServerTest.java ---------------------------------------------------------------------- diff --git a/server/container/guice/jpa-smtp/src/test/java/org/apache/james/JPAJamesServerTest.java b/server/container/guice/jpa-smtp/src/test/java/org/apache/james/JPAJamesServerTest.java index 7a22c19..01e6b36 100644 --- a/server/container/guice/jpa-smtp/src/test/java/org/apache/james/JPAJamesServerTest.java +++ b/server/container/guice/jpa-smtp/src/test/java/org/apache/james/JPAJamesServerTest.java @@ -57,7 +57,7 @@ public class JPAJamesServerTest { private org.apache.james.GuiceJamesServer createJamesServer() { return new GuiceJamesServer() - .combineWith(JPAJamesServerMain.jpaServerModule, JPAJamesServerMain.protocols) + .combineWith(JPAJamesServerMain.JPA_SERVER_MODULE, JPAJamesServerMain.PROTOCOLS) .overrideWith( new TestFilesystemModule(temporaryFolder), new TestJPAConfigurationModule(), http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/memory-guice/src/main/java/org/apache/james/MemoryJamesServerMain.java ---------------------------------------------------------------------- diff --git a/server/container/guice/memory-guice/src/main/java/org/apache/james/MemoryJamesServerMain.java b/server/container/guice/memory-guice/src/main/java/org/apache/james/MemoryJamesServerMain.java index 38ab031..d1dcf41 100644 --- a/server/container/guice/memory-guice/src/main/java/org/apache/james/MemoryJamesServerMain.java +++ b/server/container/guice/memory-guice/src/main/java/org/apache/james/MemoryJamesServerMain.java @@ -42,13 +42,13 @@ import com.google.inject.util.Modules; public class MemoryJamesServerMain { - public static final Module webadmin = Modules.combine( + public static final Module WEBADMIN = Modules.combine( new WebAdminServerModule(), new DataRoutesModules(), new MailboxRoutesModule(), new SwaggerRoutesModule()); - public static final Module protocols = Modules.combine( + public static final Module PROTOCOLS = Modules.combine( new IMAPServerModule(), new LMTPServerModule(), new ManageSieveServerModule(), @@ -56,25 +56,25 @@ public class MemoryJamesServerMain { new ProtocolHandlerModule(), new SMTPServerModule()); - public static final Module jmap = Modules.combine( + public static final Module JMAP = Modules.combine( new MemoryDataJmapModule(), new JMAPServerModule()); - public static final Module inMemoryServerModule = Modules.combine( + public static final Module IN_MEMORY_SERVER_MODULE = Modules.combine( new MemoryDataModule(), new MemoryMailboxModule(), new MemoryMailQueueModule(), new MailboxModule()); - public static final Module inMemoryServerAggregateModule = Modules.combine( - inMemoryServerModule, - protocols, - jmap, - webadmin); + public static final Module IN_MEMORY_SERVER_AGGREGATE_MODULE = Modules.combine( + IN_MEMORY_SERVER_MODULE, + PROTOCOLS, + JMAP, + WEBADMIN); public static void main(String[] args) throws Exception { new GuiceJamesServer() - .combineWith(inMemoryServerAggregateModule, new JMXServerModule()) + .combineWith(IN_MEMORY_SERVER_AGGREGATE_MODULE, new JMXServerModule()) .start(); } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/container/guice/memory-guice/src/test/java/org/apache/james/MemoryJmapTestRule.java ---------------------------------------------------------------------- diff --git a/server/container/guice/memory-guice/src/test/java/org/apache/james/MemoryJmapTestRule.java b/server/container/guice/memory-guice/src/test/java/org/apache/james/MemoryJmapTestRule.java index 97c1e27..c884e84 100644 --- a/server/container/guice/memory-guice/src/test/java/org/apache/james/MemoryJmapTestRule.java +++ b/server/container/guice/memory-guice/src/test/java/org/apache/james/MemoryJmapTestRule.java @@ -42,7 +42,7 @@ public class MemoryJmapTestRule implements TestRule { public GuiceJamesServer jmapServer(Module... modules) { return new GuiceJamesServer() - .combineWith(MemoryJamesServerMain.inMemoryServerAggregateModule) + .combineWith(MemoryJamesServerMain.IN_MEMORY_SERVER_AGGREGATE_MODULE) .overrideWith(modules) .overrideWith(new TestFilesystemModule(temporaryFolder), new TestJMAPServerModule(LIMIT_TO_3_MESSAGES)) http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/GatewayRemoteDeliveryIntegrationTest.java ---------------------------------------------------------------------- diff --git a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/GatewayRemoteDeliveryIntegrationTest.java b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/GatewayRemoteDeliveryIntegrationTest.java index 7d4b6d1..8c9e63a 100644 --- a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/GatewayRemoteDeliveryIntegrationTest.java +++ b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/GatewayRemoteDeliveryIntegrationTest.java @@ -86,7 +86,7 @@ public class GatewayRemoteDeliveryIntegrationTest { private static final String FROM = "from@" + JAMES_APACHE_ORG; private static final String RECIPIENT = "touser@" + JAMES_ANOTHER_DOMAIN; private static final Module SMTP_ONLY_MODULE = Modules.combine( - MemoryJamesServerMain.inMemoryServerModule, + MemoryJamesServerMain.IN_MEMORY_SERVER_MODULE, new ProtocolHandlerModule(), new SMTPServerModule(), new RawPostDequeueDecoratorModule(), http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/TemporaryJamesServer.java ---------------------------------------------------------------------- diff --git a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/TemporaryJamesServer.java b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/TemporaryJamesServer.java index 6fc4496..0d32c46 100644 --- a/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/TemporaryJamesServer.java +++ b/server/mailet/integration-testing/src/test/java/org/apache/james/mailets/TemporaryJamesServer.java @@ -70,7 +70,7 @@ public class TemporaryJamesServer { return new TemporaryJamesServer( temporaryFolder, mailetContainer, - module.orElse(MemoryJamesServerMain.inMemoryServerAggregateModule), + module.orElse(MemoryJamesServerMain.IN_MEMORY_SERVER_AGGREGATE_MODULE), overrideModules.build()); } } http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/protocols/jmap-integration-testing/cassandra-jmap-integration-testing/src/test/java/org/apache/james/jmap/cassandra/cucumber/CassandraStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/cassandra-jmap-integration-testing/src/test/java/org/apache/james/jmap/cassandra/cucumber/CassandraStepdefs.java b/server/protocols/jmap-integration-testing/cassandra-jmap-integration-testing/src/test/java/org/apache/james/jmap/cassandra/cucumber/CassandraStepdefs.java index 22f60ea..1e86126 100644 --- a/server/protocols/jmap-integration-testing/cassandra-jmap-integration-testing/src/test/java/org/apache/james/jmap/cassandra/cucumber/CassandraStepdefs.java +++ b/server/protocols/jmap-integration-testing/cassandra-jmap-integration-testing/src/test/java/org/apache/james/jmap/cassandra/cucumber/CassandraStepdefs.java @@ -60,7 +60,7 @@ public class CassandraStepdefs { embeddedElasticSearch.before(); mainStepdefs.messageIdFactory = new CassandraMessageId.Factory(); mainStepdefs.jmapServer = new GuiceJamesServer() - .combineWith(CassandraJamesServerMain.cassandraServerModule, CassandraJamesServerMain.protocols) + .combineWith(CassandraJamesServerMain.CASSANDRA_SERVER_MODULE, CassandraJamesServerMain.PROTOCOLS) .overrideWith(new CassandraJmapServerModule(temporaryFolder, embeddedElasticSearch, cassandraServer.getIp(), cassandraServer.getBindingPort())) .overrideWith((binder) -> binder.bind(PersistenceAdapter.class).to(MemoryPersistenceAdapter.class)); mainStepdefs.awaitMethod = () -> embeddedElasticSearch.awaitForElasticSearch(); http://git-wip-us.apache.org/repos/asf/james-project/blob/992a4d07/server/protocols/jmap-integration-testing/memory-jmap-integration-testing/src/test/java/org/apache/james/jmap/memory/cucumber/MemoryStepdefs.java ---------------------------------------------------------------------- diff --git a/server/protocols/jmap-integration-testing/memory-jmap-integration-testing/src/test/java/org/apache/james/jmap/memory/cucumber/MemoryStepdefs.java b/server/protocols/jmap-integration-testing/memory-jmap-integration-testing/src/test/java/org/apache/james/jmap/memory/cucumber/MemoryStepdefs.java index 138b1ed..f4ad385 100644 --- a/server/protocols/jmap-integration-testing/memory-jmap-integration-testing/src/test/java/org/apache/james/jmap/memory/cucumber/MemoryStepdefs.java +++ b/server/protocols/jmap-integration-testing/memory-jmap-integration-testing/src/test/java/org/apache/james/jmap/memory/cucumber/MemoryStepdefs.java @@ -52,7 +52,7 @@ public class MemoryStepdefs { temporaryFolder.create(); mainStepdefs.messageIdFactory = new InMemoryMessageId.Factory(); mainStepdefs.jmapServer = new GuiceJamesServer() - .combineWith(MemoryJamesServerMain.inMemoryServerAggregateModule) + .combineWith(MemoryJamesServerMain.IN_MEMORY_SERVER_AGGREGATE_MODULE) .overrideWith(new MemoryJmapServerModule(temporaryFolder), (binder) -> binder.bind(MessageId.Factory.class).toInstance(mainStepdefs.messageIdFactory)) .overrideWith((binder) -> binder.bind(PersistenceAdapter.class).to(MemoryPersistenceAdapter.class)); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org