Package ProgramTesting.Exceptions

Examples of ProgramTesting.Exceptions.TestingInternalServerErrorException


        if (program.problem != null && program.problem.n > 0) {
            for (int i = 0; i < program.problem.n; ++i) { // тестируем программу тест за тестом до первой ошибки
                testProgram(program, i);
            }
        } else {
            throw new TestingInternalServerErrorException("System tests not found");
        }
    }
View Full Code Here


            // Если не работает запись на вход программы или чтение выхода
            // программы, то произошла ошибка времени выполнения.
        } catch (OutputReadException e) {
            // В блоке finally будет проверен код выхода программы.
        } catch (ProcessExecutingException ex) { // из executor.execute(), ошибка запуска программы
            throw new TestingInternalServerErrorException("Program running error: " + ex);
        } catch (TestingInternalServerErrorException e) { // при обработке входных/выходных данных, тесты не найдены или не могут быть прочитаны
            ise = true;
            throw e;
        } catch (ComparisonFailedException e) { // при обработке выходных данных, может быть ошибка времени выполнения
            throw new UnsuccessException(e.getMessage());
View Full Code Here

TOP

Related Classes of ProgramTesting.Exceptions.TestingInternalServerErrorException

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.