@Test public void testAdd__Handle__rComplex() { String result = KnowledgeHelperFixerTest.fixer.fix( "something update( myObject); other" ); assertEqualsIgnoreWhitespace( "something drools.update( myObject); other", result ); result = KnowledgeHelperFixerTest.fixer.fix( "something update ( myObject );" ); assertEqualsIgnoreWhitespace( "something drools.update( myObject );", result ); result = KnowledgeHelperFixerTest.fixer.fix( " update( myObject ); x" ); assertEqualsIgnoreWhitespace( " drools.update( myObject ); x", result ); result = KnowledgeHelperFixerTest.fixer.fix( "xxupdate(myObject ) x" ); assertEqualsIgnoreWhitespace( "xxupdate(myObject ) x", result ); }
public static String fix(final String raw) { if ( raw == null || "".equals( raw.trim() )) { return raw; } MacroProcessor macroProcessor = new MacroProcessor(); macroProcessor.setMacros( macros ); return macroProcessor.parse( raw ); }
KnowledgeHelperFixer { public static String fix(final String raw) { if ( raw == null || "".equals( raw.trim() )) { return raw; } MacroProcessor macroProcessor = new MacroProcessor(); macroProcessor.setMacros( macros ); return macroProcessor.parse( raw ); } }
KnowledgeHelperFixer { public static String fix(final String raw) { if ( raw == null || "".equals( raw.trim() )) { return raw; } MacroProcessor macroProcessor = new MacroProcessor(); macroProcessor.setMacros( macros ); return macroProcessor.parse( raw ); }  }
KnowledgeHelperFixer { public static String fix(final String raw) { if ( raw == null || "".equals( raw.trim() )) { return raw; } MacroProcessor macroProcessor = new MacroProcessor(); macroProcessor.setMacros( macros ); return macroProcessor.parse( raw ); }  static String fix(final String raw); }
KnowledgeHelperFixer { public static String fix(final String raw) { if ( raw == null || "".equals( raw.trim() )) { return raw; } MacroProcessor macroProcessor = new MacroProcessor(); macroProcessor.setMacros( macros ); return macroProcessor.parse( raw ); }  static String fix(final String raw);  }