@Test public void testBuildPackageString() { PropertyRegistrarClassGenerator gen = new PropertyRegistrarClassGenerator( simpleCompileUnit(), AndHowCompileProcessor.class, runDate); assertEquals("package " + ROOT_PKG + ";", gen.buildPackageString()); gen = new PropertyRegistrarClassGenerator( simpleCompileUnit_DefaultPkg(), AndHowCompileProcessor.class, runDate); assertEquals("", gen.buildPackageString()); }
protected String buildPackageString() { if (compUnit.getRootPackageName() != null) { return "package " + compUnit.getRootPackageName() + ";"; } else { return ""; } }
PropertyRegistrarClassGenerator { protected String buildPackageString() { if (compUnit.getRootPackageName() != null) { return "package " + compUnit.getRootPackageName() + ";"; } else { return ""; } } }
PropertyRegistrarClassGenerator { protected String buildPackageString() { if (compUnit.getRootPackageName() != null) { return "package " + compUnit.getRootPackageName() + ";"; } else { return ""; } } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); }
PropertyRegistrarClassGenerator { protected String buildPackageString() { if (compUnit.getRootPackageName() != null) { return "package " + compUnit.getRootPackageName() + ";"; } else { return ""; } } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); String getTemplatePath(); String getTemplate(); String generateSource(); }
PropertyRegistrarClassGenerator { protected String buildPackageString() { if (compUnit.getRootPackageName() != null) { return "package " + compUnit.getRootPackageName() + ";"; } else { return ""; } } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); String getTemplatePath(); String getTemplate(); String generateSource();  }