@Test public void testGetGuiceModuleName() { String transformerClazzName = "de.crowdcode.kissmda.cartridges.extensions.ExtensionExamplesTransformer"; String result = kissMdaMojo.getGuiceModuleName(transformerClazzName); assertEquals( "de.crowdcode.kissmda.cartridges.extensions.ExtensionExamplesModule", result); }
String getGuiceModuleName(String transformerClazzName) { String guiceModuleClazzName = StringUtils.replace(transformerClazzName, "Transformer", "Module"); return guiceModuleClazzName; }
KissMdaMojo extends AbstractMojo { String getGuiceModuleName(String transformerClazzName) { String guiceModuleClazzName = StringUtils.replace(transformerClazzName, "Transformer", "Module"); return guiceModuleClazzName; } }
KissMdaMojo extends AbstractMojo { String getGuiceModuleName(String transformerClazzName) { String guiceModuleClazzName = StringUtils.replace(transformerClazzName, "Transformer", "Module"); return guiceModuleClazzName; } KissMdaMojo(); }
KissMdaMojo extends AbstractMojo { String getGuiceModuleName(String transformerClazzName) { String guiceModuleClazzName = StringUtils.replace(transformerClazzName, "Transformer", "Module"); return guiceModuleClazzName; } KissMdaMojo(); StandardContext getContext(); void setGeneratedSourcesTargetDirectory(String generatedSourcesTargetDirectory); void setModelFile(String modelFile); void setTransformerScanPackageNames(List<String> transformerScanPackageNames); void setTransformerNameWithOrders(List<String> transformerNameWithOrders); void setProject(MavenProject project); void setLoggingLevel(String loggingLevel); void setTargetEncoding(String targetEncoding); void setPropertyFile(String propertyFile); @Override void execute(); }
KissMdaMojo extends AbstractMojo { String getGuiceModuleName(String transformerClazzName) { String guiceModuleClazzName = StringUtils.replace(transformerClazzName, "Transformer", "Module"); return guiceModuleClazzName; } KissMdaMojo(); StandardContext getContext(); void setGeneratedSourcesTargetDirectory(String generatedSourcesTargetDirectory); void setModelFile(String modelFile); void setTransformerScanPackageNames(List<String> transformerScanPackageNames); void setTransformerNameWithOrders(List<String> transformerNameWithOrders); void setProject(MavenProject project); void setLoggingLevel(String loggingLevel); void setTargetEncoding(String targetEncoding); void setPropertyFile(String propertyFile); @Override void execute(); static final String ERROR_GUICE_SAME_PACKAGE_NOT_FOUND; }