package com.yeejoin.amos;

import com.yeejoin.amos.message.kafka.KafkaProducerService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class AmosBootUtilsMessageApplicationTests {

    @Autowired
    private KafkaProducerService kafkaProducerService;

    @Test
    void contextLoads() {
        String msg = "hello";
        kafkaProducerService.sendMessageAsync("akka.iot.created",msg);
    }

}
