Examples of TestLoggerFactory


Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

  private BRJS brjs;
 
  @Before
  public void setup() throws Exception
  {
    brjs = createModel(testBase, new TestLoggerFactory(new LogMessageStore()));
    nodeTesterFactory = new NodeTesterFactory<>(brjs, BRJS.class);
  }
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

  @Before
  public void setup() throws Exception
  {
    logStore = new LogMessageStore(true);
    brjs = createModel(new File("src/test/resources/BRJSTest"), new TestLoggerFactory(logStore));
  }
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

    tempDir = FileUtility.createTemporaryDirectory( this.getClass() );
    watchFile = new File(tempDir, "watch-file");
    sdkDir = new File(tempDir, "sdk");
   
    sdkDir.mkdir();
    brjs = createModel(sdkDir, new MockPluginLocator(), new OptimisticFileModificationService(), new TestLoggerFactory(new LogMessageStore()), new MockAppVersionGenerator());
    watchFileInfo = brjs.getFileInfo(watchFile);
  }
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

 
  @Test
  public void exceptionsFromANodeObserverDoNotGetPropagatedAndAnErrorIsLogged() throws Exception
  {
    LogMessageStore logStore = new LogMessageStore(true);
    TestRootNode rootNode = new TestRootNode( new File(TEST_DIR, "brjs-root-node"), new TestLoggerFactory(logStore) );
   
    EventObserver observer = mock(EventObserver.class);
    RuntimeException ex = new RuntimeException();
    doThrow(ex).when(observer).onEventEmitted(any(Event.class), eq(rootNode));
   
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

    return createModel(brjsDir, null, fileModificationService, null, null);
  }
 
  protected BRJS createModel(File brjsDir, PluginLocator pluginLocator, LogMessageStore logStore, AppVersionGenerator versionGenerator) throws InvalidSdkDirectoryException
 
    return createModel(brjsDir, pluginLocator, null, new TestLoggerFactory(logStore), versionGenerator);
  }
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

  }
 
 
  public BRJS createNonTestModel(File brjsDir, LogMessageStore logStore) throws InvalidSdkDirectoryException
  {
    LoggerFactory loggerFactory = new TestLoggerFactory(logStore);
    FileModificationService fileModificationService = new Java7FileModificationService(loggerFactory);
    return createNonTestModel(brjsDir, logStore, loggerFactory, fileModificationService);
  }
View Full Code Here

Examples of org.bladerunnerjs.testing.utility.TestLoggerFactory

  public BRJS createNonTestModel() throws InvalidSdkDirectoryException {
    return super.createNonTestModel(testSdkDirectory, logging);
  }
 
  public BRJS createNonTestModelWithTestFileObserver() throws InvalidSdkDirectoryException {
    return super.createNonTestModel(testSdkDirectory, logging, new TestLoggerFactory(logging), new PessimisticFileModificationService());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.