All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.consol.citrus.dsl.design.TestDesignerComponent Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
/*
 * Copyright 2006-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.consol.citrus.dsl.design;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContextAware;

/**
 * This test builder should be exclusively used as bean in a Spring application context. Either as bean definition in a XML configuration file or as
 * {@link org.springframework.stereotype.Component} annotated bean loaded with Spring's annotation scan support. The builder is aware of the application context and
 * the bean lifecylce automatically setting up application context and initializing tasks.
 *
 * Subclass may add custom logic in {@link TestDesignerComponent#configure()} method by calling builder methods.
 *
 * @author Christoph Deppisch
 * @since 2.3
 */
public class TestDesignerComponent extends DefaultTestDesigner implements ApplicationContextAware, InitializingBean {

    /**
     * Main entrance method for subclasses to call Java DSL builder methods in order to
     * add test actions and basic test case properties to this builder instance.
     */
    protected void configure() {
    }

    @Override
    public final void afterPropertiesSet() throws Exception {
        initialize();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy