Fixing test failure

revert-70aa11f8
Ace 7 years ago
parent e604532b28
commit 2516967159

@ -32,7 +32,7 @@ import java.sql.SQLException;
public class ApplicationPersistenceTests extends BaseDeviceManagementTest { public class ApplicationPersistenceTests extends BaseDeviceManagementTest {
private static final Log log = LogFactory.getLog(ApplicationPersistenceTests.class); private static final Log log = LogFactory.getLog(ApplicationPersistenceTests.class);
private ApplicationDAO applicationDAO = DeviceManagementDAOFactory.getApplicationDAO(); private ApplicationDAO applicationDAO = null;
@Test @Test
public void testAddApplication() { public void testAddApplication() {
@ -79,6 +79,7 @@ public class ApplicationPersistenceTests extends BaseDeviceManagementTest {
@Override @Override
public void init() throws Exception { public void init() throws Exception {
this.initDataSource(); this.initDataSource();
applicationDAO = DeviceManagementDAOFactory.getApplicationDAO();
} }
} }

Loading…
Cancel
Save