[jsword-svn] jsword/java/jswordtest/org/crosswire/jsword/book s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Tue Oct 5 15:03:11 MST 2004
Update of /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/book
In directory www.crosswire.org:/tmp/cvs-serv9907/java/jswordtest/org/crosswire/jsword/book
Modified Files:
BooksTest.java
Log Message:
Improvments on reading SwordBookMetaData
Index: BooksTest.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jswordtest/org/crosswire/jsword/book/BooksTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** BooksTest.java 8 Aug 2004 11:40:12 -0000 1.8
--- BooksTest.java 5 Oct 2004 22:03:09 -0000 1.9
***************
*** 1,5 ****
package org.crosswire.jsword.book;
- import java.util.Date;
import java.util.Iterator;
import java.util.List;
--- 1,4 ----
***************
*** 100,113 ****
BookMetaData bmd = bmds[i];
- assertTrue(bmd.getEdition() != null);
- assertTrue(!bmd.getEdition().endsWith("Edition")); //$NON-NLS-1$
-
- Date pub = bmd.getFirstPublished();
- if (pub != null)
- {
- // the date must be in the past
- assertTrue(pub.before(new Date()));
- }
-
assertTrue(bmd.getFullName() != null);
assertTrue(bmd.getFullName().length() > 0);
--- 99,102 ----
***************
*** 118,122 ****
assertTrue(bmd.getFullName().length() > bmd.getName().length());
assertTrue(bmd.getName().length() > bmd.getInitials().length());
- assertTrue(bmd.getOpenness() != null);
}
}
--- 107,110 ----
More information about the jsword-svn
mailing list