JMS tests are conditional on JRE
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
package com.example
|
||||
|
||||
import org.junit.jupiter.api.condition.EnabledForJreRange
|
||||
import org.junit.jupiter.api.condition.JRE
|
||||
|
||||
import javax.inject.Inject
|
||||
|
||||
import com.jayway.jsonpath.DocumentContext
|
||||
@@ -41,6 +44,7 @@ import org.springframework.jms.core.MessagePostProcessor
|
||||
// Context configuration would end up in base class
|
||||
@AutoConfigureMessageVerifier
|
||||
@SpringBootTest(classes = JmsMessagingApplication)
|
||||
@EnabledForJreRange(max = JRE.JAVA_22)
|
||||
class JmsMessagingApplicationSpec {
|
||||
|
||||
// ALL CASES
|
||||
|
||||
@@ -25,6 +25,8 @@ import org.assertj.core.api.BDDAssertions
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.condition.DisabledOnOs
|
||||
import org.junit.jupiter.api.condition.EnabledForJreRange
|
||||
import org.junit.jupiter.api.condition.JRE
|
||||
import org.junit.jupiter.api.condition.OS
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
@@ -44,6 +46,7 @@ import org.springframework.jms.core.MessagePostProcessor
|
||||
@SpringBootTest(classes = Config, properties = ["debug=true"])
|
||||
@AutoConfigureStubRunner
|
||||
@DisabledOnOs(OS.WINDOWS)
|
||||
@EnabledForJreRange(max = JRE.JAVA_22)
|
||||
class JmsStubRunnerSpec {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user