Author: dion Date: Mon Apr 3 04:27:10 2006 New Revision: 391009 URL: http://svn.apache.org/viewcvs?rev=391009&view=rev Log: (empty)
Added: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java Added: jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java?rev=391009&view=auto ============================================================================== --- jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java (added) +++ jakarta/commons/proper/jexl/trunk/src/test/org/apache/commons/jexl/ScriptFactoryTest.java Mon Apr 3 04:27:10 2006 @@ -0,0 +1,38 @@ +/* + * Copyright 2002-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.jexl; + +import junit.framework.TestCase; + +public class ScriptFactoryTest extends TestCase { + + /** + * Creates a new test case. + * @param name the test case name. + */ + public ScriptFactoryTest(String name) { + super(name); + } + + /** + * Ensure the factory can create a script from a String + * @throws Exception on a parse error + */ + public void testCreateFromString() throws Exception { + String code = ";"; + assertNotNull("No script created", ScriptFactory.createScript(code)); + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]