Fix test after http://codereview.scilab.org/#/c/9048/ 68/9068/2
Vincent COUVERT [Wed, 19 Sep 2012 12:22:50 +0000 (14:22 +0200)]
Change-Id: Ibd86d36f5228002fd5a28a733c9f88c742fc003a

scilab/modules/graphic_objects/tests/java/org/scilab/tests/modules/graphic_objects/testGraphicObject.java

index 6f93e5d..0ea546d 100644 (file)
@@ -43,7 +43,7 @@ import org.junit.*;
  */
 public class testGraphicObject {
 
-    public static final String NONEXISTING_PROP_NAME = "NonExistingProperty";
+    public static final int NONEXISTING_PROP = Integer.MAX_VALUE;
 
     @Test
     public void simpleTest() throws NullPointerException {
@@ -74,7 +74,7 @@ public class testGraphicObject {
 
         assert arcVisible.equals(arcVisibleRet);
 
-        Object nonExistingProp = (Object) controller.getProperty(arcID, NONEXISTING_PROP_NAME);
+        Object nonExistingProp = (Object) controller.getProperty(arcID, NONEXISTING_PROP);
 
         assert nonExistingProp == null;