Skip to content

Commit

Permalink
test: Attempt to fix class init
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jan 9, 2025
1 parent a619486 commit 42b9afb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/vonage/client/AbstractMethod.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @param <REQ> The request object type that will be used to construct the HTTP request body.
* @param <RES> The response object type which will be constructed from the returned HTTP response body.
*
* @see DynamicEndpoint for an abstract implementation which handles the most common use cases.
* @see DynamicEndpoint for a flexible implementation which handles the most common use cases.
*/
public abstract class AbstractMethod<REQ, RES> implements RestEndpoint<REQ, RES> {
private static final Logger LOGGER = Logger.getLogger(AbstractMethod.class.getName());
Expand All @@ -52,6 +52,9 @@ private static boolean shouldLog() {
return LOGGER.isLoggable(LOG_LEVEL);
}

/**
* HTTP client and configuration used by this endpoint.
*/
private final HttpWrapper httpWrapper;

/**
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/com/vonage/client/AbstractMethodTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import org.apache.http.message.BasicStatusLine;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;
import org.mockito.ArgumentCaptor;
import static org.mockito.Mockito.*;
import java.io.*;
Expand All @@ -45,6 +47,7 @@
import java.util.logging.LogManager;
import java.util.stream.Collectors;

@Execution(ExecutionMode.SAME_THREAD)
public class AbstractMethodTest {

static {
Expand Down

0 comments on commit 42b9afb

Please sign in to comment.