Michael Hanl | a36fc33 | 2015-10-27 23:11:42 +0100 | [diff] [blame^] | 1 | import de.ids_mannheim.korap.config.BeanConfiguration; |
| 2 | import de.ids_mannheim.korap.resource.rewrite.IdWriter; |
| 3 | import de.ids_mannheim.korap.resource.rewrite.RewriteHandler; |
| 4 | import org.junit.AfterClass; |
| 5 | import org.junit.BeforeClass; |
| 6 | import org.junit.Test; |
| 7 | |
| 8 | /** |
| 9 | * @author hanl |
| 10 | * @date 21/10/2015 |
| 11 | */ |
| 12 | public 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 | } |