コード例 #1
0
  @Before
  public void setUp() throws IOException {
    File dataDir = tempDir.getRoot();
    when(settings.getDocumentrDataDir()).thenReturn(dataDir);

    macrosDir = new File(dataDir, GroovyMacroScanner.MACROS_DIR_NAME);
    File macroFile = new File(macrosDir, MACRO_NAME + ".groovy"); // $NON-NLS-1$
    FileUtils.writeStringToFile(macroFile, MACRO, Charsets.UTF_8);

    scanner.init();
  }
コード例 #2
0
  @Before
  public void setUp() {
    File dataDir = tempDir.getRoot();

    when(settings.getDocumentrDataDir()).thenReturn(dataDir);

    globalRepoManager = new GlobalRepositoryManager();
    Whitebox.setInternalState(globalRepoManager, settings, repoManagerFactory, eventBus);
    globalRepoManager.init();

    pageStore = new PageStore();
    Whitebox.setInternalState(pageStore, globalRepoManager, eventBus);
  }