Skip to content

Commit 6e53f07

Browse files
authoredSep 24, 2019
REPL-150 Made sure to clear interruptions during test so they do not bleed into the next tested class (#254)
1 parent 7d330d3 commit 6e53f07

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎adapters/ion-adapter/src/test/java/com/connexta/replication/adapters/ion/IonNodeAdapterTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import java.io.InterruptedIOException;
3636
import java.net.URI;
3737
import java.net.URL;
38+
import org.codice.junit.ClearInterruptions;
39+
import org.codice.junit.rules.MethodRuleAnnotationProcessor;
3840
import org.hamcrest.Matchers;
3941
import org.junit.Before;
4042
import org.junit.Rule;
@@ -52,8 +54,8 @@
5254
import org.springframework.web.client.RestTemplate;
5355

5456
public class IonNodeAdapterTest {
55-
5657
@Rule public ExpectedException thrown = ExpectedException.none();
58+
@Rule public final MethodRuleAnnotationProcessor processor = new MethodRuleAnnotationProcessor();
5759

5860
RestTemplate restTemplate;
5961

@@ -148,6 +150,7 @@ public void createResourceFailed401() {
148150
}
149151

150152
@Test
153+
@ClearInterruptions
151154
public void createResourceInterrupted() {
152155
thrown.expect(AdapterInterruptedException.class);
153156

0 commit comments

Comments
 (0)
Please sign in to comment.