Configuration implements ConfigurationOptionKeys { public String getComment() { return getStringValue(comment, generateAnnotation.comment(), configureAnnotation.comment()); } Configuration(String sourceElementName, SourceVersion targetSourceVersion, VALJOGenerate annotation, Locale optDefaultLocale, Map<String, String> options);  Configuration(String sourceElementName, SourceVersion targetSourceVersion, VALJOGenerate annotation,	VALJOConfigure configureAnnotation, Locale optDefaultLocale, Map<String, String> options); SourceVersion getTargetSourceVersion(); boolean isTargetSourceVersionJava6OrHigher(); boolean isTargetSourceVersionJava7OrHigher(); boolean isTargetSourceVersionJava8OrHigher(); String getSourceElementName(); Date getExecutionDate(); String getLocaleTag(); Locale getLocale(); int getLineWidth(); EnumSet<Modifier> getClazzModifiers(); Mutability getMutability(); DataConversion getDataConversion(); boolean isFinalMembersAndParametersEnabled(); boolean isFinalMethodsEnabled(); boolean isStaticFactoryMethodEnabled(); boolean isEnsureNotNullEnabled(); boolean isSynchronizedAccessEnabled(); boolean isMalformedPropertiesIgnored(); String getPackage(); String getName(); String[] getImportClasses(); String[] getExtraInterfaces(); String[] getGetterPrefixes(); String[] getSetterPrefixes(); boolean isThisAsImmutableSetterReturnTypeEnabled(); String getBaseClazzName(); String[] getBaseClazzConstructors(); String getSuggestedVariablesPrefix(); long getSerialVersionUID(); boolean getSerialVersionUIDSpecified(); boolean isEqualsEnabled(); boolean isHashEnabled(); String[] getComparableMembers(); boolean isToStringEnabled(); boolean isInsertInheritDocOnMethodsEnabled(); String getHeaderFileName(); String getCustomJavaTemplateFileName(); String getClazzJavaDoc(); String[] getClazzAnnotations(); List<KeyValuePair<String, String>> getMethodAnnotations(); List<KeyValuePair<String, String>> getMethodAnnotations(Predicate<String> overloadNameFilter); List<KeyValuePair<String, String>> getMemberAnnotations(); List<KeyValuePair<String, String>> getMemberAnnotations(Predicate<String> overloadNameFilter); boolean isWarningAboutSynthesisedNamesEnabled(); Level getLogLevel(); boolean isDebugStringTemplatesEnabled(); String getComment(); String getSourcePath(); String getLogFile(); @Override String toString();  }
@Test public void testSystemPropertiesMacro() throws Exception { String sourceElementName = "test"; List<Object> keys = Collections.list(System.getProperties().keys()); for (Object _key : keys) { String key = (String)_key; String valueWithSystemPropertyMacro = "prop is '"+ConfigurationMacros.MacroPrefix+key+ConfigurationMacros.MacroSuffix+"'"; configurationOptions.put(ConfigurationDefaults.OPTION_QUALIFIER+ConfigurationOptionKeys.comment, valueWithSystemPropertyMacro); Configuration configuration = new Configuration(sourceElementName, SourceVersion.latest(), generate, configure, Locale.ENGLISH, configurationOptions); String actualExpandedValue = configuration.getComment(); String expectedExpandedValue = ("prop is '"+System.getProperty(key)+"'"); Assert.assertEquals(expectedExpandedValue, actualExpandedValue); } }