components/global/core/io.cellery.observability.k8s.client/src/test/java/io/cellery/observability/k8s/client/BaseTestCase.java
Composite generateComposite(String compositeName, List<Component> components) {
        CompositeSpec compositeSpec = new CompositeSpec();
        compositeSpec.setComponents(components);

        CompositeImpl composite = new CompositeImpl();
        composite.setMetadata(new ObjectMetaBuilder()
                .withName(compositeName)
                .withCreationTimestamp(CREATION_TIMESTAMP_STRING)
                .build());
        composite.setSpec(compositeSpec);
        return composite;
    }
/**
     * Generate a K8s Composite object.
     * The returned Composite can be used as one of the returned Composites in K8s Mock Server in expectation mode.
     *
     * @param compositeName The name of the Composite
     * @param components The list of service templates
     * @return The generated Composite
     */
Generate a K8s Composite object.
The returned Composite can be used as one of the returned Composites in K8s Mock Server in expectation mode.

@param compositeName The name of the Composite
@param components The list of service templates
@return The generated Composite
Generate a K8s Composite object . The returned Composite can be used as one of the returned Composites in K8s Mock Server in expectation mode . @param compositeName The name of the Composite @param components The list of service templates @return The generated Composite
Composite generateComposite(String compositeName, List<Component> components) {
        CompositeSpec compositeSpec = new CompositeSpec();
        compositeSpec.setComponents(components);
        CompositeImpl composite = new CompositeImpl();
        composite.setMetadata(new ObjectMetaBuilder()
                .withName(compositeName)
                .withCreationTimestamp(CREATION_TIMESTAMP_STRING)
                .build());
        composite.setSpec(compositeSpec);
        return composite;
    }
Composite generateComposite ( String compositeName , List < Component > components ) { CompositeSpec compositeSpec = new CompositeSpec ( ) ; compositeSpec . setComponents ( components ) ; CompositeImpl composite = new CompositeImpl ( ) ; composite . setMetadata ( new ObjectMetaBuilder ( ) . withName ( compositeName ) . withCreationTimestamp ( CREATION_TIMESTAMP_STRING ) . build ( ) ) ; composite . setSpec ( compositeSpec ) ; return composite ; }
Generate a K8s Composite object.
Generate a K8s Composite object .