Search in sources :

Example 46 with JsonObject

use of jakarta.json.JsonObject in project zilla by aklivity.

the class SchemaTest method shouldValidateHttp1ServerAccessControlCrossOriginAllowCredentialsCached.

@Test
public void shouldValidateHttp1ServerAccessControlCrossOriginAllowCredentialsCached() {
    JsonObject config = schema.validate("v1.1/server.access.control.cross.origin.allow.credentials.cached.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 47 with JsonObject

use of jakarta.json.JsonObject in project zilla by aklivity.

the class SchemaTest method shouldValidateHttp11ServerAuthority.

@Test
public void shouldValidateHttp11ServerAuthority() {
    JsonObject config = schema.validate("v1.1/server.authority.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 48 with JsonObject

use of jakarta.json.JsonObject in project zilla by aklivity.

the class SchemaTest method shouldValidateHttp1ServerAccessControlSameOriginWithImplicitPorts.

@Test
public void shouldValidateHttp1ServerAccessControlSameOriginWithImplicitPorts() {
    JsonObject config = schema.validate("v1.1/server.access.control.same.origin.implicit.ports.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 49 with JsonObject

use of jakarta.json.JsonObject in project zilla by aklivity.

the class SchemaTest method shouldValidateHttp2ServerAccessControlCrossOriginAllowCredentialsCached.

@Test
public void shouldValidateHttp2ServerAccessControlCrossOriginAllowCredentialsCached() {
    JsonObject config = schema.validate("v2/server.access.control.cross.origin.allow.credentials.cached.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 50 with JsonObject

use of jakarta.json.JsonObject in project zilla by aklivity.

the class SchemaTest method shouldValidateHttp1ServerAccessControlCrossOriginCached.

@Test
public void shouldValidateHttp1ServerAccessControlCrossOriginCached() {
    JsonObject config = schema.validate("v1.1/server.access.control.cross.origin.cached.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Aggregations

JsonObject (jakarta.json.JsonObject)356 Test (org.junit.Test)125 Test (org.junit.jupiter.api.Test)92 JsonArray (jakarta.json.JsonArray)29 Response (jakarta.ws.rs.core.Response)29 JsonObjectBuilder (jakarta.json.JsonObjectBuilder)24 JsonString (jakarta.json.JsonString)24 JsonValue (jakarta.json.JsonValue)20 WebClientResponse (io.helidon.webclient.WebClientResponse)19 Client (jakarta.ws.rs.client.Client)18 StringReader (java.io.StringReader)17 HelidonTest (io.helidon.microprofile.tests.junit5.HelidonTest)15 JsonReader (jakarta.json.JsonReader)14 List (java.util.List)14 JsonException (jakarta.json.JsonException)13 Map (java.util.Map)13 Logger (java.util.logging.Logger)13 Routing (io.helidon.webserver.Routing)11 Json (jakarta.json.Json)11 Produces (jakarta.ws.rs.Produces)11