Examples of persistPackage()


Examples of org.rhq.enterprise.server.content.ContentManagerLocal.persistPackage()

        List<PackageType> packageTypes = contentMgr.findPackageTypes(subjectMgr.getOverlord(), resourceTypeName,
            pluginName);
        Package pkg = new Package(packageName, packageTypes.get(0));

        contentMgr.persistPackage(pkg);
    }

    ResourceGroup createResourceGroup(String groupName, String resourceTypeName, String pluginName, boolean recursive)
        throws Exception {
        SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();
View Full Code Here

Examples of org.rhq.enterprise.server.content.ContentManagerLocal.persistPackage()

        when(mockEntityManager.createNamedQuery(eq(Architecture.QUERY_FIND_BY_NAME))).thenReturn(mockQuery);
        when(mockEntityManager.createNamedQuery(eq(Package.QUERY_FIND_BY_NAME_PKG_TYPE_ID))).thenReturn(mockQuery);

        ContentManagerLocal mockContentManager = mock(ContentManagerLocal.class);
        Package mockPackage = mock(Package.class);
        when(mockContentManager.persistPackage(isNotNull(Package.class))).thenReturn(mockPackage);
       
        when(mockEntityManager.find(eq(Package.class), any())).thenReturn(mockPackage);
        when(mockPackage.getPackageType()).thenReturn(mockPackageType);

        PackageVersion mockPackageVersion = mock(PackageVersion.class);
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.