Skip to content

Commit

Permalink
add tests for setLength(), getLength() and getStart()
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Apr 18, 2014
1 parent c33b5e2 commit a1880d0
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,23 @@ public void testSetBackgroundDefault() {
Assert.assertEquals(ColorConstants.DEFAULT_BACKGROUND, testStyleRange.background);
}

@Test
public void testSetLength() {
testStyleRange.length = 0;
testStyleImpl.setLength(999);
Assert.assertEquals(999, testStyleRange.length);
}

@Test
public void testGetLength() {
testStyleRange.length = 999;
Assert.assertEquals(999, testStyleImpl.getLength());
}

@Test
public void testGetStart() {
testStyleRange.start = 999;
Assert.assertEquals(999, testStyleImpl.getStart());
}

}

0 comments on commit a1880d0

Please sign in to comment.