Index: TestSeveralSwitchCall.java =================================================================== RCS file: TestSeveralSwitchCall.java diff -N TestSeveralSwitchCall.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ TestSeveralSwitchCall.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,63 @@ +/* + * Copyright 2002,2004 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. + */ +/* + * Created on 18 janv. 2005 + */ +package org.apache.commons.jelly.core; + +import java.io.IOException; +import java.io.StringWriter; +import java.net.URL; + +import org.apache.commons.jelly.JellyContext; +import org.apache.commons.jelly.JellyException; +import org.apache.commons.jelly.Script; +import org.apache.commons.jelly.XMLOutput; +import org.apache.commons.jelly.parser.XMLParser; +import org.apache.commons.jelly.test.BaseJellyTest; +import org.xml.sax.SAXException; + +import junit.framework.TestCase; + +/** + * TODO Documentation + * @author Marc DeXeT + * @version 0.0 + */ +public class TestSeveralSwitchCall extends BaseJellyTest { + + /** + * @param name + */ + public TestSeveralSwitchCall(String name) { + super(name); + // TODO Auto-generated constructor stub + } + + public static void main(String[] args) { + junit.swingui.TestRunner.run(TestSeveralSwitchCall.class); + } + + public void testSeveralCall() throws Exception { + setUpScript("testSeveralSwitchCall.jelly"); + Script script = getJelly().compileScript(); + getJellyContext().setVariable("var","foo"); + script.run(getJellyContext(),getXMLOutput()); + assertEquals("defaultdefault",getJellyContext().getVariable("res")); + //script.run(context, output); + } + +} Index: testSeveralSwitchCall.jelly =================================================================== RCS file: testSeveralSwitchCall.jelly diff -N testSeveralSwitchCall.jelly --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ testSeveralSwitchCall.jelly 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +