Skip to content

Commit

Permalink
better tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Mar 16, 2016
1 parent fbb6e13 commit 8260051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected void before() throws Throwable {
protected void after() {
if (this.context != null) {
this.context.shutdown();
this.context = null;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ public void initsContext() {
@Test
public void manuallyShutdownContextDontBreak() {
this.request.after();
this.request.after();
MatcherAssert.assertThat(this.request.context(), CoreMatchers.nullValue());
}
}

0 comments on commit 8260051

Please sign in to comment.