blob: be37b7cbcf118c086b2138f9b25ff9eeb8cc77b7 [file] [log] [blame]
Michael Hanla36fc332015-10-27 23:11:42 +01001import de.ids_mannheim.korap.config.BeanConfiguration;
2import de.ids_mannheim.korap.resource.rewrite.IdWriter;
3import de.ids_mannheim.korap.resource.rewrite.RewriteHandler;
4import org.junit.AfterClass;
5import org.junit.BeforeClass;
6import org.junit.Test;
7
8/**
9 * @author hanl
10 * @date 21/10/2015
11 */
12public class IdRewriteTest {
13
14 @BeforeClass
15 public static void setup() {
16 BeanConfiguration.loadClasspathContext();
17 }
18
19 @AfterClass
20 public static void drop() {
21 BeanConfiguration.closeApplication();
22 }
23
24 @Test
25 public void insertTokenId() {
26 RewriteHandler handler = new RewriteHandler(
27 BeanConfiguration.getBeans().getConfiguration());
28 assert handler.add(IdWriter.class);
29
30
31 }
32
33}