Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-velocity Wiki" 
for change notification.

The following page has been changed by ShinobuKawaiYoshida:
http://wiki.apache.org/jakarta-velocity/TestingVelocity

The comment on the change is:
refactor & fix

------------------------------------------------------------------------------
  Here is what each class looks like:
   * !VelocityTestTool.java
  {{{
+ import org.apache.velocity.app.Velocity;
+ import org.apache.velocity.app.VelocityEngine;
+ import org.apache.velocity.runtime.RuntimeConstants;
+ import org.apache.velocity.tools.generic.log.CommonsLogLogSystem;
+ 
+ public class VelocityTestTool
+ {
+ 
+     public static VelocityEngine newEngine()
+     {
+         VelocityEngine engine = new VelocityEngine();
+ 
+         engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, 
CommonsLogLogSystem.class.getName());
+         engine.setProperty("runtime.log.logsystem.commons.logging.name", 
"test.velocity.log");
+ 
+         return engine;
+     }
+ 
+     public static void initSingletonLogger()
+     {
+         Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, 
CommonsLogLogSystem.class.getName());
+         Velocity.setProperty("runtime.log.logsystem.commons.logging.name", 
"test.velocity.log");
+     }
+ 
+ }
+ }}}
+  * !AbstractVelocityTestCase.java
+ {{{
  import java.io.IOException;
  import java.io.StringWriter;
  
@@ -61, +89 @@

  import org.apache.velocity.exception.ParseErrorException;
  import org.apache.velocity.exception.ResourceNotFoundException;
  
- public class VelocityTestTool
- {
- 
-     public static VelocityEngine newEngine()
-     {
-         VelocityEngine engine = new VelocityEngine();
- 
-         engine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, 
"org.apache.velocity.tools.generic.log.CommonsLogLogSystem");
-         engine.setProperty("runtime.log.logsystem.commons.logging.name", 
"test.velocity.log");
- 
-         return engine;
-     }
- 
-     public static void initSingletonLogger()
-     {
-         Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS, 
"org.apache.velocity.tools.generic.log.CommonsLogLogSystem");
-         Velocity.setProperty("runtime.log.logsystem.commons.logging.name", 
"test.velocity.log");
-     }
- 
- }
- }}}
-  * !AbstractVelocityTestCase.java
- {{{
  public abstract class AbstractVelocityTestCase extends TestCase
  {
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to