Refactor DataLoader
This commit is contained in:
parent
a9700891ef
commit
ba75c37366
@ -6,15 +6,14 @@ import org.springframework.test.context.ContextConfiguration;
|
|||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||||
import org.springframework.web.client.RestTemplate;
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = {Application.class})
|
@ContextConfiguration(classes = { Application.class })
|
||||||
public class DataLoader {
|
public class DataLoaderTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void exampleTest() {
|
public void exampleTest() {
|
||||||
RestTemplate restTemplate = new RestTemplate();
|
RestTemplate restTemplate = new RestTemplate();
|
||||||
restTemplate.getForObject("http://localhost:8080/startNotification/10", String.class);
|
restTemplate.getForObject("http://localhost:8080/startNotification/10", String.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user