org.pentaho.test.platform.engine.services
Class ContentGeneratorUtil

java.lang.Object
  extended by org.pentaho.test.platform.engine.services.ContentGeneratorUtil

public class ContentGeneratorUtil
extends java.lang.Object


Constructor Summary
ContentGeneratorUtil()
           
 
Method Summary
static java.lang.String getContentAsString(IContentGenerator cg)
          Convenience method for executing a content generator and getting back it's output as a string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentGeneratorUtil

public ContentGeneratorUtil()
Method Detail

getContentAsString

public static java.lang.String getContentAsString(IContentGenerator cg)
                                           throws java.lang.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:
java.lang.Exception - if there was a problem creating the content