citrus icon indicating copy to clipboard operation
citrus copied to clipboard

JavaTestGenerator produces XML-Test Java files

Open svettwer opened this issue 6 years ago • 1 comments

Citrus Version 2.7.8

Expected behavior The JavaTestGenerator generates Java Citrus tests.

Actual behavior The JavaTestGenerator generates XML Citrus tests.

Test case sample

        new JavaTestGenerator()
                .withAuthor("Sven")
                .withDescription("This is a sample java test")
                .withName("SampleIT")
                .usePackage("com.consol.citrus.sample")
                .withFramework(UnitFramework.TESTNG)
                .create();

generates

/**
 * This is a sample java test
 *
 * @author Sven
 * @since 2019-01-14
 */
public class SampleIT extends AbstractTestNGCitrusTest {
    @CitrusXmlTest(
            name = "SampleIT"
    )
    @Test
    public void sampleIT(@CitrusResource TestRunner testRunner) {
    }
}

Additional information This issue is important for #450 to reduce testing efforts.

svettwer avatar Jan 14 '19 16:01 svettwer

Ah, I see that I can solve #450 without solving this first, so I removed it from the milestone again.

svettwer avatar Jan 14 '19 16:01 svettwer