Package org.rhq.test.arquillian

Examples of org.rhq.test.arquillian.ResourceComponentInstances


             fields.add(f);
        }
    }
   
    private void collectResourceComponentFields(Field f, Set<Field> fields) {
        ResourceComponentInstances a = f.getAnnotation(ResourceComponentInstances.class);
        if (a != null) {
            ResourceType rt = getResourceType(a.plugin(), a.resourceType());
            Class<?> resourceComponentClass = getResourceComponentClass(rt);
            if (hasType(f, Set.class, resourceComponentClass)) {
                fields.add(f);
            }
        }
View Full Code Here


                "Could not enrich the test class with the discovered resources on field " + f, e);
        }
    }

    private void assignResourceComponentField(Object testCase, Field f) {
        ResourceComponentInstances config = f.getAnnotation(ResourceComponentInstances.class);
       
        String pluginName = config.plugin();
        String resourceTypeName = config.resourceType();

        ResourceType resourceType = getResourceType(pluginName, resourceTypeName);
        Class<?> componentClass = getResourceComponentClass(resourceType);
       
        if (hasType(f, Set.class, componentClass)) {               
View Full Code Here

TOP

Related Classes of org.rhq.test.arquillian.ResourceComponentInstances

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.