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 8f6652e15fa38a79548e1edac31a2969779f68da
Author: Benoit Tellier <[email protected]>
AuthorDate: Fri Mar 15 11:45:36 2019 +0700

    JAMES-2687 Inline InMemoryMessageIdManagerTestSystem
---
 .../InMemoryMessageIdManagerStorageTest.java       | 11 ++++++-
 .../InMemoryMessageIdManagerTestSystem.java        | 38 ----------------------
 2 files changed, 10 insertions(+), 39 deletions(-)

diff --git 
a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerStorageTest.java
 
b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerStorageTest.java
index c5d4846..c1bed67 100644
--- 
a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerStorageTest.java
+++ 
b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerStorageTest.java
@@ -18,8 +18,10 @@
  ****************************************************************/
 package org.apache.james.mailbox.inmemory;
 
+import org.apache.james.mailbox.inmemory.manager.InMemoryIntegrationResources;
 import org.apache.james.mailbox.store.AbstractMessageIdManagerStorageTest;
 import org.apache.james.mailbox.store.MessageIdManagerTestSystem;
+import org.apache.james.mailbox.store.StoreMailboxManager;
 import org.junit.Before;
 
 public class InMemoryMessageIdManagerStorageTest extends 
AbstractMessageIdManagerStorageTest {
@@ -32,7 +34,14 @@ public class InMemoryMessageIdManagerStorageTest extends 
AbstractMessageIdManage
     
     @Override
     protected MessageIdManagerTestSystem createTestingData() {
-        return InMemoryMessageIdManagerTestSystem.create();
+        InMemoryIntegrationResources resources = new 
InMemoryIntegrationResources.Factory().create();
+
+        StoreMailboxManager mailboxManager = resources.getMailboxManager();
+        return new MessageIdManagerTestSystem(
+            resources.getMessageIdManager(),
+            resources.getMessageIdFactory(),
+            resources.getMailboxManager().getMapperFactory(),
+            mailboxManager);
     }
 
 }
diff --git 
a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerTestSystem.java
 
b/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerTestSystem.java
deleted file mode 100644
index faecd52..0000000
--- 
a/mailbox/memory/src/test/java/org/apache/james/mailbox/inmemory/InMemoryMessageIdManagerTestSystem.java
+++ /dev/null
@@ -1,38 +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.mailbox.inmemory;
-
-import org.apache.james.mailbox.inmemory.manager.InMemoryIntegrationResources;
-import org.apache.james.mailbox.store.MessageIdManagerTestSystem;
-import org.apache.james.mailbox.store.StoreMailboxManager;
-
-public class InMemoryMessageIdManagerTestSystem {
-
-    public static MessageIdManagerTestSystem create() {
-        InMemoryIntegrationResources resources = new 
InMemoryIntegrationResources.Factory().create();
-
-        StoreMailboxManager mailboxManager = resources.getMailboxManager();
-        return new MessageIdManagerTestSystem(
-            resources.getMessageIdManager(),
-            resources.getMessageIdFactory(),
-            resources.getMailboxManager().getMapperFactory(),
-            mailboxManager);
-    }
-
-}


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

Reply via email to