Package edu.cmu.sphinx.util.props

Source Code of edu.cmu.sphinx.util.props.ComponentListTests

package edu.cmu.sphinx.util.props;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import org.testng.annotations.Test;

import edu.cmu.sphinx.util.props.ConfigurationManager;

/**
* DOCUMENT ME!
*
* @author Holger Brandl
*/
public class ComponentListTests {


    @Test
    public void testInvalidList() {
        ConfigurationManager cm = new ConfigurationManager();

        Map<String, Object> props = new HashMap<String, Object>();
        cm.addConfigurable(DummyProcessor.class, "dummyA");
        props.put(DummyFrontEnd.DATA_PROCS, Arrays.asList("dummyA, dummyB"));
        cm.addConfigurable(DummyFrontEnd.class, "dfe", props);

        cm.lookup("dfe");
    }

}
TOP

Related Classes of edu.cmu.sphinx.util.props.ComponentListTests

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.