updating with test case (#947)
* Update pom.xml * Add files via upload * Update Application.java * Create DataLoader.java * Create DataLoader.java * Delete DataLoader.java
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
4018d45a2c
commit
99e86c5f19
@@ -0,0 +1,20 @@
|
||||
package com.baeldung;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = {Application.class})
|
||||
public class DataLoader {
|
||||
|
||||
@Test
|
||||
public void exampleTest() {
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
restTemplate.getForObject("http://localhost:8080/startNotification/10", String.class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user