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");
}