use of org.ovirt.engine.core.dal.dbbroker.DbFacade in project ovirt-engine by oVirt.
the class DbDependentTestBase method initDbFacade.
@BeforeClass
public static void initDbFacade() throws Exception {
dbFacade = mock(DbFacade.class);
// As long as classes are calling DbFacade.getInstance,
// we'll need this code
Field instanceField = DbFacade.class.getDeclaredField("instance");
instanceField.setAccessible(true);
instanceField.set(null, dbFacade);
}
Aggregations