Permalink
Browse files

LPS-26927 Fix test com.liferay.portal.velocity.VelocityTemplateTest.

  • Loading branch information...
1 parent 3b8bead commit 40a514123111084915550c08130e98e5796a13f0 tinatian committed with brianchandotcom Apr 24, 2012
@@ -63,6 +63,8 @@ public void clearCache(String templateId) {
}
public void destroy() {
+ StringResourceLoader.clearRepositories();
+
_restrictedVelocityContext = null;
_standardVelocityContext = null;
_velocityEngine = null;
@@ -127,6 +127,11 @@ public void setUp() throws Exception {
_velocityEngine.init();
}
+ @Override
+ public void tearDown() throws Exception {
+ StringResourceLoader.clearRepositories();
+ }
+
public void testGet() throws Exception {
Template template = new VelocityTemplate(
_TEMPLATE_FILE_NAME, null, null, null, null, _velocityEngine,

0 comments on commit 40a5141

Please sign in to comment.