@Test public void testIsRootUser1 () { System.setProperty("user.name", "root"); System.setProperty("user.home", "/root"); assertEquals(true, Utils.isRootUser()); }
public static boolean isRootUser () { return System.getProperty("user.name").equals("root") && System.getProperty("user.home").equals("/root"); }
Utils { public static boolean isRootUser () { return System.getProperty("user.name").equals("root") && System.getProperty("user.home").equals("/root"); } }
Utils { public static boolean isRootUser () { return System.getProperty("user.name").equals("root") && System.getProperty("user.home").equals("/root"); } protected  Utils(); }
Utils { public static boolean isRootUser () { return System.getProperty("user.name").equals("root") && System.getProperty("user.home").equals("/root"); } protected  Utils(); static String getSection(final String section); static void printSection(final String section); static boolean isRootUser(); }
Utils { public static boolean isRootUser () { return System.getProperty("user.name").equals("root") && System.getProperty("user.home").equals("/root"); } protected  Utils(); static String getSection(final String section); static void printSection(final String section); static boolean isRootUser();  }