Skip to content

Commit

Permalink
add test for getDelegate()
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Apr 11, 2014
1 parent f537765 commit 4a529a0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,11 @@ public void testSetDefaultStyle() {
Assert.assertEquals(FontManager.INSTANCE.getDefault(), documentImpl.currentStyle.styleRange.font);
}

@Test
public void testGetDelegate() {
Assert.assertNotEquals(testDocument, documentImpl.getDelegate());
documentImpl.delegateDocument = testDocument;
Assert.assertEquals(testDocument, documentImpl.getDelegate());
}

}

0 comments on commit 4a529a0

Please sign in to comment.