Searched refs:isRunningAsRoot (Results 1 – 3 of 3) sorted by relevance
116 assertThat(ShellCommandUtils.isRunningAsRoot()).isTrue(); in isRunningAsRoot_true_returnsTrue()121 assertThat(ShellCommandUtils.isRunningAsRoot()).isFalse(); in isRunningAsRoot_false_returnsFalse()
371 public static boolean isRunningAsRoot() { in isRunningAsRoot() method in ShellCommandUtils410 if (isRunningAsRoot() || canRunAsRootWithSuperUser()) { in isRootAvailable()
91 !ShellCommandUtils.isRunningAsRoot() && in asRoot()