Package ru.yandex.qatools.allure.model

Examples of ru.yandex.qatools.allure.model.ObjectFactory


    public static void writeTestSuiteResult(TestSuiteResult testSuite) {
        File testSuiteResultFile = new File(getResultsDirectory(), generateTestSuiteFileName());

        try {
            marshaller(TestSuiteResult.class).marshal(
                    new ObjectFactory().createTestSuite(testSuite),
                    testSuiteResultFile
            );
        } catch (Exception e) {
            LOGGER.error("Error while marshaling testSuite", e);
        }
View Full Code Here


    }

    @Test
    public void dataWithInvalidCharacterTest() throws Exception {
        result.setTitle("prefix " + character + " suffix");
        m.marshal(new ObjectFactory().createTestSuite(result), testSuiteResultFile);
        Validator validator = AllureModelUtils.getAllureSchemaValidator();
        validator.validate(new StreamSource(testSuiteResultFile));

        TestSuiteResult testSuite = JAXB.unmarshal(testSuiteResultFile, TestSuiteResult.class);
        assertThat(testSuite.getName(), is("name-and-кириллицей-also"));
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.allure.model.ObjectFactory

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.