Skip to content

Commit

Permalink
Add StickyTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
mehyil committed Aug 8, 2017
1 parent 964978e commit 1f998e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/org/cactoos/iterable/StickyListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ public void testGet() {
);
}

@Test
public void testSubList() {
final List<Integer> list = new StickyList<>(1, 2, 0, -1).subList
(0, 2);
MatcherAssert.assertThat(
list.size(),
Matchers.equalTo(3)
);
}

@Test(expected = UnsupportedOperationException.class)
public void testAdd() throws Exception {
new StickyList<>(1, 2).add(1);
Expand Down

0 comments on commit 1f998e1

Please sign in to comment.