Search in sources :

Example 6 with NotebookRepo

use of org.apache.zeppelin.notebook.repo.NotebookRepo in project zeppelin by apache.

the class HeliumApplicationFactoryTest method setUp.

@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    // set AppEventListener properly
    for (InterpreterSetting interpreterSetting : interpreterSettingManager.get()) {
        interpreterSetting.setAppEventListener(heliumAppFactory);
    }
    AuthorizationService authorizationService = mock(AuthorizationService.class);
    notebookRepo = mock(NotebookRepo.class);
    notebook = new Notebook(conf, authorizationService, notebookRepo, new NoteManager(notebookRepo, ZeppelinConfiguration.create()), interpreterFactory, interpreterSettingManager, new Credentials());
    heliumAppFactory = new HeliumApplicationFactory(notebook, null);
    notebook.addNotebookEventListener(heliumAppFactory);
    anonymous = new AuthenticationInfo("anonymous");
}
Also used : NotebookRepo(org.apache.zeppelin.notebook.repo.NotebookRepo) Notebook(org.apache.zeppelin.notebook.Notebook) AuthorizationService(org.apache.zeppelin.notebook.AuthorizationService) InterpreterSetting(org.apache.zeppelin.interpreter.InterpreterSetting) NoteManager(org.apache.zeppelin.notebook.NoteManager) Credentials(org.apache.zeppelin.user.Credentials) AuthenticationInfo(org.apache.zeppelin.user.AuthenticationInfo) Before(org.junit.Before)

Aggregations

NotebookRepo (org.apache.zeppelin.notebook.repo.NotebookRepo)6 AuthorizationService (org.apache.zeppelin.notebook.AuthorizationService)3 NoteManager (org.apache.zeppelin.notebook.NoteManager)3 Notebook (org.apache.zeppelin.notebook.Notebook)3 VFSNotebookRepo (org.apache.zeppelin.notebook.repo.VFSNotebookRepo)3 Credentials (org.apache.zeppelin.user.Credentials)3 Before (org.junit.Before)3 InterpreterSetting (org.apache.zeppelin.interpreter.InterpreterSetting)2 GitNotebookRepo (org.apache.zeppelin.notebook.repo.GitNotebookRepo)2 Test (org.junit.Test)2 File (java.io.File)1 IOException (java.io.IOException)1 URLClassLoader (java.net.URLClassLoader)1 ZeppelinConfiguration (org.apache.zeppelin.conf.ZeppelinConfiguration)1 AbstractInterpreterTest (org.apache.zeppelin.interpreter.AbstractInterpreterTest)1 Interpreter (org.apache.zeppelin.interpreter.Interpreter)1 InterpreterFactory (org.apache.zeppelin.interpreter.InterpreterFactory)1 InterpreterResult (org.apache.zeppelin.interpreter.InterpreterResult)1 InterpreterSettingManager (org.apache.zeppelin.interpreter.InterpreterSettingManager)1 ManagedInterpreterGroup (org.apache.zeppelin.interpreter.ManagedInterpreterGroup)1