Skip to content

Commit

Permalink
Correct the test coverage for data-prepper-api.
Browse files Browse the repository at this point in the history
Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable committed Aug 17, 2023
1 parent 348a1b5 commit 93bdbd7
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.opensearch.dataprepper.model.codec;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.invocation.InvocationOnMock;
import org.opensearch.dataprepper.model.event.DefaultEventMetadata;
import org.opensearch.dataprepper.model.event.Event;
import org.opensearch.dataprepper.model.event.EventMetadata;
Expand All @@ -19,12 +19,17 @@
import java.util.Set;
import java.util.UUID;

import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertNotEquals;
import static org.mockito.Mockito.mock;

public class OutputCodecTest {
@Test
void isCompressionInternal_returns_false() {
OutputCodec objectUnderTest = mock(OutputCodec.class, InvocationOnMock::callRealMethod);

@BeforeEach
public void setUp() {
assertThat(objectUnderTest.isCompressionInternal(), equalTo(false));
}

@Test
Expand Down

0 comments on commit 93bdbd7

Please sign in to comment.