Skip to content

Commit 42b9afb

Browse files
committed
test: Attempt to fix class init
1 parent a619486 commit 42b9afb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/com/vonage/client/AbstractMethod.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* @param <REQ> The request object type that will be used to construct the HTTP request body.
4343
* @param <RES> The response object type which will be constructed from the returned HTTP response body.
4444
*
45-
* @see DynamicEndpoint for an abstract implementation which handles the most common use cases.
45+
* @see DynamicEndpoint for a flexible implementation which handles the most common use cases.
4646
*/
4747
public abstract class AbstractMethod<REQ, RES> implements RestEndpoint<REQ, RES> {
4848
private static final Logger LOGGER = Logger.getLogger(AbstractMethod.class.getName());
@@ -52,6 +52,9 @@ private static boolean shouldLog() {
5252
return LOGGER.isLoggable(LOG_LEVEL);
5353
}
5454

55+
/**
56+
* HTTP client and configuration used by this endpoint.
57+
*/
5558
private final HttpWrapper httpWrapper;
5659

5760
/**

src/test/java/com/vonage/client/AbstractMethodTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import org.apache.http.message.BasicStatusLine;
3333
import static org.junit.jupiter.api.Assertions.*;
3434
import org.junit.jupiter.api.*;
35+
import org.junit.jupiter.api.parallel.Execution;
36+
import org.junit.jupiter.api.parallel.ExecutionMode;
3537
import org.mockito.ArgumentCaptor;
3638
import static org.mockito.Mockito.*;
3739
import java.io.*;
@@ -45,6 +47,7 @@
4547
import java.util.logging.LogManager;
4648
import java.util.stream.Collectors;
4749

50+
@Execution(ExecutionMode.SAME_THREAD)
4851
public class AbstractMethodTest {
4952

5053
static {

0 commit comments

Comments
 (0)