Package org.bladerunnerjs.testing.utility

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


  @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

    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

 
  @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

    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

  }
 
 
  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

  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

Related Classes of org.bladerunnerjs.testing.utility.TestLoggerFactory

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.