diff --git a/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java b/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java index 6d689b5..5f4625b 100644 --- a/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java +++ b/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java @@ -50,16 +50,4 @@ frame.getCanvas().getLayer().addChild(pSwing); frame.setVisible(true); } - - public void testReferences() { - WeakReference pSwing = new WeakReference(new PSwing(new JButton("test")), new ReferenceQueue()); - PFrame frame = new PFrame(); - frame.getCanvas().getLayer().addChild((PNode) pSwing.get()); - frame.setVisible(true); - frame.getCanvas().getLayer().removeAllChildren(); - for (int i=0; i<20; i++) { // make sure garbage collection has happened - System.gc(); - } - assertTrue("The PSwing node should be garbage collected after removal", pSwing.isEnqueued()); - } }