Skip to content

Commit 2cf1eb1

Browse files
committed
Remove useless tests
1 parent 6a23592 commit 2cf1eb1

File tree

2 files changed

+0
-59
lines changed

2 files changed

+0
-59
lines changed

airbyte-cdk/bulk/core/load/src/test/kotlin/io/airbyte/cdk/load/data/EnrichedAirbyteValueTest.kt

-14
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,6 @@ import org.junit.jupiter.api.Test
1111

1212
class EnrichedAirbyteValueTest {
1313

14-
@Test
15-
fun `test initialization with valid arguments`() {
16-
val value = StringValue("test value")
17-
val type = StringType
18-
val name = "testField"
19-
20-
val enriched = EnrichedAirbyteValue(value, type, name)
21-
22-
assertEquals(value, enriched.value)
23-
assertEquals(type, enriched.type)
24-
assertEquals(name, enriched.name)
25-
assertEquals(0, enriched.changes.size)
26-
}
27-
2814
@Test
2915
fun `test nullify method sets value to NullValue and adds change`() {
3016
val initialValue = StringValue("test value")

airbyte-cdk/bulk/core/load/src/test/kotlin/io/airbyte/cdk/load/data/EnrichedDestinationRecordAirbyteValueTest.kt

-45
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
package io.airbyte.cdk.load.data
66

7-
import com.fasterxml.jackson.databind.node.JsonNodeFactory
87
import io.airbyte.cdk.load.command.Append
98
import io.airbyte.cdk.load.command.DestinationStream
109
import io.airbyte.cdk.load.message.EnrichedDestinationRecordAirbyteValue
@@ -28,50 +27,6 @@ class EnrichedDestinationRecordAirbyteValueTest {
2827

2928
private val emittedAtMs = 1234567890L
3029

31-
@Test
32-
fun `test constructor with all parameters`() {
33-
val declaredFields =
34-
mapOf(
35-
"field1" to EnrichedAirbyteValue(StringValue("value1"), StringType, "field1"),
36-
"field2" to EnrichedAirbyteValue(IntegerValue(42), IntegerType, "field2")
37-
)
38-
39-
val undeclaredFields =
40-
mapOf(
41-
"undeclared1" to JsonNodeFactory.instance.textNode("value1"),
42-
"undeclared2" to JsonNodeFactory.instance.numberNode(42)
43-
)
44-
45-
val meta =
46-
Meta(
47-
changes =
48-
listOf(
49-
Meta.Change(
50-
"field1",
51-
Change.TRUNCATED,
52-
Reason.DESTINATION_RECORD_SIZE_LIMITATION
53-
)
54-
)
55-
)
56-
57-
val record =
58-
EnrichedDestinationRecordAirbyteValue(
59-
stream = destinationStream,
60-
declaredFields = declaredFields,
61-
undeclaredFields = undeclaredFields,
62-
emittedAtMs = emittedAtMs,
63-
meta = meta,
64-
serializedSizeBytes = 1024L
65-
)
66-
67-
assertEquals(destinationStream, record.stream)
68-
assertEquals(declaredFields, record.declaredFields)
69-
assertEquals(undeclaredFields, record.undeclaredFields)
70-
assertEquals(emittedAtMs, record.emittedAtMs)
71-
assertEquals(meta, record.meta)
72-
assertEquals(1024L, record.serializedSizeBytes)
73-
}
74-
7530
@Test
7631
fun `test airbyteMetaFields property`() {
7732
val record =

0 commit comments

Comments
 (0)