diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/onap/pomba/contextaggregator/config/TransportConfigTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/onap/pomba/contextaggregator/config/TransportConfigTest.java b/src/test/java/org/onap/pomba/contextaggregator/config/TransportConfigTest.java index af47ff6..fdb2709 100644 --- a/src/test/java/org/onap/pomba/contextaggregator/config/TransportConfigTest.java +++ b/src/test/java/org/onap/pomba/contextaggregator/config/TransportConfigTest.java @@ -25,11 +25,17 @@ import org.junit.runner.RunWith; import org.onap.pomba.contextaggregator.publisher.EventPublisherFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.test.context.TestPropertySource; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; +import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration; import java.util.Properties; @RunWith(SpringJUnit4ClassRunner.class) +@EnableAutoConfiguration(exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class }) @SpringBootTest +@TestPropertySource(properties = { "transport.consume.host=http://localhost", "transport.consume.port=8080" }) public class TransportConfigTest { TransportConfig transportConfig = new TransportConfig(); |