void assertNoCalls() {
   calls.assertNoCalls();
   ((MockContext) getDefaultContext()).assertNoCalls();
   for (PubFolder pubFolder : getPubFolders()) {
     ((MockContext) pubFolder.getContext()).assertNoCalls();
   }
 }
 /** Run the "pub get" command against every pubspec in the workspace. */
 private void runPubNow() {
   final String pubCmd = RunPubJob.INSTALL_COMMAND;
   Job firstJob = null;
   Job previousJob = null;
   for (Project proj : DartCore.getProjectManager().getProjects()) {
     for (final PubFolder pubFolder : proj.getPubFolders()) {
       final RunPubJob job = new RunPubJob(pubFolder.getResource(), pubCmd, true);
       if (firstJob == null) {
         firstJob = job;
       } else {
         previousJob.addJobChangeListener(
             new JobChangeAdapter() {
               @Override
               public void done(IJobChangeEvent event) {
                 //
                 // When one job completes, schedule the next unless the user cancels
                 //
                 if (event.getResult().getSeverity() != IStatus.CANCEL) {
                   job.schedule();
                 }
               }
             });
       }
       previousJob = job;
     }
   }
   firstJob.schedule();
 }
 private MockContext getContextFor(IContainer pubFolderResource) {
   MockContext context;
   if (pubFolderResource != null) {
     PubFolder pubFolder = getPubFolder(pubFolderResource);
     DeltaProcessorTest.assertNotNull(pubFolder);
     DeltaProcessorTest.assertSame(pubFolderResource, pubFolder.getResource());
     context = (MockContext) pubFolder.getContext();
   } else {
     PubFolder pubFolder = getPubFolder(getResource());
     DeltaProcessorTest.assertNull(pubFolder);
     context = (MockContext) getDefaultContext();
   }
   return context;
 }
 void assertPackagesRemoved(MockContainer pubContainer) {
   PubFolder pubFolder = getPubFolder(pubContainer);
   ChangeSet expected = new ChangeSet();
   expected.removedContainer(pubFolder.getInvertedSourceContainer());
   assertChanged(pubContainer, expected);
 }