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

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

public class ContentGeneratorUtil
extends Object


Constructor Summary
ContentGeneratorUtil()
           
 
Method Summary
static 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 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