Revision: 796
Author: allain.lalonde
Date: Thu Oct 22 18:45:17 2009
Log: Added test to PHandle testing that locator could be null without  
causing problems.
http://code.google.com/p/piccolo2d/source/detail?r=796

Modified:
   
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java

=======================================
---  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java
  
Tue Oct 20 07:48:52 2009
+++  
/piccolo2d.java/trunk/extras/src/test/java/edu/umd/cs/piccolox/handles/PHandleTest.java
  
Thu Oct 22 18:45:17 2009
@@ -59,6 +59,11 @@
          parent.setBounds(0, 0, 100, 100);
          assertEquals(1, relocateCounts[0]);
      }
+
+    public void testLocatorCanBeNullWithoutAProblem() {
+        PHandle handle = new PHandle(null);
+        handle.relocateHandle();
+    }

      private final class OriginLocator extends PLocator {
          public double locateX() {

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

Reply via email to