public class DefaultStyledDocument_ElementBuffer_InsertMiscTest extends TestCase implements DocumentListener(Code)
Contains the test case that failed when inserting into the document using
insertString method.
This is to test that ElementSpecs when applied will generate
the required structure; and that insertUpdate() generates the
expected set of ElementSpecs.
testInsertThreePars() Tests that ElementSpecs for inserting non-attributed string
"first\nsecond\nthird" into an empty document will
lead to the expected document structure.
public void
testInsertUpdateThreePars() Tests that DefaultStyledDocument.insertUpdate generates the expected
set of ElementSpecs for inserting non-attributed string
"first\nsecond\nthird" into an empty document and that
the document has the expected structure after the insert.
Tests that ElementSpecs for inserting non-attributed string
"first\nsecond\nthird" into an empty document will
lead to the expected document structure.
testInsertUpdateThreePars
public void testInsertUpdateThreePars() throws Exception(Code)
Tests that DefaultStyledDocument.insertUpdate generates the expected
set of ElementSpecs for inserting non-attributed string
"first\nsecond\nthird" into an empty document and that
the document has the expected structure after the insert.