ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/AtomicIntegerTest.java
Revision: 1.2
Committed: Wed May 28 15:03:14 2003 UTC (21 years ago) by tim
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved tests to corresponding packages.

File Contents

# Content
1 import java.util.concurrent.atomic.AtomicInteger;
2 import junit.framework.TestCase;
3
4 /**
5 * Tests the AtomicInteger implementation.
6 */
7 public class AtomicIntegerTest extends TestCase {
8
9 public void testGetAndSet () {
10 int initval = 37;
11 AtomicInteger ai = new AtomicInteger(initval);
12 int newval = 42;
13 if (false /* remove once this is implemented */) {
14 assertEquals("getAndSet should return initial value,",
15 initval, ai.getAndSet(newval));
16 assertEquals("get should return new value,",
17 newval, ai.get());
18 }
19 }
20 }