Skip to content

Commit

Permalink
add it to more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Eliat-Eliat committed Aug 19, 2024
1 parent 39b9ab9 commit ede2408
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.cognite.sdk.scala.v1.fdm.Utils
import com.cognite.sdk.scala.v1.fdm.Utils._
import com.cognite.sdk.scala.v1.fdm.common.Usage
import com.cognite.sdk.scala.v1.fdm.common.properties.PropertyDefinition.ContainerPropertyDefinition
import com.cognite.sdk.scala.v1.fdm.common.properties.PropertyType.PrimitiveProperty
import com.cognite.sdk.scala.v1.fdm.common.properties.PropertyType.{EnumValueMetadata, PrimitiveProperty}
import com.cognite.sdk.scala.v1.fdm.common.properties.{PrimitivePropType, PropertyDefaultValue, PropertyType}
import com.cognite.sdk.scala.v1.fdm.views.ViewReference
import com.cognite.sdk.scala.v1.{CogniteExternalId, CommonDataModelTestHelper}
Expand Down Expand Up @@ -94,6 +94,13 @@ class ContainersTest extends CommonDataModelTestHelper {

it should "serialize & deserialize ContainerPropertyType" in {
val values = Seq(
PropertyType.EnumProperty(
values = Map(
"VAL1" -> EnumValueMetadata(Some("value1"), Some("value 1")),
"VAL2" -> EnumValueMetadata(None, None)
),
unknownValue = Some("VAL2")
),
PropertyType.TextProperty(list = None),
PropertyType.TextProperty(list = Some(true)),
PropertyType.TextProperty(list = Some(false)),
Expand Down

0 comments on commit ede2408

Please sign in to comment.