Search in sources :

Example 1 with Generator

use of uk.gov.justice.maven.generator.io.files.parser.core.Generator in project microservice_framework by CJSCommonPlatform.

the class AbstractClientGeneratorTest method shouldLogWarningIfClassExists.

@Test
public void shouldLogWarningIfClassExists() throws Exception {
    final Generator generator = new BCDClientGenerator();
    overrideLogger(generator, logger);
    generator.run(messagingRamlWithDefaults().with(resource().with(httpActionWithDefaultMapping(GET))).build(), configurationWithBasePackage(BASE_PACKAGE, outputFolder, generatorProperties().withServiceComponentOf("COMMAND_CONTROLLER"), singletonList(existingFilePath())));
    verify(logger).warn("The class {} already exists, skipping code generation.", "RemoteBCDController");
}
Also used : Generator(uk.gov.justice.maven.generator.io.files.parser.core.Generator) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Generator (uk.gov.justice.maven.generator.io.files.parser.core.Generator)1