[Tynstep-svn] r189 - trunk/step/step-core/src/test/java/com/tyndalehouse/step/core/service

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Sun Nov 21 14:48:32 MST 2010


Author: ChrisBurrell
Date: 2010-11-21 14:48:31 -0700 (Sun, 21 Nov 2010)
New Revision: 189

Modified:
   trunk/step/step-core/src/test/java/com/tyndalehouse/step/core/service/JSwordServiceImplTest.java
Log:
update of the the test

Modified: trunk/step/step-core/src/test/java/com/tyndalehouse/step/core/service/JSwordServiceImplTest.java
===================================================================
--- trunk/step/step-core/src/test/java/com/tyndalehouse/step/core/service/JSwordServiceImplTest.java	2010-11-21 21:46:24 UTC (rev 188)
+++ trunk/step/step-core/src/test/java/com/tyndalehouse/step/core/service/JSwordServiceImplTest.java	2010-11-21 21:48:31 UTC (rev 189)
@@ -37,8 +37,8 @@
      */
     @Test
     public void testInterlinearTransformation() throws Exception {
-        final Book currentBook = Books.installed().getBook("ChiUns");
-        final BookData bookData = new BookData(currentBook, currentBook.getKey("Romans 1-2"));
+        final Book currentBook = Books.installed().getBook("KJV");
+        final BookData bookData = new BookData(currentBook, currentBook.getKey("Romans 1:1-3"));
         final Element osisFragment = bookData.getOsisFragment();
 
         final XMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());
@@ -49,12 +49,12 @@
         final ArrayList<LookupOption> options = new ArrayList<LookupOption>();
         options.add(INTERLINEAR);
 
-        final String osisText = jsi.getOsisText("ChiUns", "Romans 1-2", options, "");
+        final String osisText = jsi.getOsisText("KJV", "Romans 1:1-3", options, "KJV");
         final SAXBuilder sb = new SAXBuilder();
         final Document d = sb.build(new StringReader(osisText));
 
         this.logger.debug("\n {}", xmlOutputter.outputString(d));
-        Assert.assertTrue(osisText.contains("<span>"));
+        Assert.assertTrue(osisText.contains("span"));
 
     }
 
@@ -82,6 +82,6 @@
         final Document d = sb.build(new StringReader(osisText));
 
         this.logger.debug("\n {}", xmlOutputter.outputString(d));
-        Assert.assertTrue(osisText.contains("<span>"));
+        Assert.assertTrue(osisText.contains("span"));
     }
 }




More information about the Tynstep-svn mailing list