Package com.consol.citrus.admin.exception

Examples of com.consol.citrus.admin.exception.CitrusAdminRuntimeException


                    FileUtils.writeToFile(result.toString(), file);
                    return;
                }
            }
        } catch (IOException e) {
            throw new CitrusAdminRuntimeException("Unable to read update bean definition transformation source", e);
        } catch (TransformerException e) {
            throw new CitrusAdminRuntimeException("Failed to update bean definition", e);
        }
    }
View Full Code Here


                    FileUtils.writeToFile(result.toString(), file);
                    return;
                }
            }
        } catch (IOException e) {
            throw new CitrusAdminRuntimeException("Unable to read update bean definition transformation source", e);
        } catch (TransformerException e) {
            throw new CitrusAdminRuntimeException("Failed to update bean definition", e);
        }
    }
View Full Code Here

            StringResult result = new StringResult();
            transformer.transform(new StringSource(jaxbContent), result);

            return result.toString();
        } catch (IOException e) {
            throw new CitrusAdminRuntimeException("Unable to read update bean definition transformation source", e);
        } catch (TransformerException e) {
            throw new CitrusAdminRuntimeException("Failed to update bean definition", e);
        }
    }
View Full Code Here

                runTestBuilder(testClassName, methodName, testClass);
            } else if (AbstractTestNGCitrusTest.class.isAssignableFrom(testClass)) {
                runTest(testClassName, methodName, testClass);
            }
        } catch (ClassNotFoundException e) {
            throw new CitrusAdminRuntimeException("Failed to execute test case as it is not part of classpath: " + packageName + "." + testClassName, e);
        } catch (Exception e) {
            throw new CitrusAdminRuntimeException("Failed to load Java source " + packageName + "." + testClassName, e);
        } finally {
            Map<String, TestReporter> reporters = applicationContextHolder.getApplicationContext().getBeansOfType(TestReporter.class);
            for (TestReporter reporter : reporters.values()) {
                reporter.clearTestResults();
            }
View Full Code Here

        suites.add(suite);
        testng.setXmlSuites(suites);
        testng.run();

        if (testng.hasFailure()) {
            throw new CitrusAdminRuntimeException("Citrus test run failed!");
        }
    }
View Full Code Here

                    return method.getName();
                }
            }
        }

        throw new CitrusAdminRuntimeException("Could not find method with name or Citrus annotation name: " + methodName);
    }
View Full Code Here

        } else if (springBean.getClazz().equals(NodeMappingDataDictionary.class.getName())) {
            library = new ObjectFactory().createXmlDataDictionary();
        } else if (springBean.getClazz().equals(JsonMappingDataDictionary.class.getName())) {
            library = new ObjectFactory().createJsonDataDictionary();
        } else {
            throw new CitrusAdminRuntimeException(String.format("Failed to convert Spring bean of type '%s' to data dictionary model object", springBean.getClazz()));
        }

        for (Property property : springBean.getProperties()) {
            if (property.getName().equals("mappings")) {
                for (Entry entry : property.getMap().getEntries()) {
View Full Code Here

                library = matcherLibrarySpringBeanConverter.convert(springBean);
            }
        }

        if (library == null) {
            throw new CitrusAdminRuntimeException(String.format("Unable to find validation matcher library definition for id '%s'", id));
        }

        return library;
    }
View Full Code Here

    public JAXBContext createJAXBContextByPath(String... paths) {
        String contextPath = buildContextPath(paths);
        try {
            return JAXBContext.newInstance(buildContextPath(contextPath));
        } catch (JAXBException e) {
            throw new CitrusAdminRuntimeException(String.format("Error creating the JAXB context using path '%s'", contextPath), e);
        }
    }
View Full Code Here

    public <T> void marshal(JAXBContext context, T element, Result result) {
        try {
            Marshaller marshaller = getMarshaller(context);
            marshaller.marshal(element, result);
        } catch (JAXBException e) {
            throw new CitrusAdminRuntimeException("Could not marshall element", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.admin.exception.CitrusAdminRuntimeException

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.