@Test(expected = TaskExecutionException.class) public void testFailingEnsureIsValid() throws TaskExecutionException { new SplitPages(new ArrayList<Integer>()).ensureIsValid(); }
@Override public void ensureIsValid() throws TaskExecutionException { if (closingPages.isEmpty()) { throw new TaskExecutionException("Unable to split, no page number given."); } }
SplitPages implements NextOutputStrategy { @Override public void ensureIsValid() throws TaskExecutionException { if (closingPages.isEmpty()) { throw new TaskExecutionException("Unable to split, no page number given."); } } }
SplitPages implements NextOutputStrategy { @Override public void ensureIsValid() throws TaskExecutionException { if (closingPages.isEmpty()) { throw new TaskExecutionException("Unable to split, no page number given."); } } SplitPages(Collection<Integer> pages);  SplitPages(Integer... pages); }
SplitPages implements NextOutputStrategy { @Override public void ensureIsValid() throws TaskExecutionException { if (closingPages.isEmpty()) { throw new TaskExecutionException("Unable to split, no page number given."); } } SplitPages(Collection<Integer> pages);  SplitPages(Integer... pages); @Override void ensureIsValid(); @Override boolean isOpening(Integer page); @Override boolean isClosing(Integer page); }
SplitPages implements NextOutputStrategy { @Override public void ensureIsValid() throws TaskExecutionException { if (closingPages.isEmpty()) { throw new TaskExecutionException("Unable to split, no page number given."); } } SplitPages(Collection<Integer> pages);  SplitPages(Integer... pages); @Override void ensureIsValid(); @Override boolean isOpening(Integer page); @Override boolean isClosing(Integer page);  }