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

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

commit be90c814ebbc49b1ca01928daf49c0bf08c46f4d
Author: Benoit TELLIER <btell...@linagora.com>
AuthorDate: Wed Oct 9 09:23:37 2024 +0200

    JAMES-2182 NamespaceProcessorTest: remove the empty test class
---
 .../imap/processor/NamespaceProcessorTest.java     | 96 ----------------------
 1 file changed, 96 deletions(-)

diff --git 
a/protocols/imap/src/test/java/org/apache/james/imap/processor/NamespaceProcessorTest.java
 
b/protocols/imap/src/test/java/org/apache/james/imap/processor/NamespaceProcessorTest.java
deleted file mode 100644
index 27551c665c..0000000000
--- 
a/protocols/imap/src/test/java/org/apache/james/imap/processor/NamespaceProcessorTest.java
+++ /dev/null
@@ -1,96 +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.imap.processor;
-
-import static org.apache.james.imap.ImapFixture.TAG;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.spy;
-import static org.mockito.Mockito.times;
-import static org.mockito.Mockito.verify;
-import static org.mockito.Mockito.verifyNoMoreInteractions;
-import static org.mockito.Mockito.when;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.List;
-
-import org.apache.james.imap.api.ImapCommand;
-import org.apache.james.imap.api.ImapSessionState;
-import org.apache.james.imap.api.Tag;
-import org.apache.james.imap.api.display.HumanReadableText;
-import org.apache.james.imap.api.message.response.StatusResponse;
-import org.apache.james.imap.api.message.response.StatusResponseFactory;
-import org.apache.james.imap.api.process.ImapProcessor.Responder;
-import org.apache.james.imap.api.process.ImapSession;
-import org.apache.james.imap.encode.FakeImapSession;
-import org.apache.james.imap.message.request.NamespaceRequest;
-import org.apache.james.imap.message.response.NamespaceResponse;
-import org.apache.james.mailbox.MailboxManager;
-import org.apache.james.mailbox.MailboxSession;
-import org.apache.james.mailbox.model.MailboxConstants;
-import org.apache.james.metrics.tests.RecordingMetricFactory;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.mockito.stubbing.Answer;
-
-import reactor.core.publisher.Mono;
-
-class NamespaceProcessorTest {
-    private static final String SHARED_PREFIX = "SharedPrefix";
-    private static final String USERS_PREFIX = "UsersPrefix";
-    private static final String PERSONAL_PREFIX = "PersonalPrefix";
-    
-    NamespaceProcessor subject;
-    StatusResponseFactory statusResponseStub;
-    ImapSession imapSession;
-    MailboxSession mailboxSession;
-    NamespaceRequest namespaceRequest;
-    Collection<String> sharedSpaces;
-    MailboxManager mailboxManagerStub;
-
-    @BeforeEach
-    void setUp() {
-        sharedSpaces = new ArrayList<>();
-        statusResponseStub = mock(StatusResponseFactory.class);
-        mailboxManagerStub = mock(MailboxManager.class);
-        when(mailboxManagerStub.manageProcessing(any(), 
any())).thenAnswer((Answer<Mono>) invocation -> {
-            Object[] args = invocation.getArguments();
-            return (Mono) args[0];
-        });
-        subject = new NamespaceProcessor(mailboxManagerStub, 
statusResponseStub, new RecordingMetricFactory());
-        imapSession = spy(new FakeImapSession());
-        mailboxSession = mock(MailboxSession.class);
-     
-        namespaceRequest = new NamespaceRequest(TAG);
-        imapSession.setMailboxSession(mailboxSession);
-    }
-
-    private NamespaceResponse buildResponse(List<NamespaceResponse.Namespace> 
sharedSpaces) {
-       
-        final List<NamespaceResponse.Namespace> personalSpaces = new 
ArrayList<>();
-        personalSpaces.add(new NamespaceResponse.Namespace(PERSONAL_PREFIX, 
MailboxConstants.DEFAULT_DELIMITER));
-        final List<NamespaceResponse.Namespace> otherUsersSpaces = new 
ArrayList<>();
-        otherUsersSpaces.add(new NamespaceResponse.Namespace(USERS_PREFIX, 
MailboxConstants.DEFAULT_DELIMITER));
-
-        return new NamespaceResponse(personalSpaces, otherUsersSpaces, 
sharedSpaces);
-    }
-}
-


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

Reply via email to