Commit 4f2f41d5 authored by Jean-Baptiste Nizet's avatar Jean-Baptiste Nizet
Browse files

fix: use test properties in application test to avoid touching/creating the...

fix: use test properties in application test to avoid touching/creating the production elastic search
parent 7e589fd1
......@@ -3,6 +3,7 @@ package fr.inra.urgi.rare;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringExtension;
/**
......@@ -11,6 +12,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
*/
@ExtendWith(SpringExtension.class)
@SpringBootTest
@TestPropertySource("/test.properties")
public class ApplicationTest {
@Test
public void shouldLoadContext() {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment