Package org.bladerunnerjs.testing.utility

Examples of org.bladerunnerjs.testing.utility.StubLoggerFactory


  private TimeAccessor timeAccessor = new TestTimeAccessor();
  private final IO io = new IO();
 
  public TestRootNode(File dir) throws InvalidSdkDirectoryException
  {
    this(dir, new StubLoggerFactory());
  }
View Full Code Here


    mkfile("root-dir/outgoing-dir/watched-file");
    mkfile("root-dir/outgoing-dir/unwatched-file");
    mkfile("root-dir/control-file");
   
    // initialize watching service
    fileModificationService.initialise(tempDir, new RealTimeAccessor(), new BRJSFileInfoAccessor(fileModificationService, new StubLoggerFactory()));
   
    // watch files and directories
    watch("root-dir");
    watch("root-dir/active-dir");
    watch("root-dir/active-dir/active-file");
View Full Code Here

  protected BRJS createModel(File brjsDir, PluginLocator pluginLocator, FileModificationService fileModificationService, LoggerFactory loggerFactory, AppVersionGenerator appVersionGenerator) throws InvalidSdkDirectoryException
  {
    pluginLocator = (pluginLocator != null) ? pluginLocator : new MockPluginLocator();
    fileModificationService = (fileModificationService != null) ? fileModificationService : new ReadWriteCompatiblePessimisticFileModificationService();
    loggerFactory = (loggerFactory != null) ? loggerFactory : new StubLoggerFactory();
    appVersionGenerator = (appVersionGenerator != null) ? appVersionGenerator : new MockAppVersionGenerator();   
   
    BRJS brjs = new BRJS(brjsDir, pluginLocator, loggerFactory, new TestTimeAccessor(), appVersionGenerator);
    brjs.setFileModificationService(fileModificationService);
   
View Full Code Here

    new File(tempSdkDir, "sdk").mkdir();
    MockPluginLocator pluginLocator = new MockPluginLocator();
    pluginLocator.assetLocationPlugins.addAll(PluginLoader.createPluginsOfType(Mockito.mock(BRJS.class), AssetLocationPlugin.class, VirtualProxyAssetLocationPlugin.class));
    pluginLocator.assetPlugins.addAll(PluginLoader.createPluginsOfType(Mockito.mock(BRJS.class), AssetPlugin.class, VirtualProxyAssetPlugin.class));
   
    BRJS brjs = new BRJS(tempSdkDir, pluginLocator, new StubLoggerFactory(), new RealTimeAccessor(), new MockAppVersionGenerator());
   
    return brjs;
  }
View Full Code Here

TOP

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

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.