diff --git a/test/se/vidstige/jadb/test/fakes/FakeAdbServer.java b/test/se/vidstige/jadb/test/fakes/FakeAdbServer.java index 5c0969a..b7b0857 100644 --- a/test/se/vidstige/jadb/test/fakes/FakeAdbServer.java +++ b/test/se/vidstige/jadb/test/fakes/FakeAdbServer.java @@ -108,7 +108,7 @@ public class FakeAdbServer implements AdbResponder { return; } } - new JadbException("Unexpected push to device " + serial + " at " + path); + throw new JadbException("Unexpected push to device " + serial + " at " + path); } @Override @@ -122,7 +122,7 @@ public class FakeAdbServer implements AdbResponder { return; } } - new JadbException("Unexpected push to device " + serial + " at " + path); + throw new JadbException("Unexpected push to device " + serial + " at " + path); } public void verifyExpectations() {