1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00

git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@30 6a642e6f-84f6-412e-ac94-c4a38d5a04b0

This commit is contained in:
MarinaSokol 2007-10-14 15:15:27 +00:00
parent 4c5abdb32f
commit 0053227f43

View file

@ -0,0 +1,16 @@
package org.test.zlibrary.model;
import junit.framework.TestCase;
import org.zlibrary.model.entry.ZLTextEntry;
import org.zlibrary.model.impl.ZLModelFactory;
public class TestTextEntry extends TestCase {
private ZLModelFactory factory = new ZLModelFactory();
public void test() {
String str = "marina";
ZLTextEntry entry = factory.createTextEntry(str);
assertEquals(entry.getData(), str);
assertEquals(entry.getDataLength(), str.length());
}
}