Package com.consol.citrus.model.testcase.core

Examples of com.consol.citrus.model.testcase.core.ObjectFactory


        return action;
    }

    @Override
    public Sleep convertModel(SleepAction definition) {
        Sleep action = new ObjectFactory().createSleep();

        action.setDescription(definition.getDescription());
        action.setMilliseconds(definition.getMilliseconds());
        action.setSeconds(definition.getSeconds());
View Full Code Here


        return null;
    }

    @Override
    public RepeatOnerrorUntilTrue convertModel(RepeatOnErrorUntilTrue definition) {
        RepeatOnerrorUntilTrue action = new ObjectFactory().createRepeatOnerrorUntilTrue();

        action.setDescription(definition.getDescription());
        action.setCondition(definition.getCondition());
        action.setAutoSleep(definition.getAutoSleep().toString());
View Full Code Here

        return action;
    }

    @Override
    public Sql convertModel(ExecuteSQLAction definition) {
        Sql action = new ObjectFactory().createSql();

        action.setDescription(definition.getDescription());
        action.setDatasource(definition.getDataSource().toString());

        return action;
View Full Code Here

        return action;
    }

    @Override
    public Object convertModel(TestAction model) {
        Action action = new ObjectFactory().createAction();

        action.setReference(model.getName());
        action.setDescription(model.getDescription());

        return action;
View Full Code Here

        return action;
    }

    @Override
    public Send convertModel(SendMessageAction definition) {
        Send action = new ObjectFactory().createSend();

        if (definition.getActor() != null) {
            action.setActor(definition.getActor().getName());
        } else if (definition.getEndpoint().getActor() != null) {
            action.setActor(definition.getEndpoint().getActor().getName());
View Full Code Here

        return action;
    }

    @Override
    public Receive convertModel(ReceiveMessageAction definition) {
        Receive action = new ObjectFactory().createReceive();

        if (definition.getActor() != null) {
            action.setActor(definition.getActor().getName());
        } else if (definition.getEndpoint().getActor() != null) {
            action.setActor(definition.getEndpoint().getActor().getName());
View Full Code Here

TOP

Related Classes of com.consol.citrus.model.testcase.core.ObjectFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.