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:
Christian Koop 2024-05-01 23:57:50 +02:00
parent 054f197cf3
commit 41dbafea69
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -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");
}
}