Skip to content

Commit

Permalink
initialize pluginSetting Mock
Browse files Browse the repository at this point in the history
Signed-off-by: Maxwell Brown <mxwelwbr@amazon.com>
  • Loading branch information
Galactus22625 committed Dec 19, 2024
1 parent 9378889 commit 96ea7e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public class OpenSearchSinkIT {

public OpenSearchSink createObjectUnderTest(OpenSearchSinkConfig openSearchSinkConfig, boolean doInitialize) {
when(pipelineDescription.getPipelineName()).thenReturn(PIPELINE_NAME);
assertNotNull(openSearchSinkConfig);
OpenSearchSink sink = new OpenSearchSink(
pluginSetting, null, expressionEvaluator, awsCredentialsSupplier, pipelineDescription, pluginConfigObservable, openSearchSinkConfig);
if (doInitialize) {
Expand All @@ -176,6 +177,7 @@ public void setup() {
pluginConfigObservable = mock(PluginConfigObservable.class);
expressionEvaluator = mock(ExpressionEvaluator.class);
pipelineDescription = mock(PipelineDescription.class);
pluginSetting = mock(PluginSetting.class);
when(expressionEvaluator.isValidExpressionStatement(any(String.class))).thenReturn(false);

}
Expand Down

0 comments on commit 96ea7e1

Please sign in to comment.