Examples of TransactionCallback


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

        driftDef.setDriftHandlingMode(normal);
        driftDef.setInterval(2400L);
        driftDef.setBasedir(new DriftDefinition.BaseDirectory(fileSystem, "/foo/bar/test"));
        driftDef.setResource(resource);

        executeInTransaction(false, new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                em.persist(driftDef);
            }
        });
View Full Code Here

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

        driftDef.setInterval(2400L);
        driftDef.setBasedir(new DriftDefinition.BaseDirectory(fileSystem, "/foo/bar/test"));
        driftDef.setResource(resource);

        // persist the change set and drift definition
        executeInTransaction(false, new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                em.persist(changeSet);
                em.persist(driftDef);
                em.persist(driftSet);
View Full Code Here

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

        unprepareScheduler();
    }

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

            public void execute() throws Exception {
                PageList<Repo> repos = repoManager.findRepos(overlord, new PageControl());
                int origsize = 0;
                if (repos != null) {
View Full Code Here

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

        });
    }

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

            public void execute() throws Exception {

                Repo repo = new Repo("testCreateDeleteRepo");
                int id = repoManager.createRepo(overlord, repo).getId();
View Full Code Here

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

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

        });
    }

    @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

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

        });
    }

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

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
View Full Code Here

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

        });
    }

    @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

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

        });
    }

    @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

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

        });
    }

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

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();
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.