@Test public void next() { assertEquals("attach1", AttachName.next()); assertEquals("attach2", AttachName.next()); assertEquals("attach3", AttachName.next()); assertEquals("attach4", AttachName.next()); assertEquals("attach5", AttachName.next()); }
public static String next() { return "attach" + counter.incrementAndGet(); }
AttachName { public static String next() { return "attach" + counter.incrementAndGet(); } }
AttachName { public static String next() { return "attach" + counter.incrementAndGet(); } private  AttachName(); }
AttachName { public static String next() { return "attach" + counter.incrementAndGet(); } private  AttachName(); static String next(); }
AttachName { public static String next() { return "attach" + counter.incrementAndGet(); } private  AttachName(); static String next();  }