PropertySet ps = new PropertySet();
ps.set( Property.main_MakeBackup, Standard.NO );
ps.set( Property.main_CompileCodeWriter, Standard.YES );
ps.set( Property.main_ExecuteCodeWriter, Standard.YES );
g.setCmdPropertySet( ps );
Template tm = g.generate( FileUtil.findFile( "org/jostraca/test/simple.jtm" ) );
RecordingUserMessageHandler rumh = (RecordingUserMessageHandler) g.getUserMessageHandler();
assertTrue( null != rumh );
assertEquals( 7, ((Vector)rumh.get( UserMessageHandler.DEBUG )).size() );
assertEquals( 2, ((Vector)rumh.get( UserMessageHandler.INFO )).size() );