org.cdk8s.Testing Maven / Gradle / Ivy
Show all versions of cdk8s Show documentation
package org.cdk8s;
/**
* Testing utilities for cdk8s applications.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.88.0 (build eaabd08)", date = "2023-09-08T06:33:08.553Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.$Module.class, fqn = "cdk8s.Testing")
public class Testing extends software.amazon.jsii.JsiiObject {
protected Testing(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Testing(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Returns an app for testing with the following properties: - Output directory is a temp dir.
*
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.App app(final @org.jetbrains.annotations.Nullable org.cdk8s.AppProps props) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.Testing.class, "app", software.amazon.jsii.NativeType.forClass(org.cdk8s.App.class), new Object[] { props });
}
/**
* Returns an app for testing with the following properties: - Output directory is a temp dir.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.App app() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.Testing.class, "app", software.amazon.jsii.NativeType.forClass(org.cdk8s.App.class));
}
/**
* @return a Chart that can be used for tests
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull org.cdk8s.Chart chart() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.Testing.class, "chart", software.amazon.jsii.NativeType.forClass(org.cdk8s.Chart.class));
}
/**
* Returns the Kubernetes manifest synthesized from this chart.
*
* @param chart This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static @org.jetbrains.annotations.NotNull java.util.List synth(final @org.jetbrains.annotations.NotNull org.cdk8s.Chart chart) {
return java.util.Collections.unmodifiableList(software.amazon.jsii.JsiiObject.jsiiStaticCall(org.cdk8s.Testing.class, "synth", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(chart, "chart is required") }));
}
}