test_class.declarator: volumeManagementGenerator
test_class.modifier: private
test_class.original_string: private VolumeManagementGenerator volumeManagementGenerator;
test_class.type: VolumeManagementGenerator
test_class.var_name: volumeManagementGenerator
test_class.file: model/src/test/java/com/abiquo/server/core/cloud/stateful/DiskStatefulConversionDAOTest.java
test_class.identifier: DiskStatefulConversionDAOTest
test_class.superclass: extends
      DefaultDAOTestBase<DiskStatefulConversionDAO, DiskStatefulConversion>
test_case.body: @Test
      public void testGetByVolume()
      {
          VolumeManagement volume = volumeManagementGenerator.createUniqueInstance();
          DiskStatefulConversion diskStatefulConversion = eg().createInstance(volume);
  
          List<Object> entitiesToPersist = new ArrayList<Object>();
          eg().addAuxiliaryEntitiesToPersist(diskStatefulConversion, entitiesToPersist);
          persistAll(ds(), entitiesToPersist, diskStatefulConversion);
  
          DiskStatefulConversionDAO diskStatefulConversionDAO = createDaoForRollbackTransaction();
  
          DiskStatefulConversion result = diskStatefulConversionDAO.getByVolume(volume.getId());
  
          assertNotNull(result);
          assertAllEntityPropertiesEqual(result, diskStatefulConversion);
      }
test_case.class_method_signature: DiskStatefulConversionDAOTest.testGetByVolume()
test_case.full_signature: @Test public void testGetByVolume()
test_case.identifier: testGetByVolume
test_case.invocations: createUniqueInstance createInstance eg addAuxiliaryEntitiesToPersist eg persistAll ds createDaoForRollbackTransaction getByVolume getId assertNotNull assertAllEntityPropertiesEqual
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetByVolume()
focal_class.file: model/src/main/java/com/abiquo/server/core/cloud/stateful/DiskStatefulConversionDAO.java
focal_class.identifier: DiskStatefulConversionDAO
focal_class.class_method_signature: DiskStatefulConversionDAO.DiskStatefulConversionDAO()
focal_class.full_signature: public  DiskStatefulConversionDAO()
focal_class.identifier: DiskStatefulConversionDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DiskStatefulConversionDAO()
focal_class.class_method_signature: DiskStatefulConversionDAO.DiskStatefulConversionDAO(final EntityManager entityManager)
focal_class.full_signature: public  DiskStatefulConversionDAO(final EntityManager entityManager)
focal_class.identifier: DiskStatefulConversionDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  DiskStatefulConversionDAO(final EntityManager entityManager)
focal_class.class_method_signature: DiskStatefulConversionDAO.getByVolume(final Integer volumeId)
focal_class.full_signature: public DiskStatefulConversion getByVolume(final Integer volumeId)
focal_class.identifier: getByVolume
focal_class.modifiers: public
focal_class.parameters: (final Integer volumeId)
focal_class.return: DiskStatefulConversion
focal_class.signature: DiskStatefulConversion getByVolume(final Integer volumeId)
focal_class.class_method_signature: DiskStatefulConversionDAO.sameVolume(final Integer volumeId)
focal_class.full_signature: private static Criterion sameVolume(final Integer volumeId)
focal_class.identifier: sameVolume
focal_class.modifiers: private static
focal_class.parameters: (final Integer volumeId)
focal_class.return: Criterion
focal_class.signature: Criterion sameVolume(final Integer volumeId)
focal_class.superclass: extends DefaultDAOBase<Integer, DiskStatefulConversion>
focal_method.body: public DiskStatefulConversion getByVolume(final Integer volumeId)
      {
          return findUniqueByCriterions(sameVolume(volumeId));
      }
focal_method.class_method_signature: DiskStatefulConversionDAO.getByVolume(final Integer volumeId)
focal_method.full_signature: public DiskStatefulConversion getByVolume(final Integer volumeId)
focal_method.identifier: getByVolume
focal_method.invocations: findUniqueByCriterions sameVolume
focal_method.modifiers: public
focal_method.parameters: (final Integer volumeId)
focal_method.return: DiskStatefulConversion
focal_method.signature: DiskStatefulConversion getByVolume(final Integer volumeId)