Fix build break.

Note that this change was already committed in trunk and should not be
merged to trunk again.

Patch by: jat
Review by: bobv (desk review)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@3878 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/test/com/google/gwt/dev/shell/StandardGeneratorContextTest.java b/dev/core/test/com/google/gwt/dev/shell/StandardGeneratorContextTest.java
index 09c8f21..ea2625c 100644
--- a/dev/core/test/com/google/gwt/dev/shell/StandardGeneratorContextTest.java
+++ b/dev/core/test/com/google/gwt/dev/shell/StandardGeneratorContextTest.java
@@ -155,6 +155,7 @@
     tempOutDir = createTempDir("gwt-out-");
     genCtx = new StandardGeneratorContext(mockCompilationState, mockPropOracle,
         mockPublicOracle, tempGenDir, tempOutDir, artifactSet);
+    genCtx.setCurrentGenerator(Generator.class);
   }
 
   public void testTryCreateResource_badFileName() {
@@ -355,7 +356,8 @@
   protected void tearDown() throws Exception {
     for (int i = toDelete.size() - 1; i >= 0; --i) {
       File f = toDelete.get(i);
-      assertTrue(f.delete());
+      Util.recursiveDelete(f, false);
+      assertFalse("Unable to delete " + f.getAbsolutePath(), f.exists());
     }
   }