Revision 48399
Added by Claudio Atzori almost 7 years ago
ProjectsControllerTest.java | ||
---|---|---|
15 | 15 |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
16 | 16 |
|
17 | 17 |
import static org.junit.Assert.assertEquals; |
18 |
|
|
19 |
@SpringBootTest |
|
18 | 20 |
@RunWith(SpringJUnit4ClassRunner.class) |
19 |
//@ContextConfiguration(classes={TestConfiguration.class}) |
|
20 |
@SpringBootTest |
|
21 | 21 |
public class ProjectsControllerTest { |
22 | 22 |
|
23 | 23 |
private static final Log log = LogFactory.getLog(ProjectsControllerTest.class); |
... | ... | |
33 | 33 |
controller = new ProjectsController(); |
34 | 34 |
Resource template = new ClassPathResource(queryTemplate); |
35 | 35 |
|
36 |
controller.setProjectsFundingQueryTemplate(template); |
|
36 |
//TODO reimplement bean injection for testing |
|
37 |
//controller.setProjectsFundingQueryTemplate(template); |
|
37 | 38 |
params = new ProjectQueryParams(); |
38 | 39 |
} |
39 | 40 |
|
Also available in: Unified diff
refactor of the application properties