@Test void evaluateExpressionFollowedByTwoPipes() throws XWikiVelocityException { this.engine.initialize(new Properties()); assertEvaluate("$var||", "$var||"); }
@Override public void initialize(Properties overridingProperties) throws XWikiVelocityException { RuntimeInstance runtime = new RuntimeInstance(); runtime.setApplicationAttribute(ComponentManager.class.getName(), this.componentManager); initializeProperties(runtime, this.velocityConfiguration.getProperties(), overridingProperties); runtime.loadDirective(TryCatchDirective.class.getName()); try { runtime.init(); } catch (Exception e) { throw new XWikiVelocityException("Cannot start the Velocity engine", e); } this.runtimeInstance = runtime; this.globalEntry = new TemplateEntry(""); }
DefaultVelocityEngine implements VelocityEngine { @Override public void initialize(Properties overridingProperties) throws XWikiVelocityException { RuntimeInstance runtime = new RuntimeInstance(); runtime.setApplicationAttribute(ComponentManager.class.getName(), this.componentManager); initializeProperties(runtime, this.velocityConfiguration.getProperties(), overridingProperties); runtime.loadDirective(TryCatchDirective.class.getName()); try { runtime.init(); } catch (Exception e) { throw new XWikiVelocityException("Cannot start the Velocity engine", e); } this.runtimeInstance = runtime; this.globalEntry = new TemplateEntry(""); } }
DefaultVelocityEngine implements VelocityEngine { @Override public void initialize(Properties overridingProperties) throws XWikiVelocityException { RuntimeInstance runtime = new RuntimeInstance(); runtime.setApplicationAttribute(ComponentManager.class.getName(), this.componentManager); initializeProperties(runtime, this.velocityConfiguration.getProperties(), overridingProperties); runtime.loadDirective(TryCatchDirective.class.getName()); try { runtime.init(); } catch (Exception e) { throw new XWikiVelocityException("Cannot start the Velocity engine", e); } this.runtimeInstance = runtime; this.globalEntry = new TemplateEntry(""); }  }
DefaultVelocityEngine implements VelocityEngine { @Override public void initialize(Properties overridingProperties) throws XWikiVelocityException { RuntimeInstance runtime = new RuntimeInstance(); runtime.setApplicationAttribute(ComponentManager.class.getName(), this.componentManager); initializeProperties(runtime, this.velocityConfiguration.getProperties(), overridingProperties); runtime.loadDirective(TryCatchDirective.class.getName()); try { runtime.init(); } catch (Exception e) { throw new XWikiVelocityException("Cannot start the Velocity engine", e); } this.runtimeInstance = runtime; this.globalEntry = new TemplateEntry(""); }  @Override void initialize(Properties overridingProperties); @Override boolean evaluate(Context context, Writer out, String templateName, String source); @Override boolean evaluate(Context context, Writer out, String namespace, Reader source); @Override @Deprecated void clearMacroNamespace(String namespace); @Override void startedUsingMacroNamespace(String namespace); @Override void stoppedUsingMacroNamespace(String namespace); }
DefaultVelocityEngine implements VelocityEngine { @Override public void initialize(Properties overridingProperties) throws XWikiVelocityException { RuntimeInstance runtime = new RuntimeInstance(); runtime.setApplicationAttribute(ComponentManager.class.getName(), this.componentManager); initializeProperties(runtime, this.velocityConfiguration.getProperties(), overridingProperties); runtime.loadDirective(TryCatchDirective.class.getName()); try { runtime.init(); } catch (Exception e) { throw new XWikiVelocityException("Cannot start the Velocity engine", e); } this.runtimeInstance = runtime; this.globalEntry = new TemplateEntry(""); }  @Override void initialize(Properties overridingProperties); @Override boolean evaluate(Context context, Writer out, String templateName, String source); @Override boolean evaluate(Context context, Writer out, String namespace, Reader source); @Override @Deprecated void clearMacroNamespace(String namespace); @Override void startedUsingMacroNamespace(String namespace); @Override void stoppedUsingMacroNamespace(String namespace);  }