From 7526fe0165ba158ba07b3d6a99c5a3a601a04e2e Mon Sep 17 00:00:00 2001 From: JoelCourtney Date: Wed, 25 Sep 2024 15:11:54 -0700 Subject: [PATCH] Test jvm default methods --- .../constraints/NotImplementedPlan.java | 42 +++++++++++++++++++ .../constraints/NotImplementedPlan.kt | 15 ------- 2 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 procedural/constraints/src/test/java/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.java delete mode 100644 procedural/constraints/src/test/kotlin/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.kt diff --git a/procedural/constraints/src/test/java/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.java b/procedural/constraints/src/test/java/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.java new file mode 100644 index 0000000000..430457a978 --- /dev/null +++ b/procedural/constraints/src/test/java/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.java @@ -0,0 +1,42 @@ +package gov.nasa.ammos.aerie.procedural.constraints; + +import gov.nasa.ammos.aerie.procedural.timeline.Interval; +import gov.nasa.ammos.aerie.procedural.timeline.collections.Directives; +import gov.nasa.ammos.aerie.procedural.timeline.plan.Plan; +import gov.nasa.jpl.aerie.merlin.protocol.types.Duration; +import gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue; +import kotlin.NotImplementedError; +import kotlin.jvm.functions.Function1; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.time.Instant; + +public class NotImplementedPlan implements Plan { + @NotNull + @Override + public Interval totalBounds() { + throw new NotImplementedError(); + } + + @NotNull + @Override + public Duration toRelative(@NotNull final Instant abs) { + throw new NotImplementedError(); + } + + @NotNull + @Override + public Instant toAbsolute(@NotNull final Duration rel) { + throw new NotImplementedError(); + } + + @NotNull + @Override + public Directives directives( + @Nullable final String type, + @NotNull final Function1 deserializer) + { + throw new NotImplementedError(); + } +} diff --git a/procedural/constraints/src/test/kotlin/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.kt b/procedural/constraints/src/test/kotlin/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.kt deleted file mode 100644 index 786cf5f370..0000000000 --- a/procedural/constraints/src/test/kotlin/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.kt +++ /dev/null @@ -1,15 +0,0 @@ -package gov.nasa.ammos.aerie.procedural.constraints - -import gov.nasa.ammos.aerie.procedural.timeline.Interval -import gov.nasa.ammos.aerie.procedural.timeline.collections.Directives -import gov.nasa.ammos.aerie.procedural.timeline.plan.Plan -import gov.nasa.jpl.aerie.merlin.protocol.types.Duration -import gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue -import java.time.Instant - -open class NotImplementedPlan: Plan { - override fun totalBounds(): Interval = TODO() - override fun toRelative(abs: Instant): Duration = TODO() - override fun toAbsolute(rel: Duration): Instant = TODO() - override fun directives(type: String?, deserializer: (SerializedValue) -> A): Directives = TODO() -}