Author: kkolinko Date: Thu Nov 15 04:59:41 2012 New Revision: 1409646 URL: http://svn.apache.org/viewvc?rev=1409646&view=rev Log: Validate that the path to the file is correct.
Modified: tomcat/trunk/test/org/apache/jasper/tagplugins/jstl/core/AbstractTestTag.java Modified: tomcat/trunk/test/org/apache/jasper/tagplugins/jstl/core/AbstractTestTag.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/tagplugins/jstl/core/AbstractTestTag.java?rev=1409646&r1=1409645&r2=1409646&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/jasper/tagplugins/jstl/core/AbstractTestTag.java (original) +++ tomcat/trunk/test/org/apache/jasper/tagplugins/jstl/core/AbstractTestTag.java Thu Nov 15 04:59:41 2012 @@ -18,6 +18,7 @@ package org.apache.jasper.tagplugins.jst import java.io.File; +import org.junit.Assert; import org.junit.Before; import org.apache.catalina.Context; @@ -48,6 +49,7 @@ public abstract class AbstractTestTag ex // Configure the use of the plug-in rather than the standard impl File plugin = new File( "java/org/apache/jasper/tagplugins/jstl/tagPlugins.xml"); + Assert.assertTrue(plugin.isFile()); ctx.getResources().createWebResourceSet( WebResourceRoot.ResourceSetType.POST, plugin.getAbsolutePath(), "/WEB-INF/tagPlugins.xml", ""); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org