blob: a634e746e87c2f24b8a0d958b30e94db85303b2e [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.scxml.issues;
import java.net.URL;
import junit.framework.TestCase;
import org.apache.commons.scxml.SCXMLExecutor;
import org.apache.commons.scxml.SCXMLTestHelper;
/**
* Test cases for issue 64.
* WONTFIX
*/
public class Issue64Test extends TestCase {
public Issue64Test(String name) {
super(name);
}
private URL works, fails;
private SCXMLExecutor exec;
/**
* Set up instance variables required by this test case.
*/
@Override
public void setUp() {
works = this.getClass().getClassLoader().
getResource("org/apache/commons/scxml/issues/issue64-01.xml");
fails = this.getClass().getClassLoader().
getResource("org/apache/commons/scxml/issues/issue64-02.xml");
}
/**
* Tear down instance variables required by this test case.
*/
@Override
public void tearDown() {
works = fails = null;
exec = null;
}
public void test01issue64() throws Exception {
exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(works));
SCXMLTestHelper.assertPostTriggerState(exec, "show.bug", "end");
}
public void test02issue64() throws Exception {
exec = SCXMLTestHelper.getExecutor(SCXMLTestHelper.parse(fails));
SCXMLTestHelper.assertPostTriggerState(exec, "show.bug", "end");
}
}