Skip to content

Commit

Permalink
Change to output format of datetime.
Browse files Browse the repository at this point in the history
This is triggered by an Jackson update. See FasterXML/jackson-modules-java8#204 and FasterXML/jackson-modules-java8#267
  • Loading branch information
driessamyn committed Apr 26, 2023
1 parent 86c23ea commit 1648d65
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ import io.javalin.core.util.Header.WWW_AUTHENTICATE
import net.corda.rest.server.apigen.test.TestJavaPrimitivesRestResourceImpl
import net.corda.rest.server.config.models.RestServerSettings
import net.corda.rest.server.impl.apigen.processing.openapi.schema.toExample
import net.corda.rest.test.*
import net.corda.rest.test.CustomNonSerializableString
import net.corda.rest.test.CustomSerializationAPIImpl
import net.corda.rest.test.CustomUnsafeString
import net.corda.rest.test.TestEntityRestResourceImpl
import net.corda.rest.test.TestFileUploadImpl
import net.corda.rest.test.TestHealthCheckAPIImpl
import net.corda.rest.test.utils.ChecksumUtil
import net.corda.rest.test.utils.TestClientFileUpload
import net.corda.rest.test.utils.TestHttpClientUnirestImpl
import net.corda.rest.test.utils.WebRequest
import net.corda.rest.test.utils.WebResponse
import net.corda.rest.test.utils.multipartDir
import net.corda.rest.tools.HttpVerb.DELETE
import net.corda.rest.tools.HttpVerb.GET
import net.corda.rest.tools.HttpVerb.POST
Expand All @@ -23,12 +34,6 @@ import org.junit.jupiter.api.Test
import java.time.Instant
import java.time.ZonedDateTime
import kotlin.test.assertEquals
import net.corda.rest.test.utils.ChecksumUtil
import net.corda.rest.test.utils.TestClientFileUpload
import net.corda.rest.test.utils.TestHttpClientUnirestImpl
import net.corda.rest.test.utils.WebRequest
import net.corda.rest.test.utils.WebResponse
import net.corda.rest.test.utils.multipartDir

class RestServerRequestsTest : RestServerTestBase() {
companion object {
Expand Down Expand Up @@ -360,7 +365,7 @@ class RestServerRequestsTest : RestServerTestBase() {
val timeCallResponse = client.call(POST, WebRequest<Any>("health/timecall", """ { "time": { "time": "$time" } } """), userName, password)

assertEquals(HttpStatus.SC_OK, timeCallResponse.responseStatus)
assertEquals("2020-01-01T11:00Z[UTC]", timeCallResponse.body)
assertEquals("2020-01-01T11:00Z", timeCallResponse.body)
}

@Test
Expand Down

0 comments on commit 1648d65

Please sign in to comment.