Skip to content

Commit

Permalink
ContactSupportCapabilityContract - Fix tests in nested class not bein…
Browse files Browse the repository at this point in the history
…g executed

Follow up: #1230
  • Loading branch information
HoussemNasri authored Oct 24, 2024
1 parent c77588e commit 8b403da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.apache.james.utils.DataProbeImpl
import org.hamcrest.Matchers.{equalTo, hasKey}
import org.junit.jupiter.api.{BeforeEach, Test}

object MemoryLinagoraContactSupportCapabilityContract {
object LinagoraContactSupportCapabilityContract {
trait MailAddressConfigured {
@BeforeEach
def setUp(server: GuiceJamesServer): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@

import org.apache.james.JamesServerBuilder;
import org.apache.james.JamesServerExtension;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.extension.RegisterExtension;

import com.linagora.tmail.james.app.MemoryConfiguration;
import com.linagora.tmail.james.app.MemoryServer;
import com.linagora.tmail.james.common.MemoryLinagoraContactSupportCapabilityContract;
import com.linagora.tmail.james.common.LinagoraContactSupportCapabilityContract;
import com.linagora.tmail.james.jmap.JMAPExtensionConfiguration;
import com.linagora.tmail.james.jmap.firebase.FirebaseModuleChooserConfiguration;
import com.linagora.tmail.module.LinagoraTestJMAPServerModule;

public class MemoryLinagoraContactSupportCapabilityTest {
public static class MailAddressConfiguredTest
implements MemoryLinagoraContactSupportCapabilityContract.MailAddressConfigured {
@Nested
class MailAddressConfiguredTest
implements LinagoraContactSupportCapabilityContract.MailAddressConfigured {
@RegisterExtension
static JamesServerExtension
jamesServerExtension = new JamesServerBuilder<MemoryConfiguration>(tmpDir ->
Expand All @@ -30,8 +32,9 @@ public static class MailAddressConfiguredTest
.build();
}

public static class MailAddressNotConfiguredTest
implements MemoryLinagoraContactSupportCapabilityContract.MailAddressNotConfigured {
@Nested
class MailAddressNotConfiguredTest
implements LinagoraContactSupportCapabilityContract.MailAddressNotConfigured {
@RegisterExtension
static JamesServerExtension
jamesServerExtension = new JamesServerBuilder<MemoryConfiguration>(tmpDir ->
Expand Down

0 comments on commit 8b403da

Please sign in to comment.