@Test(expected = RuntimeException.class) public void constructorWithExceptionTest() { for (int k = 0; k >= -1000; k -= DELTA) { UserInfo tUserInfo = new UserInfo(k); Assert.assertEquals(k, tUserInfo.getUserId()); Assert.fail("UserId " + k + " should be invalid."); } }
public long getUserId() { return USER_ID; }
UserInfo { public long getUserId() { return USER_ID; } }
UserInfo { public long getUserId() { return USER_ID; } UserInfo(long userId); }
UserInfo { public long getUserId() { return USER_ID; } UserInfo(long userId); synchronized void addOwnBytes(long addOwnBytes); synchronized long getOwnBytes(); long getUserId(); synchronized void heartbeat(); synchronized boolean timeout(); @Override synchronized String toString(); }
UserInfo { public long getUserId() { return USER_ID; } UserInfo(long userId); synchronized void addOwnBytes(long addOwnBytes); synchronized long getOwnBytes(); long getUserId(); synchronized void heartbeat(); synchronized boolean timeout(); @Override synchronized String toString();  }