You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by hq...@apache.org on 2025/09/19 09:34:17 UTC

(james-project) 01/15: [BUILD] [james-server-distributed-app] Compact tests for scanning search

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

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

commit ad2e4edadcdb39d5db417e16fe96718c110c252e
Author: Quan Tran <hq...@linagora.com>
AuthorDate: Wed Sep 17 11:38:15 2025 +0700

    [BUILD] [james-server-distributed-app] Compact tests for scanning search
    
    Distributed app + scanning search can start is a good enough test.
---
 .../james/WithScanningSearchMutableTest.java       | 29 ----------------------
 ...utableTest.java => WithScanningSearchTest.java} | 11 ++++++--
 2 files changed, 9 insertions(+), 31 deletions(-)

diff --git a/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchMutableTest.java b/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchMutableTest.java
deleted file mode 100644
index 73260c024c..0000000000
--- a/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchMutableTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-
-package org.apache.james;
-
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-class WithScanningSearchMutableTest implements MailsShouldBeWellReceivedConcreteContract {
-    @RegisterExtension
-    JamesServerExtension jamesServerExtension = WithScanningSearchImmutableTest.baseExtension()
-        .lifeCycle(JamesServerExtension.Lifecycle.PER_TEST)
-        .build();
-}
\ No newline at end of file
diff --git a/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchImmutableTest.java b/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchTest.java
similarity index 90%
rename from server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchImmutableTest.java
rename to server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchTest.java
index 9b5b055650..6b8e2c5f75 100644
--- a/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchImmutableTest.java
+++ b/server/apps/distributed-app/src/test/java/org/apache/james/WithScanningSearchTest.java
@@ -19,14 +19,16 @@
 
 package org.apache.james;
 
-import org.apache.james.jmap.JmapJamesServerContract;
+import static org.assertj.core.api.Assertions.assertThat;
+
 import org.apache.james.modules.AwsS3BlobStoreExtension;
 import org.apache.james.modules.RabbitMQExtension;
 import org.apache.james.modules.TestJMAPServerModule;
 import org.apache.james.modules.blobstore.BlobStoreConfiguration;
+import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.RegisterExtension;
 
-class WithScanningSearchImmutableTest implements JmapJamesServerContract, JamesServerConcreteContract {
+class WithScanningSearchTest {
     static JamesServerBuilder<CassandraRabbitMQJamesConfiguration> baseExtension() {
         return new JamesServerBuilder<CassandraRabbitMQJamesConfiguration>(tmpDir ->
             CassandraRabbitMQJamesConfiguration.builder()
@@ -50,4 +52,9 @@ class WithScanningSearchImmutableTest implements JmapJamesServerContract, JamesS
     static JamesServerExtension jamesServerExtension = baseExtension()
         .lifeCycle(JamesServerExtension.Lifecycle.PER_CLASS)
         .build();
+
+    @Test
+    void shouldStartWithScanningSearch(GuiceJamesServer server) {
+        assertThat(server.isStarted()).isTrue();
+    }
 }
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org