Package org.rhq.plugins.jbossas5.script

Examples of org.rhq.plugins.jbossas5.script.ScriptComponent.start()


        PackageType mockPackageType = mock(PackageType.class);
        when(mockPackageType.getName()).thenReturn("script");

        //create object to test and inject required dependencies
        ScriptComponent objectUnderTest = new ScriptComponent();
        objectUnderTest.start(mockResourceContext);

        //run code under test
        Set<ResourcePackageDetails> result = objectUnderTest.discoverDeployedPackages(mockPackageType);

        //verify the results (Assert and mock verification)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.