Examples of BundleVersionRepoPK


Examples of org.rhq.core.domain.bundle.BundleVersionRepoPK

            q = em.createNamedQuery(BundleVersionRepo.QUERY_FIND_BY_BUNDLE_VERSION_ID_NO_FETCH);
            q.setParameter("id", bundleVersion.getId());
            List<BundleVersionRepo> resultList = q.getResultList();
            assert resultList.size() == 2;
            BundleVersionRepoPK pk1 = new BundleVersionRepoPK(bundleVersion, repo1);
            BundleVersionRepoPK pk2 = new BundleVersionRepoPK(bundleVersion, repo2);
            if (resultList.get(0).getBundleVersionRepoPK().getRepo().equals(repo1)) {
                assert bvr1.equals(resultList.get(0));
                assert bvr2.equals(resultList.get(1));
                assert pk1.equals(resultList.get(0).getBundleVersionRepoPK());
                assert pk2.equals(resultList.get(1).getBundleVersionRepoPK());
            } else {
                assert bvr1.equals(resultList.get(1));
                assert bvr2.equals(resultList.get(0));
                assert pk1.equals(resultList.get(1).getBundleVersionRepoPK());
                assert pk2.equals(resultList.get(0).getBundleVersionRepoPK());
            }
        } catch (Throwable t) {
            t.printStackTrace();
            throw t;
        } finally {
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.