test_class.file: model/src/test/java/com/abiquo/server/core/pricing/PricingTierDAOTest.java
test_class.identifier: PricingTierDAOTest
test_class.superclass: extends DefaultDAOTestBase<PricingTierDAO, PricingTier>
test_case.body: @Test
      public void existAnyOtherWithTier()
      {
          PricingTier pt1 = eg().createUniqueInstance();
          PricingTier pt2 = eg().createUniqueInstance();
  
          ds().persistAll(pt1.getTier().getDatacenter(), pt1.getTier(),
              pt1.getPricingTemplate().getCurrency(), pt1.getPricingTemplate(), pt1,
              pt2.getTier().getDatacenter(), pt2.getTier(), pt2.getPricingTemplate().getCurrency(),
              pt2.getPricingTemplate(), pt2);
  
          PricingTierDAO dao = createDaoForRollbackTransaction();
  
          assertFalse(dao.existAnyOtherWithTier(pt1, pt1.getTier(), pt1.getPricingTemplate()));
  
          assertFalse(dao.existAnyOtherWithTier(pt1, pt1.getTier(), pt2.getPricingTemplate()));
  
      }
test_case.class_method_signature: PricingTierDAOTest.existAnyOtherWithTier()
test_case.full_signature: @Test public void existAnyOtherWithTier()
test_case.identifier: existAnyOtherWithTier
test_case.invocations: createUniqueInstance eg createUniqueInstance eg persistAll ds getDatacenter getTier getTier getCurrency getPricingTemplate getPricingTemplate getDatacenter getTier getTier getCurrency getPricingTemplate getPricingTemplate createDaoForRollbackTransaction assertFalse existAnyOtherWithTier getTier getPricingTemplate assertFalse existAnyOtherWithTier getTier getPricingTemplate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void existAnyOtherWithTier()
focal_class.file: model/src/main/java/com/abiquo/server/core/pricing/PricingTierDAO.java
focal_class.identifier: PricingTierDAO
focal_class.class_method_signature: PricingTierDAO.PricingTierDAO()
focal_class.full_signature: public  PricingTierDAO()
focal_class.identifier: PricingTierDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PricingTierDAO()
focal_class.class_method_signature: PricingTierDAO.PricingTierDAO(final EntityManager entityManager)
focal_class.full_signature: public  PricingTierDAO(final EntityManager entityManager)
focal_class.identifier: PricingTierDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  PricingTierDAO(final EntityManager entityManager)
focal_class.class_method_signature: PricingTierDAO.findPricingTiers(final PricingTemplate pricing)
focal_class.full_signature: public Collection<PricingTier> findPricingTiers(final PricingTemplate pricing)
focal_class.identifier: findPricingTiers
focal_class.modifiers: public
focal_class.parameters: (final PricingTemplate pricing)
focal_class.return: Collection<PricingTier>
focal_class.signature: Collection<PricingTier> findPricingTiers(final PricingTemplate pricing)
focal_class.class_method_signature: PricingTierDAO.findPricingTiers(final Tier tier)
focal_class.full_signature: public Collection<PricingTier> findPricingTiers(final Tier tier)
focal_class.identifier: findPricingTiers
focal_class.modifiers: public
focal_class.parameters: (final Tier tier)
focal_class.return: Collection<PricingTier>
focal_class.signature: Collection<PricingTier> findPricingTiers(final Tier tier)
focal_class.class_method_signature: PricingTierDAO.findPricingTier(final Tier tier, final PricingTemplate pricing)
focal_class.full_signature: public PricingTier findPricingTier(final Tier tier, final PricingTemplate pricing)
focal_class.identifier: findPricingTier
focal_class.modifiers: public
focal_class.parameters: (final Tier tier, final PricingTemplate pricing)
focal_class.return: PricingTier
focal_class.signature: PricingTier findPricingTier(final Tier tier, final PricingTemplate pricing)
focal_class.class_method_signature: PricingTierDAO.sameTier(final Tier tier)
focal_class.full_signature: private Criterion sameTier(final Tier tier)
focal_class.identifier: sameTier
focal_class.modifiers: private
focal_class.parameters: (final Tier tier)
focal_class.return: Criterion
focal_class.signature: Criterion sameTier(final Tier tier)
focal_class.class_method_signature: PricingTierDAO.samePricing(final PricingTemplate pricing)
focal_class.full_signature: private Criterion samePricing(final PricingTemplate pricing)
focal_class.identifier: samePricing
focal_class.modifiers: private
focal_class.parameters: (final PricingTemplate pricing)
focal_class.return: Criterion
focal_class.signature: Criterion samePricing(final PricingTemplate pricing)
focal_class.class_method_signature: PricingTierDAO.existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_class.full_signature: public boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_class.identifier: existAnyOtherWithTier
focal_class.modifiers: public
focal_class.parameters: (final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_class.return: boolean
focal_class.signature: boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_class.superclass: extends DefaultDAOBase<Integer, PricingTier>
focal_method.body: public boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
      {
          return existsAnyOtherByCriterions(pt1, sameTier(tier), samePricing(pricingTemplate));
      }
focal_method.class_method_signature: PricingTierDAO.existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_method.full_signature: public boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_method.identifier: existAnyOtherWithTier
focal_method.invocations: existsAnyOtherByCriterions sameTier samePricing
focal_method.modifiers: public
focal_method.parameters: (final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)
focal_method.return: boolean
focal_method.signature: boolean existAnyOtherWithTier(final PricingTier pt1, final Tier tier,
          final PricingTemplate pricingTemplate)