@Test public void testBuildRunDateString() { PropertyRegistrarClassGenerator gen = new PropertyRegistrarClassGenerator( simpleCompileUnit(), AndHowCompileProcessor.class, runDate); assertTrue(gen.buildRunDateString().startsWith("2017-09-29T14:01:01.999")); assertTrue(gen.buildRunDateString().matches("2017-09-29T14:01:01\\.999[+-][01]\\d{3}")); }
protected String buildRunDateString() { return dateFormat.format(runDate.getTime()); }
PropertyRegistrarClassGenerator { protected String buildRunDateString() { return dateFormat.format(runDate.getTime()); } }
PropertyRegistrarClassGenerator { protected String buildRunDateString() { return dateFormat.format(runDate.getTime()); } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); }
PropertyRegistrarClassGenerator { protected String buildRunDateString() { return dateFormat.format(runDate.getTime()); } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); String getTemplatePath(); String getTemplate(); String generateSource(); }
PropertyRegistrarClassGenerator { protected String buildRunDateString() { return dateFormat.format(runDate.getTime()); } PropertyRegistrarClassGenerator(CompileUnit compUnit, Class<?> generatingClass, Calendar runDate); String getTemplatePath(); String getTemplate(); String generateSource();  }