Skip to content

Commit

Permalink
Add dirties context to all CoreTestApplication tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemikor committed Jul 10, 2023
1 parent 2c9cd0b commit ee90674
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.ResultActions;

@SpringBootTest(classes = CoreTestApplication.class)
@AutoConfigureMockMvc
@DirtiesContext
class CamelHealthCheckRepositoryOverrideTest {

@Autowired private MockMvc mvcBean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.read.ListAppender;
import de.ikor.sip.foundation.core.CoreTestApplication;
import java.util.*;
import org.apache.camel.*;
import java.util.List;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.NamedNode;
import org.apache.camel.NamedRoute;
import org.apache.camel.builder.ExchangeBuilder;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.annotation.DirtiesContext;

@SpringBootTest(
classes = CoreTestApplication.class,
properties = {"sip.core.tracing.enabled=true", "sip.core.tracing.log=true"})
@DirtiesContext
class CustomTracerTest {

private static final String EXCHANGE_ID = "exchangeId";
Expand Down

0 comments on commit ee90674

Please sign in to comment.