Package org.rhq.enterprise.server.test

Examples of org.rhq.enterprise.server.test.TransactionCallback


        });
    }

    @Test(enabled = ENABLED)
    public void createDeleteRepoGroup() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
View Full Code Here


        });
    }

    @Test(enabled = ENABLED)
    public void createFindDeleteCandidateRepo() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                Repo repo = new Repo("test create candidate repo");
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void createDuplicateRepoGroup() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void getRepoGroupByNameNoGroup() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                RepoGroup group = repoManager.getRepoGroupByName("foo");
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void getRepoGroupTypeByName() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
                String name = "test-repo-type";
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void addRepoRelationship() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void findCandidatesByContentProvider() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                String candidateRepoName = "candidate with source";
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void importCandidateRepo() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                Repo candidate = new Repo("create me");
                candidate.setCandidate(true);
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void importCandidateRepoBadId() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                try {
                    List<Integer> repoIds = new ArrayList<Integer>(1);
View Full Code Here

        });
    }

    @Test(enabled = ENABLED)
    public void importNonCandidateRepo() throws Exception {
        executeInTransaction(new TransactionCallback() {

            public void execute() throws Exception {

                Repo nonCandidate = new Repo("create me");
                Repo created = repoManager.createRepo(overlord, nonCandidate);
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.test.TransactionCallback

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.