Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
StringTemplateFactoryTest.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.springutils.stringtemplate; |
2 | 2 |
|
3 |
|
|
4 |
import static org.junit.Assert.*; |
|
5 |
|
|
6 |
import javax.annotation.Resource; |
|
7 |
|
|
8 | 3 |
import org.antlr.stringtemplate.StringTemplate; |
9 | 4 |
import org.junit.Test; |
10 | 5 |
import org.junit.runner.RunWith; |
6 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 | 7 |
import org.springframework.test.context.ContextConfiguration; |
12 | 8 |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
13 | 9 |
|
10 |
import static org.junit.Assert.assertEquals; |
|
11 |
|
|
14 | 12 |
/** |
15 | 13 |
* Test a string template factory bean. |
16 | 14 |
* @author marko |
... | ... | |
20 | 18 |
@ContextConfiguration |
21 | 19 |
public class StringTemplateFactoryTest { |
22 | 20 |
|
23 |
@Resource
|
|
21 |
@Autowired
|
|
24 | 22 |
private StringTemplate template; |
25 | 23 |
|
26 | 24 |
@Test |
Also available in: Unified diff
Chnaged Resource to Autowired