Skip to content

Commit

Permalink
Restructure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hammerl committed Sep 4, 2018
1 parent d72d443 commit 7881d05
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ public class FilterRegistryTest {
public void registerReturnsTrueIfAcknowledgementIsReadFromInputStream() throws IOException {
FilterRegistry registry = new FilterRegistry(inputStream(ACKNOWLEDGEMENT), anyOutputStream());

assertTrue(registry.register(FILTERS));
boolean successful = registry.register(FILTERS);

assertTrue(successful);
}

@Test
public void registerReturnsFalseIfNoAcknowledgementIsReadFromInputStream() throws IOException {
FilterRegistry registry = new FilterRegistry(inputStream(NO_ACKNOWLEDGEMENT), anyOutputStream());

assertFalse(registry.register(FILTERS));
boolean successful = registry.register(FILTERS);

assertFalse(successful);
}

@Test
Expand Down

0 comments on commit 7881d05

Please sign in to comment.