Skip to content

Commit

Permalink
Get rid of a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLongo committed Sep 16, 2024
1 parent 1f90615 commit 2977c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public class OTelLogsSource implements Source<Record<Object>> {
private final PluginMetrics pluginMetrics;
private final GrpcAuthenticationProvider authenticationProvider;
private final CertificateProviderFactory certificateProviderFactory;
private final ByteDecoder byteDecoder;
private Server server;
private ByteDecoder byteDecoder;

@DataPrepperPluginConstructor
public OTelLogsSource(final OTelLogsSourceConfig oTelLogsSourceConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
Expand Down Expand Up @@ -105,7 +106,7 @@ private void configureObjectUnderTest() {
lenient().when(pipelineDescription.getPipelineName()).thenReturn(TEST_PIPELINE_NAME);

SOURCE = new OTelLogsSource(oTelLogsSourceConfig, pluginMetrics, pluginFactory, pipelineDescription);
assertTrue(SOURCE.getDecoder() instanceof OTelLogsDecoder);
assertInstanceOf(OTelLogsDecoder.class, SOURCE.getDecoder());
}

@Test
Expand Down

0 comments on commit 2977c1f

Please sign in to comment.