Examples of PageControl


Examples of org.rhq.core.domain.util.PageControl

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

        Subject overlord = subjectManager.getOverlord();
        PageControl pageControl = new PageControl(0, 100);

        PageList<PackageVersionComposite> pageList = contentUIManager.getPackageVersionCompositesByFilter(overlord,
            resource.getId(), null, pageControl);

        assert pageList != null : "Null page list returned from query";
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

            // Do not remove this sleep -- the previous is is asynchronous
            // and the sleep "guarantees" that data is actually hitting the db
            Thread.sleep(10000);

            PageList<CallTimeDataComposite> list1 = callTimeDataManager.findCallTimeDataForResource(overlord,
                schedule1.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());
            PageList<CallTimeDataComposite> list2 = callTimeDataManager.findCallTimeDataForResource(overlord,
                schedule2.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());

            assert list1 != null;
            assert list2 != null;

            assert list1.size() == 1 : "List 1 returned " + list1.size() + " entries, expected was 1";
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

            // Do not remove this sleep -- the previous is is asynchronous
            // and the sleep "guarantees" that data is actually hitting the db
            Thread.sleep(10000);

            PageList<CallTimeDataComposite> list1 = callTimeDataManager.findCallTimeDataForResource(overlord,
                schedule1.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());
            PageList<CallTimeDataComposite> list2 = callTimeDataManager.findCallTimeDataForResource(overlord,
                schedule2.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());

            assert list1 != null;
            assert list2 != null;

            assert list1.size() == 1 : "List 1 returned " + list1.size() + " entries, expected was 1";
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

            // Do not remove this sleep -- the previous is is asynchronous
            // and the sleep "guarantees" that data is actually hitting the db
            Thread.sleep(10000);

            PageList<CallTimeDataComposite> list = callTimeDataManager.findCallTimeDataRawForResource(overlord,
                schedule1.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());

            assert list != null;

            assert list.size() == 4 : "List 1 returned " + list.size() + " entries, expected was 4";
            assert list.get(0).getTotal() == 2 : "First value must be total = 2, but was "+list.get(0).getTotal();
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

        criteria.fetchConfiguration(true);
        criteria.fetchTemplate(true);

        // filter out unsortable fields (i.e. fields sorted client-side only)
        PageControl pageControl = getPageControl(request);
        pageControl.removeOrderingField(ATTR_BASE_DIR_STRING);
        pageControl.removeOrderingField(ATTR_CHANGE_SET_CTIME);
        pageControl.removeOrderingField(ATTR_CHANGE_SET_VERSION);
        pageControl.removeOrderingField(ATTR_TEMPLATE);
        criteria.setPageControl(pageControl);

        return criteria;
    }
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

        }
    }

    @Test(enabled = TESTS_ENABLED)
    public void testMergeSyncReport() throws Exception {
        PageControl pc;
        int repoId = 0;
        int contentSourceId = 0;

        try {
            // create content source type
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

    }

    @Test(enabled = TESTS_ENABLED)
    public void testMergeSyncReportAddRemoveUpdate() throws Exception {
        List<PackageVersionContentSource> inCS;
        PageControl pc = PageControl.getUnlimitedInstance();
        int contentSourceId = 0;
        int repoId = 0;

        try {
            // create content source type and content source
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

        }
    }

    @Test(enabled = TESTS_ENABLED)
    public void testMergeSyncReportAddRemoveUpdateWithRepo() throws Exception {
        PageControl pc = PageControl.getUnlimitedInstance();
        int contentSourceId = 0;
        int repoId = 0;

        try {
            // create content source type and content source and repo
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

        }
    }

    @Test(enabled = TESTS_ENABLED)
    public void testDeleteContentSource() throws Exception {
        PageControl pc = PageControl.getUnlimitedInstance();
        // getTransactionManager().begin();
        try {
            ContentSourceType type = null;
            ContentSource contentSource = null;
View Full Code Here

Examples of org.rhq.core.domain.util.PageControl

                } else {
                    assert oob.getOobFactor() == 200 : "Expected: 200, was " + oob.getOobFactor();
                }
            }

            PageControl pc = PageControl.getUnlimitedInstance();

            List<MeasurementOOBComposite> comps = oobManager.getSchedulesWithOOBs(overlord, null, null, null, pc);
            //         System.out.println("Composites: " + comps);
            assert comps.size() == 2 : "Expected 2 composites, but got " + comps.size();
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.