* Test basic initialization.
*/
public void testIfDirectiveBasicInitialization() throws Exception {
IfDirectiveType directiveTypeObj = new IfDirectiveType();
assertTrue("If Directive type should be labled as 'if'", directiveTypeObj.getLabel().equals("if"));
Directive directiveObj = directiveTypeObj.constructDirective(4, "");
assertTrue("If directive is a multiline directive", directiveObj.isMultiline());
String content = "Write anything you want and this will just throw is back. But it should throw back the exact same thing";
directiveObj.setContent(content);
// Regardless of the javascriptGenerator mode, an IF directive just
// spits out its contents. Hence using null as
// the mode.
assertTrue("If directive should just spit out whatever was given to it", directiveObj.generateOutput(null)
.equals(content));
}