File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
server/src/test/java/com/cloud/configuration Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 110110import static org .mockito .Mockito .verify ;
111111import static org .mockito .Mockito .when ;
112112
113- @ RunWith (MockitoJUnitRunner .class )
113+ @ RunWith (MockitoJUnitRunner .Silent . class )
114114public class ConfigurationManagerImplTest {
115115
116116 @ InjectMocks
@@ -1265,13 +1265,11 @@ public void testCloneDiskOfferingValidatesSourceOfferingExists() {
12651265
12661266 @ Test
12671267 public void testCloneNetworkOfferingRequiresName () {
1268- Long sourceOfferingId = 1L ;
12691268 NetworkOfferingVO sourceOffering = Mockito .mock (NetworkOfferingVO .class );
12701269
1271- when (sourceOffering .getId ()).thenReturn (sourceOfferingId );
12721270 when (sourceOffering .getName ()).thenReturn ("Source Network Offering" );
12731271
1274- Assert .assertNotNull (sourceOffering );
1272+ Assert .assertNotNull (sourceOffering . getName () );
12751273 }
12761274
12771275 @ Test
You can’t perform that action at this time.
0 commit comments