Examples of RemoteConfiguration


Examples of net.jsunit.configuration.RemoteConfiguration

            try {
                fetcher.fetch();
            } catch (IOException e) {
                logger.severe("Could not fetch remote configuration for URL " + remoteMachineURL.toString());
            }
            RemoteConfiguration retrievedRemoteConfiguration = fetcher.getRetrievedRemoteConfiguration();
            if (retrievedRemoteConfiguration != null)
                result.add(retrievedRemoteConfiguration);
        }
        cache.setCachedRemoteConfigurations(result);
        logger.info("Done fetching remote machine configurations");
View Full Code Here

Examples of net.jsunit.configuration.RemoteConfiguration

                urlId = Integer.parseInt(ids[0]);
                browserId = Integer.parseInt(ids[1]);
            } catch (Exception e) {
                return throwInvalidRemoteMachineBrowserCombinationException(ids, pair);
            }
            RemoteConfiguration configuration;
            try {
                configuration = source.getRemoteMachineConfigurationById(urlId);
            } catch (Exception e) {
                throw new InvalidBrowserSpecificationException(ids[0], ids[1]);
            }
            Browser browser = configuration.getBrowserById(browserId);
            if (browser == null)
                throw new InvalidBrowserSpecificationException(ids[0], ids[1]);
            merger.add(configuration.getRemoteURL(), browser);
        }
        return merger.getResult();
    }
View Full Code Here

Examples of net.jsunit.configuration.RemoteConfiguration

    }

    public List<RemoteRunSpecification> forBrowserSpecifications(List<BrowserSpecification> browserSpecs, List<RemoteConfiguration> allRemoteMachineConfigurations) throws InvalidBrowserSpecificationException {
        RemoteRunSpecificationMerger merger = new RemoteRunSpecificationMerger();
        for (BrowserSpecification specification : browserSpecs) {
            RemoteConfiguration remoteConfiguration = findRemoteConfigurationFor_in(specification, allRemoteMachineConfigurations);
            if (remoteConfiguration == null)
                throw new InvalidBrowserSpecificationException(specification.getBrowserType(), specification.getBrowserType());
            Browser browser = remoteConfiguration.getBrowserMatching(specification);
            if (browser == null)
                throw new InvalidBrowserSpecificationException(specification.getBrowserType(), specification.getBrowserType());
            merger.add(remoteConfiguration.getRemoteURL(), browser);
        }
        return merger.getResult();
    }
View Full Code Here

Examples of net.jsunit.configuration.RemoteConfiguration

        }
    }

    private List<RemoteConfiguration> someRemoteConfigs() throws IOException {
        List<RemoteConfiguration> remoteConfigs = new ArrayList<RemoteConfiguration>();
        remoteConfigs.add(new RemoteConfiguration(new URL("http://www.example.com"), new DummyRemoteConfigurationSource("http://www.example.com") {
            public String browserFileNames() {
                return "firefox.exe,mybrowser.exe";
            }

            public String osString() {
                return PlatformType.LINUX.getDisplayName();
            }
        }));
        remoteConfigs.add(new RemoteConfiguration(new URL("http://www.example.net"), new DummyRemoteConfigurationSource("http://www.example.com") {
            public String browserFileNames() {
                return "iexplore.exe,opera9.exe,xbrowser.exe";
            }

            public String osString() {
                return PlatformType.WINDOWS.getDisplayName();
            }
        }));
        remoteConfigs.add(new RemoteConfiguration(new URL("http://www.example.org"), new DummyRemoteConfigurationSource("http://www.example.com") {
            public String browserFileNames() {
                return "browser0.exe";
            }

            public String osString() {
View Full Code Here

Examples of net.jsunit.configuration.RemoteConfiguration

    }

    public void fetch() throws IOException {
        logger.info("Fetching remote machine configuration from " + remoteMachineURL.toString());
        RemoteConfigurationSource remoteSource = new RemoteConfigurationSource(hitter, remoteMachineURL.toString());
        retrievedRemoteConfiguration = new RemoteConfiguration(remoteMachineURL, remoteSource);
        logger.info("Done fetching remote machine configuration from " + remoteMachineURL.toString());
    }
View Full Code Here

Examples of org.kie.services.client.api.command.RemoteConfiguration

    private RemoteConfiguration config;
   
    URL url;
   
    RemoteRestRuntimeEngineBuilderImpl() {
        this.config = new RemoteConfiguration(Type.REST);
    }
View Full Code Here

Examples of org.kie.services.client.api.command.RemoteConfiguration

     * 3. User submits remote initial context
     * 4. User submits it
     */
   
    RemoteJmsRuntimeEngineBuilderImpl() {
        this.config = new RemoteConfiguration(Type.JMS);
    }
View Full Code Here

Examples of org.kie.services.client.api.command.RemoteConfiguration

        RemoteRuntimeEngineFactory johnRemoteEngineFactory = runtimeEngineBuilder
                .addUserName(johnUser)
                .addPassword(johnPassword)
                .buildFactory();
       
        RemoteConfiguration maryConfig = getConfig((RemoteJmsRuntimeEngineFactory)maryRemoteEngineFactory);
        assertEquals( maryUser, maryConfig.getUserName());
        assertEquals( maryPass, maryConfig.getPassword());
       
        RemoteConfiguration krisConfig = getConfig((RemoteJmsRuntimeEngineFactory)krisRemoteEngineFactory);
        assertEquals( krisUser, krisConfig.getUserName());
        assertEquals( krisPassword, krisConfig.getPassword());
       
        RemoteConfiguration johnConfig = getConfig((RemoteJmsRuntimeEngineFactory)johnRemoteEngineFactory);
        assertEquals( johnUser, johnConfig.getUserName());
        assertEquals( johnPassword, johnConfig.getPassword());
       
    }
View Full Code Here

Examples of org.kie.services.client.api.command.RemoteConfiguration

        return (RemoteConfiguration) configObj;
    }
   
    @Test
    public void remoteConfigurationCloneTest() throws Exception {
       RemoteConfiguration orig = new RemoteConfiguration("deploy",
               mock(ConnectionFactory.class),
               mock(Queue.class),
               mock(Queue.class),
               mock(Queue.class),
               "user", "pass");
       orig.setExtraJaxbClasses(new HashSet<Class<?>>());
       orig.setProcessInstanceId(123l);
       orig.setRemoteInitialContext(remoteInitialContext);
       orig.setTimeout(23l);
       orig.setUseSsl(false);
      
       setField(orig, "jmsSerializationType", 4);
      
       RemoteConfiguration copy = orig.clone();
      
       Field[] fields = RemoteConfiguration.class.getDeclaredFields();
       for( Field field : fields ) {
           field.setAccessible(true);
           Object origVal = field.get(orig);
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.