use of java.lang.ref.ReferenceQueue in project openj9 by eclipse.
the class Test_Reference method test_get.
/**
* @tests java.lang.ref.Reference#get()
*/
@Test
public void test_get() {
// SM.
obj = new Object();
Reference ref = new WeakReference(obj, new ReferenceQueue());
AssertJUnit.assertTrue("Get succeeded.", ref.get() == obj);
}
Aggregations