@Test public void test() { Attribute result = LastCommand.getLastAttributeFor("root", getConnection()); assertNotNull(result); assertEquals(NativeAttribute.LAST_LOGIN.getName(), result.getName()); }
public static Attribute getLastAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "last -1", username)); return parseOutput(username, out); }
LastCommand { public static Attribute getLastAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "last -1", username)); return parseOutput(username, out); } }
LastCommand { public static Attribute getLastAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "last -1", username)); return parseOutput(username, out); } private  LastCommand(); }
LastCommand { public static Attribute getLastAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "last -1", username)); return parseOutput(username, out); } private  LastCommand(); static Attribute getLastAttributeFor(String username, SolarisConnection conn); static Attribute parseOutput(String username, final String out); }
LastCommand { public static Attribute getLastAttributeFor(String username, SolarisConnection conn) { final String out = conn.executeCommand(conn.buildCommand(true, "last -1", username)); return parseOutput(username, out); } private  LastCommand(); static Attribute getLastAttributeFor(String username, SolarisConnection conn); static Attribute parseOutput(String username, final String out);  }