/*
* Copyright 2004, 2005, 2006 Odysseus Software GmbH
*
* 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 de.odysseus.calyxo.control.conf.impl;
import java.net.URL;
import de.odysseus.calyxo.base.test.TestModuleContext;
import de.odysseus.calyxo.control.conf.ControlConfig;
import junit.framework.TestCase;
/**
*
* @author Christoph Beck
*/
public class ControlConfigParserTest extends TestCase {
/**
* Constructor for ControlConfigParserTest.
* @param name
*/
public ControlConfigParserTest(String name) {
super(name);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(ControlConfigParserTest.class);
}
public void test1() throws Exception {
URL url = getClass().getResource("test1.xml");
TestModuleContext context = new TestModuleContext("test");
ControlConfigParser parser = new ControlConfigParser(context);
ControlConfig root = parser.parse(new URL[]{url});
assertNotNull(root);
}
}