Package org.rhq.test.arquillian

Examples of org.rhq.test.arquillian.DiscoveredResources


    private PluginContainer getPluginContainer() {
        return pluginContainer.get();
    }
   
    private void collectDiscoveredResourceFields(Field f, Set<Field> fields) {
        DiscoveredResources a = f.getAnnotation(DiscoveredResources.class);
        if (a != null && hasType(f, Set.class, Resource.class)) {
             fields.add(f);
        }
    }
View Full Code Here


            fields.add(f);
        }
    }
   
    private void assignDiscoveredResourceField(Object testCase, Field f) {
        DiscoveredResources config = f.getAnnotation(DiscoveredResources.class);
       
        String pluginName = config.plugin();
        String resourceTypeName = config.resourceType();
       
        ResourceType resourceType = getPluginContainer().getPluginManager().getMetadataManager().getType(resourceTypeName, pluginName);
        if (resourceType == null) {
            return;
        }
View Full Code Here

TOP

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

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.