Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kondaka <[email protected]>
  • Loading branch information
kkondaka committed Nov 17, 2024
1 parent 67087b7 commit 16e9f5b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ public void setUp() throws Exception {
lambdaProcessor = new LambdaProcessor(pluginFactory, pluginMetrics, lambdaProcessorConfig,
awsCredentialsSupplier, expressionEvaluator);

// Inject mocks into the LambdaProcessor using reflection
populatePrivateFields();

// Mock InvokeResponse
when(invokeResponse.payload()).thenReturn(SdkBytes.fromUtf8String("[{\"key\":\"value\"}]"));
when(invokeResponse.statusCode()).thenReturn(200); // Success status code
Expand All @@ -183,9 +180,6 @@ public void setUp() throws Exception {
invokeResponse);
when(lambdaAsyncClientMock.invoke(any(InvokeRequest.class))).thenReturn(invokeFuture);

// Mock the checkStatusCode method
when(lambdaCommonHandler.checkStatusCode(any())).thenReturn(true);

// Mock Response Codec parse method
doNothing().when(responseCodec).parse(any(InputStream.class), any(Consumer.class));

Expand Down

0 comments on commit 16e9f5b

Please sign in to comment.