Package mmrnmhrm.core.workspace

Examples of mmrnmhrm.core.workspace.WorkspaceModelManager$SearchCompilersOnPathOperation_Eclipse


public class WorkspaceModelManagerTest extends AbstractDubModelManagerTest {
 
  @Test
  public void testShutdown() throws Exception { testShutdown$(); }
  public void testShutdown$() throws Exception {
    WorkspaceModelManager dmm = new WorkspaceModelManager(new WorkspaceModel());
    dmm.initializeModelManager();
    final CountDownLatch latch = new CountDownLatch(1);
   
    dmm.modelAgent.submit(new Callable<Void>() {
      @Override
      public Void call() throws Exception {
        latch.countDown();
        new CountDownLatch(1).await(); // wait until interrupted
        throw DeeCore.createCoreException("error", new Exception());
      }
    });
    latch.await();
    // Test that shutdown happens successfully even with pending task, and no log entries are made.
    dmm.shutdownManager();
  }
View Full Code Here

TOP

Related Classes of mmrnmhrm.core.workspace.WorkspaceModelManager$SearchCompilersOnPathOperation_Eclipse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.