Skip to content

Commit 17fd89f

Browse files
remove kafka from tests
1 parent c115815 commit 17fd89f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/softeno/template/SoftenoMvcJpaApp.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ class WebClientConfig {
510510

511511
}
512512

513+
@Profile(value = ["!integration"])
513514
@Configuration
514515
@EnableKafka
515516
class KafkaConfig {
@@ -546,6 +547,7 @@ class KafkaConfig {
546547
fun kafkaTemplate(producerFactory: ProducerFactory<String, KafkaMessage>) = KafkaTemplate(producerFactory)
547548
}
548549

550+
@Profile(value = ["!integration"])
549551
@Controller
550552
class KafkaListenerController {
551553
private val log = LogFactory.getLog(javaClass)
@@ -561,6 +563,7 @@ class KafkaListenerController {
561563
@JsonIgnoreProperties(ignoreUnknown = true)
562564
data class KafkaMessage(val content: String)
563565

566+
@Profile(value = ["!integration"])
564567
@Service
565568
class KafkaService(
566569
private val kafkaTemplate: KafkaTemplate<String, KafkaMessage>,
@@ -576,6 +579,7 @@ class KafkaService(
576579

577580
data class AppEvent(val source: String) : ApplicationEvent(source)
578581

582+
@Profile(value = ["!integration"])
579583
@Component
580584
class SampleApplicationEventPublisher(private val kafkaService: KafkaService) : ApplicationListener<AppEvent> {
581585
private val log = LogFactory.getLog(javaClass)

0 commit comments

Comments
 (0)