Package intellijcoder.main

Examples of intellijcoder.main.IntelliJCoderException


        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);

        context.checking(new Expectations(){{
            allowing(workspaceManager).createProblemWorkspace(with(any(Problem.class)));
            will(throwException(new IntelliJCoderException("big error", null)));
        }});
        try {
            client.createProblemWorkspace(sampleProgram());
            fail("should rethrow exception");
        } catch (IntelliJCoderException e) {
View Full Code Here


        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);

        context.checking(new Expectations(){{
            allowing(workspaceManager).getSolutionSource(with(any(String.class)));
            will(throwException(new IntelliJCoderException("big error", null)));
        }});
        try {
            client.getSolutionSource(someClassName());
            fail("should rethrow exception");
        } catch (IntelliJCoderException e) {
View Full Code Here

        try {
            InputStream inputStream = network.getUrlInputStream(TOPCODER_JNLP_URL);
            ArenaAppletInfo appletInfo = fileParser.parse(inputStream);
            return jarDownloader.loadArenaJars(appletInfo);
        } catch (IOException e) {
            throw new IntelliJCoderException("Failed to load jnlp file", e);
        }
    }
View Full Code Here

                                appletInfo.getMainClass()));
            arguments.addAll(appletInfo.getArguments());

            processLauncher.launch(arguments.toArray(new String[arguments.size()]));
        } catch (IOException e) {
            throw new IntelliJCoderException(FAILED_TO_START_PROCESS_MESSAGE, e);
        }
    }
View Full Code Here

    private void saveSettings(Properties properties) throws IntelliJCoderException {
        try {
            properties.store(fileSystem.getFileOutputStream(TOP_CODER_SETTINGS_FILE), "");
        } catch (IOException e) {
            throw new IntelliJCoderException(FAILED_TO_SAVE_SETTINGS_MESSAGE, e);
        }
    }
View Full Code Here

        Properties properties = new Properties();
        if(fileSystem.isFileExists(TOP_CODER_SETTINGS_FILE)) {
            try {
                properties.load(fileSystem.getFileInputStream(TOP_CODER_SETTINGS_FILE));
            } catch (IOException e) {
                throw new IntelliJCoderException(FAILED_TO_LOAD_SETTINGS_MESSAGE, e);
            }
        }
        return properties;
    }
View Full Code Here

            for(String url: appletInfo.getClassPathItems()) {
                String filename = downloadFile(url, tempDirectory);
                localAppletInfo.addClassPathItem(filename);
            }
        } catch (IOException e) {
            throw new IntelliJCoderException(FAILED_TO_GET_JAR_MESSAGE, e);
        }
        return localAppletInfo;
    }
View Full Code Here

TOP

Related Classes of intellijcoder.main.IntelliJCoderException

Copyright © 2018 www.massapicom. 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.