Fixing a problem in the mock where failed expectations did not throw.

This commit is contained in:
Samuel Carlsson 2014-07-25 18:41:21 +02:00
parent 5b0e0025b8
commit 77814e09d4

View File

@ -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() {