Skip to content

Commit

Permalink
Migrate trino-record-decoder off TestNG assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Dec 18, 2023
1 parent ed6e854 commit 3142333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions lib/trino-record-decoder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,6 @@
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Map;

import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.assertEquals;
import static org.assertj.core.data.Offset.offset;

public final class DecoderTestUtil
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public static void checkValue(Map<DecoderColumnHandle, FieldValueProvider> decod
{
FieldValueProvider provider = decodedRow.get(handle);
assertThat(provider).isNotNull();
assertEquals(provider.getDouble(), value, 0.0001);
assertThat(provider.getDouble()).isCloseTo(value, offset(0.0001));
}

public static void checkValue(Map<DecoderColumnHandle, FieldValueProvider> decodedRow, DecoderColumnHandle handle, boolean value)
Expand Down

0 comments on commit 3142333

Please sign in to comment.