test_class.file: model/src/test/java/com/abiquo/server/core/infrastructure/UcsRackDAOTest.java
test_class.identifier: UcsRackDAOTest
test_class.superclass: extends DefaultDAOTestBase<UcsRackDAO, UcsRack>
test_case.body: @Test
      public void findAllUcsRacksByDatacenter()
      {
          DatacenterGenerator datacenterGenerator = new DatacenterGenerator(getSeed());
          UcsRackGenerator ucsRackGenerator = new UcsRackGenerator(getSeed());
  
          Datacenter datacenter1 = datacenterGenerator.createUniqueInstance();
          Datacenter datacenter2 = datacenterGenerator.createUniqueInstance();
          UcsRack UcsRack2_1 = ucsRackGenerator.createInstance(datacenter2);
          UcsRack2_1.setName("ucsRack1");
          UcsRack UcsRack2_2 = ucsRackGenerator.createInstance(datacenter2);
          UcsRack2_2.setName("ucsRack2");
          ds().persistAll(datacenter1, datacenter2, UcsRack2_1, UcsRack2_2);
  
          UcsRackDAO dao = createDaoForRollbackTransaction();
          List<UcsRack> ucsRacks = dao.findAllUcsRacksByDatacenter(reload(dao, datacenter1));
          Assert.assertTrue(ucsRacks.isEmpty());
  
          ucsRacks = dao.findAllUcsRacksByDatacenter(reload(dao, datacenter2));
          try
          {
              assertEqualsPropertyForList(Rack.NAME_PROPERTY, ucsRacks, "ucsRack1", "ucsRack2");
          }
          catch (Exception e)
          {
              fail(e.getMessage());
          }
      }
test_case.class_method_signature: UcsRackDAOTest.findAllUcsRacksByDatacenter()
test_case.full_signature: @Test public void findAllUcsRacksByDatacenter()
test_case.identifier: findAllUcsRacksByDatacenter
test_case.invocations: getSeed getSeed createUniqueInstance createUniqueInstance createInstance setName createInstance setName persistAll ds createDaoForRollbackTransaction findAllUcsRacksByDatacenter reload assertTrue isEmpty findAllUcsRacksByDatacenter reload assertEqualsPropertyForList fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void findAllUcsRacksByDatacenter()
focal_class.file: model/src/main/java/com/abiquo/server/core/infrastructure/UcsRackDAO.java
focal_class.identifier: UcsRackDAO
focal_class.class_method_signature: UcsRackDAO.UcsRackDAO()
focal_class.full_signature: public  UcsRackDAO()
focal_class.identifier: UcsRackDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  UcsRackDAO()
focal_class.class_method_signature: UcsRackDAO.UcsRackDAO(final EntityManager entityManager)
focal_class.full_signature: public  UcsRackDAO(final EntityManager entityManager)
focal_class.identifier: UcsRackDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  UcsRackDAO(final EntityManager entityManager)
focal_class.class_method_signature: UcsRackDAO.findAllUcsRacksByDatacenter(final Datacenter datacenter)
focal_class.full_signature: public List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter)
focal_class.identifier: findAllUcsRacksByDatacenter
focal_class.modifiers: public
focal_class.parameters: (final Datacenter datacenter)
focal_class.return: List<UcsRack>
focal_class.signature: List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter)
focal_class.class_method_signature: UcsRackDAO.findAllUcsRacksByDatacenter(final Datacenter datacenter,
          final String filter)
focal_class.full_signature: public List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter,
          final String filter)
focal_class.identifier: findAllUcsRacksByDatacenter
focal_class.modifiers: public
focal_class.parameters: (final Datacenter datacenter,
          final String filter)
focal_class.return: List<UcsRack>
focal_class.signature: List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter,
          final String filter)
focal_class.class_method_signature: UcsRackDAO.sameDatacenter(final Datacenter datacenterId)
focal_class.full_signature: private Criterion sameDatacenter(final Datacenter datacenterId)
focal_class.identifier: sameDatacenter
focal_class.modifiers: private
focal_class.parameters: (final Datacenter datacenterId)
focal_class.return: Criterion
focal_class.signature: Criterion sameDatacenter(final Datacenter datacenterId)
focal_class.class_method_signature: UcsRackDAO.existAnyOtherWithIP(final String ip)
focal_class.full_signature: public boolean existAnyOtherWithIP(final String ip)
focal_class.identifier: existAnyOtherWithIP
focal_class.modifiers: public
focal_class.parameters: (final String ip)
focal_class.return: boolean
focal_class.signature: boolean existAnyOtherWithIP(final String ip)
focal_class.class_method_signature: UcsRackDAO.filterBy(final String filter)
focal_class.full_signature: public Criterion filterBy(final String filter)
focal_class.identifier: filterBy
focal_class.modifiers: public
focal_class.parameters: (final String filter)
focal_class.return: Criterion
focal_class.signature: Criterion filterBy(final String filter)
focal_class.superclass: extends DefaultDAOBase<Integer, UcsRack>
focal_method.body: public List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter)
      {
          return findAllUcsRacksByDatacenter(datacenter, null);
      }
focal_method.class_method_signature: UcsRackDAO.findAllUcsRacksByDatacenter(final Datacenter datacenter)
focal_method.full_signature: public List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter)
focal_method.identifier: findAllUcsRacksByDatacenter
focal_method.invocations: findAllUcsRacksByDatacenter
focal_method.modifiers: public
focal_method.parameters: (final Datacenter datacenter)
focal_method.return: List<UcsRack>
focal_method.signature: List<UcsRack> findAllUcsRacksByDatacenter(final Datacenter datacenter)