Author: heuermh
Date: Fri Mar 27 20:15:24 2009
New Revision: 438

Modified:
     
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java

Log:
Issue 79 : removing testReferences method which incorrectly depends on  
certian behaviour from the garbage collector

Modified:  
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java
==============================================================================
---  
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java
     
(original)
+++  
piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java
     
Fri Mar 27 20:15:24 2009
@@ -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());
-    }
  }

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to