Search in sources :

Example 6 with JsonbConfig

use of jakarta.json.bind.JsonbConfig in project zilla by aklivity.

the class TcpOptionsConfigAdapterTest method initJson.

@Before
public void initJson() {
    JsonbConfig config = new JsonbConfig().withAdapters(new TcpOptionsConfigAdapter());
    jsonb = JsonbBuilder.create(config);
}
Also used : JsonbConfig(jakarta.json.bind.JsonbConfig) Before(org.junit.Before)

Example 7 with JsonbConfig

use of jakarta.json.bind.JsonbConfig in project zilla by aklivity.

the class MqttConditionConfigAdapterTest method initJson.

@Before
public void initJson() {
    JsonbConfig config = new JsonbConfig().withAdapters(new MqttConditionConfigAdapter());
    jsonb = JsonbBuilder.create(config);
}
Also used : JsonbConfig(jakarta.json.bind.JsonbConfig) Before(org.junit.Before)

Example 8 with JsonbConfig

use of jakarta.json.bind.JsonbConfig in project zilla by aklivity.

the class ProxyConditionConfigAdapterTest method initJson.

@Before
public void initJson() {
    JsonbConfig config = new JsonbConfig().withAdapters(new ProxyConditionConfigAdapter());
    jsonb = JsonbBuilder.create(config);
}
Also used : JsonbConfig(jakarta.json.bind.JsonbConfig) Before(org.junit.Before)

Example 9 with JsonbConfig

use of jakarta.json.bind.JsonbConfig in project zilla by aklivity.

the class KafkaWithConfigAdapterTest method initJson.

@Before
public void initJson() {
    JsonbConfig config = new JsonbConfig().withAdapters(new KafkaWithConfigAdapter());
    jsonb = JsonbBuilder.create(config);
}
Also used : JsonbConfig(jakarta.json.bind.JsonbConfig) Before(org.junit.Before)

Example 10 with JsonbConfig

use of jakarta.json.bind.JsonbConfig in project zilla by aklivity.

the class ProxyOptionsConfigAdapterTest method initJson.

@Before
public void initJson() {
    JsonbConfig config = new JsonbConfig().withAdapters(new ProxyOptionsConfigAdapter());
    jsonb = JsonbBuilder.create(config);
}
Also used : JsonbConfig(jakarta.json.bind.JsonbConfig) Before(org.junit.Before)

Aggregations

JsonbConfig (jakarta.json.bind.JsonbConfig)45 Before (org.junit.Before)28 Jsonb (jakarta.json.bind.Jsonb)12 Test (org.junit.jupiter.api.Test)5 InputStream (java.io.InputStream)4 Files.newInputStream (java.nio.file.Files.newInputStream)3 Path (java.nio.file.Path)3 ZpmSecurity (io.aklivity.zilla.manager.internal.settings.ZpmSecurity)2 Annot8ComponentDescriptor (io.annot8.api.components.Annot8ComponentDescriptor)2 Descriptor (io.annot8.common.serialization.TestNested.Descriptor)2 OutputStream (java.io.OutputStream)2 Files.newOutputStream (java.nio.file.Files.newOutputStream)2 ZpmCredentials (io.aklivity.zilla.manager.internal.settings.ZpmCredentials)1 ZpmSettings (io.aklivity.zilla.manager.internal.settings.ZpmSettings)1 Engine (io.aklivity.zilla.runtime.engine.Engine)1 EngineConfiguration (io.aklivity.zilla.runtime.engine.EngineConfiguration)1 BindingConfig (io.aklivity.zilla.runtime.engine.config.BindingConfig)1 NamespaceConfig (io.aklivity.zilla.runtime.engine.config.NamespaceConfig)1 RouteConfig (io.aklivity.zilla.runtime.engine.config.RouteConfig)1 VaultConfig (io.aklivity.zilla.runtime.engine.config.VaultConfig)1