org.pentaho.test.platform.engine.services
Class ContentGeneratorUtil
java.lang.Object
org.pentaho.test.platform.engine.services.ContentGeneratorUtil
public class ContentGeneratorUtil
- extends Object
ContentGeneratorUtil
public ContentGeneratorUtil()
getContentAsString
public static String getContentAsString(IContentGenerator cg)
throws Exception
- Convenience method for executing a content generator and getting back it's output as a string.
Useful for testing.
- Parameters:
cg
- the content generator to execute
- Returns:
- the output of the content generator
- Throws:
Exception
- if there was a problem creating the content