mirror of https://github.com/apache/cloudstack.git
server: fix broken unit test in configurationManagerImplTest (#7018)
Co-authored-by: Gabriel Ortiga Fernandes <gabriel.fernandes@scclouds.com.br>
This commit is contained in:
parent
fab4fc2a14
commit
4ade096aeb
|
|
@ -135,7 +135,7 @@ public class ConfigurationManagerImplTest {
|
|||
PowerMockito.mockStatic(NetUtils.class);
|
||||
PowerMockito.when(NetUtils.verifyInstanceName(Mockito.anyString())).thenReturn(false);
|
||||
String testVariable = configurationManagerImplSpy.validateRangeInstanceName("This string should not be valid.");
|
||||
Assert.assertEquals("a valid instance name (instance names cannot contain hyphen, space or plus sign)", testVariable);
|
||||
Assert.assertEquals("a valid instance name (instance names cannot contain hyphens, spaces or plus signs)", testVariable);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in New Issue