Author: [email protected]
Date: Wed Apr  1 16:28:19 2009
New Revision: 5156

Modified:
     
changes/scottb/memory/user/test/com/google/gwt/dev/cfg/TestSuperAndSourceTags.java

Log:
SQUASH into JavaSourceOracle removal; this test was broken.

Modified:  
changes/scottb/memory/user/test/com/google/gwt/dev/cfg/TestSuperAndSourceTags.java
==============================================================================
---  
changes/scottb/memory/user/test/com/google/gwt/dev/cfg/TestSuperAndSourceTags.java
       
(original)
+++  
changes/scottb/memory/user/test/com/google/gwt/dev/cfg/TestSuperAndSourceTags.java
       
Wed Apr  1 16:28:19 2009
@@ -119,10 +119,14 @@
    }

    private void validateExcluded(Class<?> clazz) {
-    assertNull(moduleDef.findSourceFile(getLogicalPath(clazz)));
+    assertNull(moduleDef.findSourceFile(toPath(clazz)));
    }

    private void validateIncluded(Class<?> clazz) {
-    assertNotNull(moduleDef.findSourceFile(getLogicalPath(clazz)));
+    assertNotNull(moduleDef.findSourceFile(toPath(clazz)));
+  }
+
+  private String toPath(Class<?> clazz) {
+    return getLogicalPath(clazz).replace('.', '/') + ".java";
    }
  }

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to