All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.test.junit5.InfinispanSuite Maven / Gradle / Ivy

There is a newer version: 14.0.31.Final
Show newest version
package org.infinispan.server.test.junit5;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
 * Hack to ensure that {@link InfinispanServerExtension} instances can be shared against test classes executed across a
 * {@link org.junit.platform.suite.api.Suite}. A no-op test is required in the Suite class to ensure that calls to
 * {@link org.junit.jupiter.api.extension.RegisterExtension} are respected. The {@link InfinispanServerExtension} can
 * then register the {@link org.junit.platform.suite.api.SelectClasses} values so that the server resources are only
 * cleaned up on the final call to {@link org.junit.jupiter.api.extension.AfterAllCallback}.
 * 

* All test Suites requiring {@link InfinispanServerExtension} should extend this class. *

* This can be removed when JUnit provides native support for @BeforeSuite and @AfterSuite annotations. */ public abstract class InfinispanSuite { @Disabled("No-op test to ensure InfinispanServerExtension at the suite level is registered") @DisplayName("Suite Initializer") @Test() public void ignore() { // no-op } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy