TransformationTemplate implements TransformationUtilityList { protected String getSimpleClassName() { if (getClass().isAnonymousClass()) { return "AnonymousTransformationTemplate"; } else { return getClass().getSimpleName(); } } TransformationTemplate(); abstract Class<? extends Extension> getExtensionClass(); abstract String getDescription(); @Override final String add(TransformationUtility utility); @Override final String add(TransformationUtility utility, String utilityName); @Override final String addMultiple(TransformationOperation templateOperation, String... attributes); final String loop(TransformationUtility utility, int iterations); final String loop(TransformationUtility utility, String attribute); final String loop(TransformationUtility utility, UtilityCondition condition); @Deprecated @Override final void log(String logMessage); @Override final void info(String infoMessage); @Override final void debug(String debugMessage); @Override final void log(Level logLevel, String logMessage); @Deprecated @Override final void log(String logMessage, String... attributeNames); @Override final void info(String infoMessage, String... attributeNames); @Override final void debug(String debugMessage, String... attributeNames); @Override final void log(Level logLevel, String logMessage, String... attributeNames); @Override final List<TransformationUtility> getUtilities(); @Override List<TransformationUtility> getChildren(); @Override final String getName(); @Override final String toString(); String getApplicationType(); String getApplicationName(); void setBlank(boolean blank); boolean isBlank(); static final String BASELINE; }
@Test public void simpleClassNameTest() { assertEquals(getNewTestTransformationTemplate().getSimpleClassName(), "AnonymousTransformationTemplate"); assertEquals(new SampleTransformationTemplate().getSimpleClassName(), "SampleTransformationTemplate"); }