package textbender.a.b.rhinohideDemo._.core; import org.junit.*; import org.w3c.dom.*; import textbender.a.b.rhinohideDemo._.*; import static org.junit.Assert.*; /** Test of Core Level 1 (unextended). */ public final class RhiText_1 { @Test public void splitText() { final String stringA = "01234"; final String stringB = "56789"; final Text text = Core_1_Test.window().getDocument().createTextNode( stringA + stringB ); final Text textB = text.splitText( 5 ); assertEquals( /*expected*/stringA, /*actual*/text.getData() ); assertEquals( /*expected*/stringB, /*actual*/textB.getData() ); } }