This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit a3ca4624333a88110b9ed3e1fdc4dc0a508482f0
Author: Benoit TELLIER <[email protected]>
AuthorDate: Tue Sep 30 07:34:02 2025 +0200

    [REMOVAL] Relocate JamesCapabilitiesServerTest into memory-app
---
 server/apps/memory-app/pom.xml                               |  5 +++++
 .../java/org/apache/james/JamesCapabilitiesServerTest.java   | 12 ++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/server/apps/memory-app/pom.xml b/server/apps/memory-app/pom.xml
index a041c887fd..d553a31ea1 100644
--- a/server/apps/memory-app/pom.xml
+++ b/server/apps/memory-app/pom.xml
@@ -222,6 +222,11 @@
             <artifactId>pdfbox</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.testcontainers</groupId>
             <artifactId>testcontainers</artifactId>
diff --git 
a/server/apps/cassandra-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
 
b/server/apps/memory-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
similarity index 94%
rename from 
server/apps/cassandra-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
rename to 
server/apps/memory-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
index a784e72304..84c8d27db7 100644
--- 
a/server/apps/cassandra-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
+++ 
b/server/apps/memory-app/src/test/java/org/apache/james/JamesCapabilitiesServerTest.java
@@ -18,6 +18,7 @@
  ****************************************************************/
 package org.apache.james;
 
+import static 
org.apache.james.data.UsersRepositoryModuleChooser.Implementation.DEFAULT;
 import static org.assertj.core.api.Assertions.assertThat;
 import static org.assertj.core.api.Assertions.assertThatCode;
 import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -36,10 +37,13 @@ class JamesCapabilitiesServerTest {
     private static final MailboxManager mailboxManager = 
mock(MailboxManager.class);
 
     @RegisterExtension
-    static JamesServerExtension testExtension = 
TestingDistributedJamesServerBuilder.withSearchConfiguration(SearchConfiguration.openSearch())
-        .extension(new DockerOpenSearchExtension())
-        .extension(new CassandraExtension())
-        .server(configuration -> 
CassandraJamesServerMain.createServer(configuration)
+    static JamesServerExtension testExtension =  new 
JamesServerBuilder<MemoryJamesConfiguration>(tmpDir ->
+        MemoryJamesConfiguration.builder()
+            .workingDirectory(tmpDir)
+            .configurationFromClasspath()
+            .usersRepository(DEFAULT)
+            .build())
+        .server(configuration -> 
MemoryJamesServerMain.createServer(configuration)
             .overrideWith(new TestJMAPServerModule())
             .overrideWith(binder -> 
binder.bind(MailboxManager.class).toInstance(mailboxManager)))
         .disableAutoStart()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to