only-tests
profile:e2e-supporting-service
profile, these resources are automatically started via Docker. Alternatively, you can manually run these dependencies. Learn more in the Dependencies section. src\e2e-test\
and its classes have to be under the packageio.vlingo.xoom.designer.codegen.e2e.*
extendingJavaBasedProjectGenerationTest
. Let's take a look at the basic structure of a test class:JavaBasedProjectGenerationTest.init()
prepares the test environment setting the internal components required for generating a project and runs the XOOM Designer Server. Whereas, clear()
basically stops the application ran in each test case. As demonstrated above, ensure that both methods are invoked respectively at the right time of the test lifecycle. src/e2e-test/resources/sample-models/[context-name]/
. the values of deployment.httpServerPort
and projectDiretory
have to be updated to a replacement token (%s
) for the fact that these values will be dynamically resolved during the tests. Here's an example:io.vlingo.xoom.designer.codegen.e2e.Project
object which is also used to generate the project.generateAndRun
method receives the Project
object carrying the model settings which is submitted to the XOOM Designer API. Still, this method internally asserts that the project is properly generated. If the generation succeeds, the project will also be compiled and initialized. Otherwise, a message assertion error will be shown. e2e-supporting-services
profile.e2e-supporting-services
profile.SupportingServicesManager.run()
before the test cases are executed:SupportingServicesManager
automatically shut down the managed services when the test cases execution is done.