Package org.rhq.core.domain.content

Examples of org.rhq.core.domain.content.RepoGroupType


            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();

                RepoGroupType groupType = new RepoGroupType("testCreateDeleteRepoGroupType");
                entityManager.persist(groupType);
                entityManager.flush();

                String groupName = "testCreateDeleteRepoGroup";
                RepoGroup group = repoManager.getRepoGroupByName(groupName);
View Full Code Here


            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();

                RepoGroupType groupType = new RepoGroupType("testCreateDuplicateRepoGroup");
                entityManager.persist(groupType);
                entityManager.flush();

                String groupName = "testCreateDuplicateRepoGroup";
View Full Code Here

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
                String name = "test-repo-type";

                RepoGroupType groupType = new RepoGroupType(name);
                entityManager.persist(groupType);
                entityManager.flush();

                // Test
                RepoGroupType type = repoManager.getRepoGroupTypeByName(overlord, name);
                assert type != null;
                assert type.getName().equals(name);

                // Cleanup
                type = entityManager.find(RepoGroupType.class, type.getId());
                entityManager.remove(type);
                entityManager.flush();
            }
        });
    }
View Full Code Here

            RepoGroup existingGroup = getRepoGroupByName(name);
            if (existingGroup == null) {
                existingGroup = new RepoGroup(name);
                existingGroup.setDescription(createMe.getDescription());

                RepoGroupType groupType = getRepoGroupTypeByName(subject, createMe.getTypeName());
                existingGroup.setRepoGroupType(groupType);

                // Don't let the whole report blow up if one of these fails,
                // but be sure to mention it in the report.
                try {
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.content.RepoGroupType

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.