Examples of ConfigurationSource


Examples of net.jsunit.configuration.ConfigurationSource

import net.jsunit.configuration.ConfigurationSource;

public class SerialDistributedTestTest extends TestCase {
    public void testTwoTestsInSerial() throws Throwable {
        final int port = new TestPortManager().newPort();
        ConfigurationSource source = new FunctionalTestConfigurationSource(port) {
            public String remoteMachineURLs() {
                return "http://localhost:" + port;
            }

            public String browserFileNames() {
View Full Code Here

Examples of net.jsunit.configuration.ConfigurationSource

        this.configurationSource = source;
    }

    public static Test suite() {
        TestSuite suite = new TestSuite();
        ConfigurationSource originalSource = CompositeConfigurationSource.resolve();
        ServerConfiguration configuration = new ServerConfiguration(originalSource);
        for (final Browser browser : configuration.getBrowsers())
            suite.addTest(new StandaloneTest(new DelegatingConfigurationSource(originalSource) {
                public String browserFileNames() {
                    return browser.getFullFileName();
View Full Code Here

Examples of net.jsunit.configuration.ConfigurationSource

        registerInstance(this);
    }

    public static void main(String args[]) {
        try {
            ConfigurationSource source = CompositeConfigurationSource.forArguments(args);
            JsUnitServer server = new JsUnitServer(new ServerConfiguration(source));
            server.start();
        } catch (Throwable t) {
            t.printStackTrace();
        }
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            ConfigurationSource source = new ConfigurationSource(in);
            Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.start(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            ConfigurationSource source = new ConfigurationSource(in);
            Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.setConfiguration(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            final InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            final ConfigurationSource source = new ConfigurationSource(in);
            final Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.start(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (final Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            ConfigurationSource source = new ConfigurationSource(in);
            Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.start(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            final InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            final ConfigurationSource source = new ConfigurationSource(in);
            final Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.start(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (final Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationFactory.ConfigurationSource

        LOGGER.debug("Remote request to reconfigure from config text.");

        try {
            final InputStream in = new ByteArrayInputStream(
                    configText.getBytes(charsetName));
            final ConfigurationSource source = new ConfigurationSource(in);
            final Configuration updated = ConfigurationFactory.getInstance()
                    .getConfiguration(source);
            loggerContext.start(updated);
            LOGGER.debug("Completed remote request to reconfigure from config text.");
        } catch (final Exception ex) {
View Full Code Here

Examples of org.apache.logging.log4j.core.config.ConfigurationSource

    }

    @Override
    public Configuration reconfigure() {
        try {
            final ConfigurationSource source = getConfigurationSource().resetInputStream();
            if (source == null) {
                return null;
            }
            final XmlConfiguration config = new XmlConfiguration(source);
            return (config.rootElement == null) ? null : config;
View Full Code Here
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.