BUG-8203: update Netty isRoot method name
[bgpcep.git] / bgp / rib-impl / src / test / java / org / opendaylight / controller / config / yang / bgp / rib / impl / BGPPeerAcceptorModuleTest.java
index 6decf52f34a4ac26bc855c1411ccb9d7aeb77976..77d1a4c35a0181e0d6b088a7da7170e24e7999db 100644 (file)
@@ -67,7 +67,7 @@ public class BGPPeerAcceptorModuleTest extends AbstractRIBImplModuleTest {
             assertStatus(status, 3, 0, 0);
             verify(dispatcher).createServer(any(BGPPeerRegistry.class), any(InetSocketAddress.class));
         } catch (final ValidationException e) {
-            if(!PlatformDependent.isWindows() && !PlatformDependent.isRoot()) {
+            if(!PlatformDependent.isWindows() && !PlatformDependent.maybeSuperUser()) {
                 Assert.assertTrue(e.getMessage().contains("Unable to bind port"));
             } else {
                 fail();