test_class.declarator: vmGenerator
test_class.modifier: protected
test_class.original_string: protected VirtualMachineGenerator vmGenerator;
test_class.type: VirtualMachineGenerator
test_class.var_name: vmGenerator
test_class.file: model/src/test/java/com/abiquo/server/core/cloud/chef/RunlistElementDAOTest.java
test_class.identifier: RunlistElementDAOTest
test_class.superclass: extends DefaultDAOTestBase<RunlistElementDAO, RunlistElement>
test_case.body: @Test
      public void testFindByVirtualMachine()
      {
          VirtualMachine vm = vmGenerator.createUniqueInstance();
          RunlistElement element = eg().createInstance(vm);
  
          List<Object> entitiesToPersist = new ArrayList<Object>();
          eg().addAuxiliaryEntitiesToPersist(element, entitiesToPersist);
          persistAll(ds(), entitiesToPersist, element);
  
          RunlistElementDAO dao = createDaoForRollbackTransaction();
  
          List<RunlistElement> elements = dao.findByVirtualMachine(vm);
          assertEquals(elements.size(), 1);
      }
test_case.class_method_signature: RunlistElementDAOTest.testFindByVirtualMachine()
test_case.full_signature: @Test public void testFindByVirtualMachine()
test_case.identifier: testFindByVirtualMachine
test_case.invocations: createUniqueInstance createInstance eg addAuxiliaryEntitiesToPersist eg persistAll ds createDaoForRollbackTransaction findByVirtualMachine assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindByVirtualMachine()
focal_class.file: model/src/main/java/com/abiquo/server/core/cloud/chef/RunlistElementDAO.java
focal_class.identifier: RunlistElementDAO
focal_class.class_method_signature: RunlistElementDAO.RunlistElementDAO()
focal_class.full_signature: public  RunlistElementDAO()
focal_class.identifier: RunlistElementDAO
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RunlistElementDAO()
focal_class.class_method_signature: RunlistElementDAO.RunlistElementDAO(final EntityManager entityManager)
focal_class.full_signature: public  RunlistElementDAO(final EntityManager entityManager)
focal_class.identifier: RunlistElementDAO
focal_class.modifiers: public
focal_class.parameters: (final EntityManager entityManager)
focal_class.signature:  RunlistElementDAO(final EntityManager entityManager)
focal_class.class_method_signature: RunlistElementDAO.findByVirtualMachine(final VirtualMachine virtualmachine)
focal_class.full_signature: public List<RunlistElement> findByVirtualMachine(final VirtualMachine virtualmachine)
focal_class.identifier: findByVirtualMachine
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachine virtualmachine)
focal_class.return: List<RunlistElement>
focal_class.signature: List<RunlistElement> findByVirtualMachine(final VirtualMachine virtualmachine)
focal_class.class_method_signature: RunlistElementDAO.clearVirtualMachineRunlist(final VirtualMachine virtualmachine)
focal_class.full_signature: public void clearVirtualMachineRunlist(final VirtualMachine virtualmachine)
focal_class.identifier: clearVirtualMachineRunlist
focal_class.modifiers: public
focal_class.parameters: (final VirtualMachine virtualmachine)
focal_class.return: void
focal_class.signature: void clearVirtualMachineRunlist(final VirtualMachine virtualmachine)
focal_class.class_method_signature: RunlistElementDAO.sameVirtualMachine(final VirtualMachine virtualmachine)
focal_class.full_signature: private static Criterion sameVirtualMachine(final VirtualMachine virtualmachine)
focal_class.identifier: sameVirtualMachine
focal_class.modifiers: private static
focal_class.parameters: (final VirtualMachine virtualmachine)
focal_class.return: Criterion
focal_class.signature: Criterion sameVirtualMachine(final VirtualMachine virtualmachine)
focal_class.superclass: extends DefaultDAOBase<Integer, RunlistElement>
focal_method.body: public List<RunlistElement> findByVirtualMachine(final VirtualMachine virtualmachine)
      {
          Criteria criteria = createCriteria(sameVirtualMachine(virtualmachine));
          criteria.addOrder(Order.asc(RunlistElement.PRIORITY_PROPERTY));
          return getResultList(criteria);
      }
focal_method.class_method_signature: RunlistElementDAO.findByVirtualMachine(final VirtualMachine virtualmachine)
focal_method.full_signature: public List<RunlistElement> findByVirtualMachine(final VirtualMachine virtualmachine)
focal_method.identifier: findByVirtualMachine
focal_method.invocations: createCriteria sameVirtualMachine addOrder asc getResultList
focal_method.modifiers: public
focal_method.parameters: (final VirtualMachine virtualmachine)
focal_method.return: List<RunlistElement>
focal_method.signature: List<RunlistElement> findByVirtualMachine(final VirtualMachine virtualmachine)