Project

General

Profile

1
package eu.dnetlib.springutils.stringtemplate;
2

    
3
import org.antlr.stringtemplate.StringTemplate;
4
import org.junit.Test;
5
import org.junit.runner.RunWith;
6
import org.springframework.beans.factory.annotation.Autowired;
7
import org.springframework.test.context.ContextConfiguration;
8
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
9

    
10
import static org.junit.Assert.assertEquals;
11

    
12
/**
13
 * Test a string template factory bean.
14
 * @author marko
15
 *
16
 */
17
@RunWith(SpringJUnit4ClassRunner.class)
18
@ContextConfiguration
19
public class StringTemplateFactoryTest {
20

    
21
	@Autowired
22
	private StringTemplate template;
23

    
24
	@Test
25
	public void testStringTemplate() {
26
		assertEquals("check template", "test\n", template.toString());
27
	}
28

    
29
}
(2-2/2)