diff --git a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiCreateOrderTest.java b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiCreateOrderTest.java index 78926948..6265540a 100644 --- a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiCreateOrderTest.java +++ b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiCreateOrderTest.java @@ -106,7 +106,7 @@ public class SideShiftApiCreateOrderTest { @Test public void createOrder_wasSuccessfulShouldRespondWithOrder() - throws TimeoutException { + throws TimeoutException, InterruptedException { final double btcAmount = 1.23456789; final String btcAddress = "19y91nJyzXsLEuR7Nj9pc3o5SeHNc8A9RW"; final double xmrAmount = 0.6; @@ -136,7 +136,7 @@ public class SideShiftApiCreateOrderTest { @Test public void createOrder_wasNotSuccessfulShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse().setResponseCode(500)); xmrToApi.createOrder("01234567-89ab-cdef-0123-456789abcdef", "19y91nJyzXsLEuR7Nj9pc3o5SeHNc8A9RW", new ShiftCallback() { @Override @@ -158,7 +158,7 @@ public class SideShiftApiCreateOrderTest { @Test public void createOrder_malformedAddressShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse(). setResponseCode(500). setBody("{\"error\":{\"message\":\"Invalid settleDestination\"}}")); diff --git a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiOrderParameterTest.java b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiOrderParameterTest.java index bfd1533b..5a2689fa 100644 --- a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiOrderParameterTest.java +++ b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiOrderParameterTest.java @@ -80,7 +80,7 @@ public class SideShiftApiOrderParameterTest { @Test public void orderParameter_wasSuccessfulShouldRespondWithParameters() - throws TimeoutException { + throws TimeoutException, InterruptedException { final double rate = 0.015537; final double upperLimit = 20.0; final double lowerLimit = 0.001; @@ -109,7 +109,7 @@ public class SideShiftApiOrderParameterTest { @Test public void orderParameter_wasNotSuccessfulShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse().setResponseCode(500)); xmrToApi.queryOrderParameters(new ShiftCallback() { @Override @@ -131,7 +131,7 @@ public class SideShiftApiOrderParameterTest { @Test public void orderParameter_SettleMethodInvalidShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse(). setResponseCode(500). setBody("{\"error\":{\"message\":\"Settle method not found\"}}")); diff --git a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiQueryOrderStatusTest.java b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiQueryOrderStatusTest.java index 4f913a88..fb15ad9b 100644 --- a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiQueryOrderStatusTest.java +++ b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiQueryOrderStatusTest.java @@ -79,7 +79,7 @@ public class SideShiftApiQueryOrderStatusTest { @Test public void orderStatus_wasSuccessfulShouldRespondWithOrder() - throws TimeoutException { + throws TimeoutException, InterruptedException { final String state = "settled"; final String orderId = "09090909090909090911"; @@ -109,7 +109,7 @@ public class SideShiftApiQueryOrderStatusTest { @Test public void orderStatus_wasNotSuccessfulShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse().setResponseCode(500)); xmrToApi.queryOrderStatus("09090909090909090911", new ShiftCallback() { @Override @@ -131,7 +131,7 @@ public class SideShiftApiQueryOrderStatusTest { @Test public void orderStatus_orderNotFoundShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse(). setResponseCode(500). setBody("{\"error\":{\"message\":\"Order not found\"}}")); diff --git a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiRequestQuoteTest.java b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiRequestQuoteTest.java index ffcde3f0..7c651d3e 100644 --- a/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiRequestQuoteTest.java +++ b/app/src/test/java/com/m2049r/xmrwallet/service/shift/sideshift/SideShiftApiRequestQuoteTest.java @@ -105,7 +105,7 @@ public class SideShiftApiRequestQuoteTest { @Test public void requestQuote_wasSuccessfulShouldRespondWithQuote() - throws TimeoutException { + throws TimeoutException, InterruptedException { final double btcAmount = 1.01; final double rate = 0.00397838; final String uuid = "66fc0749-f320-4361-b0fb-7873576cba67"; @@ -133,7 +133,7 @@ public class SideShiftApiRequestQuoteTest { @Test public void requestQuote_wasNotSuccessfulShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse().setResponseCode(500)); xmrToApi.requestQuote(1.01, new ShiftCallback() { @Override @@ -155,7 +155,7 @@ public class SideShiftApiRequestQuoteTest { @Test public void requestQuote_AmountTooHighShouldCallOnError() - throws TimeoutException { + throws TimeoutException, InterruptedException { mockWebServer.enqueue(new MockResponse(). setResponseCode(500). setBody("{\"error\":{\"message\":\"Amount too high\"}}"));