Search in sources :

Example 1 with KameletBuilder

use of io.fabric8.camelk.v1alpha1.KameletBuilder in project kubernetes-client by fabric8io.

the class KameletModelTest method shouldCreateKamelet.

@Test
void shouldCreateKamelet() {
    Kamelet kamelet = new KameletBuilder().withNewMetadata().withName("my-kamelet").endMetadata().withNewSpec().withDefinition(new JSONSchemaPropsBuilder().build()).endSpec().build();
    assertNotNull(kamelet);
    assertEquals("my-kamelet", kamelet.getMetadata().getName());
}
Also used : JSONSchemaPropsBuilder(io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaPropsBuilder) KameletBuilder(io.fabric8.camelk.v1alpha1.KameletBuilder) Kamelet(io.fabric8.camelk.v1alpha1.Kamelet) Test(org.junit.jupiter.api.Test)

Aggregations

Kamelet (io.fabric8.camelk.v1alpha1.Kamelet)1 KameletBuilder (io.fabric8.camelk.v1alpha1.KameletBuilder)1 JSONSchemaPropsBuilder (io.fabric8.kubernetes.api.model.apiextensions.v1.JSONSchemaPropsBuilder)1 Test (org.junit.jupiter.api.Test)1