Fixed createNetworkOfferingUnittest

This commit is contained in:
Alena Prokharchyk 2013-03-28 12:16:05 -07:00
parent 0f3b7ef225
commit 34a59fc3a7
1 changed files with 0 additions and 6 deletions

View File

@ -46,7 +46,6 @@ import com.cloud.offerings.NetworkOfferingServiceMapVO;
import com.cloud.offerings.NetworkOfferingVO;
import com.cloud.offerings.dao.NetworkOfferingDao;
import com.cloud.offerings.dao.NetworkOfferingServiceMapDao;
import com.cloud.user.UserContext;
import com.cloud.user.UserContextInitializer;
@RunWith(SpringJUnit4ClassRunner.class)
@ -63,9 +62,6 @@ public class CreateNetworkOfferingTest extends TestCase{
@Inject
NetworkOfferingDao offDao;
@Inject
UserContext usrCtx;
@Inject
UserContextInitializer usrCtxInit;
@ -79,7 +75,6 @@ public class CreateNetworkOfferingTest extends TestCase{
Mockito.when(offDao.persist(Mockito.any(NetworkOfferingVO.class))).thenReturn(new NetworkOfferingVO());
Mockito.when(mapDao.persist(Mockito.any(NetworkOfferingServiceMapVO.class))).thenReturn(new NetworkOfferingServiceMapVO());
Mockito.when(usrCtx.current()).thenReturn(new UserContext());
}
//Test Shared network offerings
@ -88,7 +83,6 @@ public class CreateNetworkOfferingTest extends TestCase{
NetworkOfferingVO off = configMgr.createNetworkOffering("shared", "shared", TrafficType.Guest, null, true,
Availability.Optional, 200, null, false, Network.GuestType.Shared, false,
null, false, null, true, false);
assertNotNull("Shared network offering with specifyVlan=true failed to create ", off);
}