You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/02/17 01:46:45 UTC
[james-project] 07/13: JAMES-3500 Remove an uneeded test
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 875c8c1859170c74e7213d4047024c8a3393350f
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Feb 14 16:40:23 2021 +0700
JAMES-3500 Remove an uneeded test
A James server without MessageIdManager will not start,
remove this no longer needed intermediary implementation
step.
---
.../CassandraMessageIdManagerInjectionTest.java | 66 ----------------------
1 file changed, 66 deletions(-)
diff --git a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraMessageIdManagerInjectionTest.java b/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraMessageIdManagerInjectionTest.java
deleted file mode 100644
index 3ea1bd9..0000000
--- a/server/container/guice/cassandra-guice/src/test/java/org/apache/james/CassandraMessageIdManagerInjectionTest.java
+++ /dev/null
@@ -1,66 +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 static org.assertj.core.api.Assertions.assertThatCode;
-
-import javax.inject.Inject;
-
-import org.apache.james.lifecycle.api.Startable;
-import org.apache.james.mailbox.MessageIdManager;
-import org.apache.james.utils.InitializationOperation;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import com.google.inject.multibindings.Multibinder;
-
-class CassandraMessageIdManagerInjectionTest {
- @RegisterExtension
- static JamesServerExtension testExtension = TestingDistributedJamesServerBuilder.withSearchConfiguration(SearchConfiguration.elasticSearch())
- .extension(new DockerElasticSearchExtension())
- .extension(new CassandraExtension())
- .server(configuration -> CassandraJamesServerMain.createServer(configuration)
- .overrideWith(binder -> Multibinder.newSetBinder(binder, InitializationOperation.class)
- .addBinding()
- .to(CallMe.class)))
- .disableAutoStart()
- .build();
-
- @Test
- void messageIdManagerShouldBeInjected(GuiceJamesServer server) {
- assertThatCode(server::start).doesNotThrowAnyException();
- }
-
- public static class CallMe implements InitializationOperation, Startable {
- @Inject
- public CallMe(MessageIdManager messageIdManager) {
- }
-
- @Override
- public void initModule() {
-
- }
-
- @Override
- public Class<? extends Startable> forClass() {
- return CallMe.class;
- }
- }
-}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org