Skip to content

Commit 96bfa8a

Browse files
author
Alena Prokharchyk
committed
Fixed unittest
1 parent 66df435 commit 96bfa8a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎server/test/org/apache/cloudstack/networkoffering/CreateNetworkOfferingTest.java‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
import junit.framework.TestCase;
2828

29+
import org.apache.cloudstack.context.CallContext;
30+
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
31+
import org.apache.cloudstack.framework.config.impl.ConfigurationVO;
32+
import org.apache.cloudstack.resourcedetail.dao.UserIpAddressDetailsDao;
2933
import org.junit.After;
3034
import org.junit.Before;
3135
import org.junit.Test;
@@ -35,10 +39,6 @@
3539
import org.springframework.test.context.ContextConfiguration;
3640
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
3741

38-
import org.apache.cloudstack.context.CallContext;
39-
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
40-
import org.apache.cloudstack.framework.config.impl.ConfigurationVO;
41-
4242
import com.cloud.configuration.ConfigurationManager;
4343
import com.cloud.event.dao.UsageEventDao;
4444
import com.cloud.event.dao.UsageEventDetailsDao;
@@ -90,6 +90,9 @@ public class CreateNetworkOfferingTest extends TestCase {
9090
@Inject
9191
UsageEventDetailsDao usageEventDetailsDao;
9292

93+
@Inject
94+
UserIpAddressDetailsDao userIpAddressDetailsDao;
95+
9396
@Override
9497
@Before
9598
public void setUp() {

‎server/test/resources/createNetworkOffering.xml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@
4949
<bean id="usageEventDaoImpl" class="com.cloud.event.dao.UsageEventDaoImpl" />
5050
<bean id="usageEventDetailsDaoImpl" class="com.cloud.event.dao.UsageEventDetailsDaoImpl" />
5151
<bean id="storagePoolHostDaoImpl" class="com.cloud.storage.dao.StoragePoolHostDaoImpl" />
52-
<bean id="primaryDataStoreDaoImpl" class="org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDaoImpl" />
52+
<bean id="primaryDataStoreDaoImpl" class="org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDaoImpl" />
53+
<bean id="userIpAddressDetailsDao" class="org.apache.cloudstack.resourcedetail.dao.UserIpAddressDetailsDaoImpl" />
54+
5355
</beans>

0 commit comments

Comments
 (0)