Package org.openengsb.domain.example.model

Examples of org.openengsb.domain.example.model.ExampleRequestModel


        TransformationDescription description =
            new TransformationDescription(getExampleRequestDescription(), getExampleResponseDescription());
        description.concatField("result", "-", "name", "id");
        transformationEngine.saveDescription(description);

        ExampleRequestModel modelA = new ExampleRequestModel();
        modelA.setName("test");
        modelA.setId(42);

        ExampleResponseModel modelB = transformRequestToResponse(modelA);

        assertThat(modelB.getResult(), is("test-42"));
    }
View Full Code Here


    public void testIfTransformationsFromFileWork_shouldWork() throws Exception {
        loadDescriptionsFromFile();
        ExampleResponseModel modelA = new ExampleResponseModel();
        modelA.setResult("test-42");

        ExampleRequestModel modelB = transformResponseToRequest(modelA);

        transformationEngine.deleteDescriptionsByFile("testDescription.transformation");
        assertThat(modelB.getName(), is("test"));
    }
View Full Code Here

        transformationEngine.saveDescription(description);

        ExampleResponseModel modelA = new ExampleResponseModel();
        modelA.setResult("teststring");

        ExampleRequestModel modelB = transformResponseToRequest(modelA);

        assertThat(modelB.getName(), is("DUMMYteststringDUMMY"));
    }
View Full Code Here

        authenticate("admin", "password");
        workflowService.processEvent(new LogEvent());

        transformationEngine.deleteDescriptionsByFile("testDescription.transformation");
        ExampleRequestModel result = exampleMock.getModel();
        assertThat(result.getName(), is("test"));
    }
View Full Code Here

TOP

Related Classes of org.openengsb.domain.example.model.ExampleRequestModel

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.