Examples of listByInstanceId()


Examples of com.cloud.storage.dao.SnapshotDaoImpl.listByInstanceId()

public class SnapshotDaoTest extends TestCase {
 
    public void testListBy() {
        SnapshotDaoImpl dao = ComponentLocator.inject(SnapshotDaoImpl.class);
       
        List<SnapshotVO> snapshots = dao.listByInstanceId(3, Snapshot.Status.BackedUp);
        for(SnapshotVO snapshot : snapshots) {
            Assert.assertTrue(snapshot.getStatus() == Snapshot.Status.BackedUp);
        }
    }
}
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.