Package org.rhq.enterprise.server.test

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


    protected void afterMethod() throws Exception {
        unprepareServerPluginService();
    }

    public void testAddTags() {
        executeInTransaction(new TransactionCallback() {

            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(1000);
                tags = tagManager.addTags(overlord, tags);
View Full Code Here


            }
        });
    }

    public void addTagsShouldSilentlyHandleTagDuplicates() {
        executeInTransaction(new TransactionCallback() {

            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(5);
                tags = tagManager.addTags(overlord, tags);
View Full Code Here

            }
        });
    }

    public void testRemoveTags() {
        executeInTransaction(new TransactionCallback() {

            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(11);
                tags = tagManager.addTags(overlord, tags);
View Full Code Here

            }
        });
    }

    public void testUpdateResourceTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Resource resource = SessionTestHelper.createNewResource(em, getRandomString());
                resource.setTags(emptyTagSet());
                Set<Tag> tags = generateTagSet(7);
View Full Code Here

            }
        });
    }

    public void testUpdateResourceGroupTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                ResourceGroup resourceGroup = createResourceGroup();
                resourceGroup.setTags(emptyTagSet());
                Set<Tag> tags = generateTagSet(7);
View Full Code Here

            }
        });
    }

    public void testUpdateBundleTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(7);
                Bundle bundle = createBundle();
                bundle.setTags(emptyTagSet());
View Full Code Here

            }
        });
    }

    public void testUpdateBundleVersionTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(7);
                BundleVersion bundleVersion = createBundleVersion();
                bundleVersion.setTags(emptyTagSet());
View Full Code Here

            }
        });
    }

    public void testUpdateBundleDeploymentTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(7);
                BundleDeployment bundleDeployment = createBundleDeployment();
                bundleDeployment.setTags(emptyTagSet());
View Full Code Here

            }
        });
    }

    public void testUpdateBundleDestinationTags() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                Set<Tag> tags = generateTagSet(7);
                BundleDestination bundleDestination = createBundleDestination();
                bundleDestination.setTags(emptyTagSet());
View Full Code Here

    }

    @Test(enabled = ENABLE_TESTS)
    public void testGetResourceAvailabilities() throws Exception {

        executeInTransaction(false, new TransactionCallback() {
            public void execute() throws Exception {
                setupResource();
            }
        });
        // platform: UNKNOWN(0) -->       
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.