Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/search/SearchEngineImplTest.java |
=================================================================== |
--- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/search/SearchEngineImplTest.java (revision 40507) |
+++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/search/SearchEngineImplTest.java (working copy) |
@@ -135,7 +135,7 @@ |
} |
} |
- private final IndexStore indexStore = IndexFactory.newSplitIndexStore(new MemoryNodeManager()); |
+ private IndexStore indexStore = IndexFactory.newSplitIndexStore(new MemoryNodeManager()); |
private static final AnalysisContext CONTEXT = mock(AnalysisContext.class); |
private int nextLocationId = 0; |
@@ -1225,6 +1225,12 @@ |
assertTrue(indexStore.aboutToIndexDart(CONTEXT, unitElement)); |
} |
+ @Override |
+ protected void tearDown() throws Exception { |
+ indexStore = null; |
+ super.tearDown(); |
+ } |
+ |
private void defineFunctionsAB(LibraryElement library) { |
{ |
when(elementA.getAncestor(LibraryElement.class)).thenReturn(library); |