mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-17 03:51:27 +01:00
test: Don't use Apache lang3 NotImplementedException in mock
No need to rely on external library exceptions in a mock for tests
This commit is contained in:
parent
054f197cf3
commit
41dbafea69
@ -1,6 +1,5 @@
|
||||
package com.craftaro.core.http;
|
||||
|
||||
import org.apache.commons.lang.NotImplementedException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.LinkedList;
|
||||
@ -24,6 +23,6 @@ public class MockHttpClient implements HttpClient {
|
||||
|
||||
@Override
|
||||
public @NotNull HttpResponse request(String method, String url, Map<String, String> headers, byte[] body) {
|
||||
throw new NotImplementedException();
|
||||
throw new UnsupportedOperationException("Not implemented");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user