diff --git a/src/test/java/com/solace/spring/cloud/stream/binder/springBootTests/oauth2/MultiBinderOAuth2IT.java b/src/test/java/com/solace/spring/cloud/stream/binder/springBootTests/oauth2/MultiBinderOAuth2IT.java index d3b86d50..34e4dc66 100644 --- a/src/test/java/com/solace/spring/cloud/stream/binder/springBootTests/oauth2/MultiBinderOAuth2IT.java +++ b/src/test/java/com/solace/spring/cloud/stream/binder/springBootTests/oauth2/MultiBinderOAuth2IT.java @@ -4,6 +4,7 @@ import com.solace.it.util.semp.config.BrokerConfiguratorBuilder.BrokerConfigurator; import com.solace.it.util.semp.monitor.BrokerMonitorBuilder; import com.solace.it.util.semp.monitor.BrokerMonitorBuilder.BrokerMonitor; +import com.solace.spring.cloud.stream.binder.config.JCSMPSessionConfiguration; import com.solace.test.integration.semp.v2.SempV2Api; import com.solace.test.integration.semp.v2.action.ApiException; import com.solace.test.integration.semp.v2.action.model.ActionMsgVpnClientDisconnect; @@ -13,9 +14,11 @@ import org.assertj.core.util.Files; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.parallel.Isolated; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; @@ -39,8 +42,10 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +@Isolated @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) @AutoConfigureMockMvc +@EnableAutoConfiguration(exclude = JCSMPSessionConfiguration.class) @ActiveProfiles("multibinderOAuth2") @DirtiesContext //Ensures all listeners are stopped class MultiBinderOAuth2IT implements