Search in sources :

Example 26 with JsonObject

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

the class SchemaTest method shouldValidateServerAlpnDefault.

@Test
public void shouldValidateServerAlpnDefault() {
    JsonObject config = schema.validate("server.alpn.default.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 27 with JsonObject

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

the class SchemaTest method shouldValidateClientMutualSigner.

@Test
public void shouldValidateClientMutualSigner() {
    JsonObject config = schema.validate("client.mutual.signer.json");
    assertThat(config, not(nullValue()));
}
Also used : JsonObject(jakarta.json.JsonObject) Test(org.junit.Test)

Example 28 with JsonObject

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

the class SchemaTest method shouldValidateServerSni.

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

Example 29 with JsonObject

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

the class SchemaTest method shouldValidateServer.

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

Example 30 with JsonObject

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

the class SchemaTest method shouldValidateServerPorts.

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

Aggregations

JsonObject (jakarta.json.JsonObject)404 Test (org.junit.Test)148 Test (org.junit.jupiter.api.Test)103 Response (jakarta.ws.rs.core.Response)51 JsonArray (jakarta.json.JsonArray)37 JsonString (jakarta.json.JsonString)30 StringReader (java.io.StringReader)29 JsonObjectBuilder (jakarta.json.JsonObjectBuilder)25 JsonValue (jakarta.json.JsonValue)23 Client (jakarta.ws.rs.client.Client)23 List (java.util.List)20 WebClientResponse (io.helidon.webclient.WebClientResponse)19 Map (java.util.Map)18 Json (jakarta.json.Json)17 JsonReader (jakarta.json.JsonReader)16 Optional (java.util.Optional)16 Logger (java.util.logging.Logger)16 HelidonTest (io.helidon.microprofile.tests.junit5.HelidonTest)15 JsonException (jakarta.json.JsonException)14 HashMap (java.util.HashMap)12