Skip to content

Commit

Permalink
Refactor format
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyanli-amazon committed Dec 8, 2022
1 parent d054265 commit 6824b40
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

import java.lang.reflect.Field;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;

class ModifyWaitTimeSecondsTest {

@DisplayName("Should be able to modify SQSMessageConsumerPrefetch.WAIT_TIME_SECONDS via Reflection")
@Test
void WaitTimeSecondsShouldBeModifiableViaReflection() throws NoSuchFieldException, IllegalAccessException {
public void waitTimeSecondsShouldBeModifiableViaReflection() throws NoSuchFieldException, IllegalAccessException {
Field wait_time_seconds = SQSMessageConsumerPrefetch.class.getDeclaredField("WAIT_TIME_SECONDS");
wait_time_seconds.setAccessible(true);
wait_time_seconds.setInt(null,5);
Expand Down

0 comments on commit 6824b40

Please sign in to comment.