package org.crosswire.jsword.book.filter.thml; import java.util.List; import junit.framework.TestCase; import org.crosswire.jsword.book.Book; import org.crosswire.jsword.book.Books; import org.jdom.Content; import org.jdom.Element; import org.jdom.output.XMLOutputter; public class ATagTest extends TestCase { private ATag atag = new ATag(); public void testReference() { try { THMLFilter thmlFilter = new THMLFilter(); Book dummyBook = Books.installed().getBook("KJV"); List out = thmlFilter.toOSIS(dummyBook, dummyBook.getKey("Gen.1.1"), "1909"); assertEquals("1909", new XMLOutputter().outputString((Element)out.get(0))); } catch (Exception e) { e.printStackTrace(); } } }