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");
}
Aggregations