Package org.arquillian.spacelift.tool

Examples of org.arquillian.spacelift.tool.InvalidToolException


            toolTypeAliases.put(tool, new ArrayList<String>(aliases));
            for (String alias : aliases) {
                toolClasses.put(alias, tool);
            }
        } catch (IllegalStateException e) {
            throw new InvalidToolException(e, "Unable to register tool {0}", tool);
        } catch (IllegalArgumentException e) {
            throw new InvalidToolException(e, "Unable to register tool {0}", tool);
        }

        return this;
    }
View Full Code Here


    @SuppressWarnings("unchecked")
    private Collection<String> getAliases(Tool<?, ?> toolInstance) throws InvalidToolException {
        try {
            return (Collection<String>) ALIASES_METHOD.invoke(toolInstance);
        } catch (IllegalArgumentException e) {
            throw new InvalidToolException(e, "Unable to register {0} tool, unable to get aliases.", toolInstance.getClass()
                .getName());
        } catch (IllegalAccessException e) {
            throw new InvalidToolException(e, "Unable to register {0} tool, unable to get aliases.", toolInstance.getClass()
                .getName());
        } catch (InvocationTargetException e) {
            throw new InvalidToolException(e, "Unable to register {0} tool, unable to get aliases.", toolInstance.getClass()
                .getName());
        }
    }
View Full Code Here

TOP

Related Classes of org.arquillian.spacelift.tool.InvalidToolException

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.