package de.thpeetz.kontor;

import org.junit.Ignore;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.concurrent.TimeUnit;

import org.apache.camel.test.spring.junit5.CamelSpringBootTest;
import org.apache.camel.CamelContext;
import org.apache.camel.builder.NotifyBuilder;

import static org.junit.jupiter.api.Assertions.assertTrue;


@CamelSpringBootTest
@SpringBootTest(classes = Application.class)
class ApplicationTests {
    @Autowired
    private CamelContext camelContext;

    @Test
    @Ignore
    public void shouldProduceMessages() throws Exception {
        NotifyBuilder notify = new NotifyBuilder(camelContext).whenDone(1).create();
        assertTrue(notify.matches(10, TimeUnit.SECONDS));
    }
    @Test
    void contextLoads() {
        
    }
}
