mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-501: minor test update
This commit is contained in:
parent
6180c8677f
commit
195284790e
1 changed files with 3 additions and 1 deletions
|
|
@ -65,11 +65,13 @@ public class SearchServiceTest {
|
|||
|
||||
@Test //(expected=IllegalStateException.class)
|
||||
public void canNotSearchBeforeIndexing() {
|
||||
//given no notebookIndex.index() was made
|
||||
//given NO notebookIndex.index() was called
|
||||
//when
|
||||
List<Map<String, String>> result = notebookIndex.search("anything");
|
||||
//then
|
||||
assertThat(result).isEmpty();
|
||||
//assert logs were printed
|
||||
//"ERROR org.apache.zeppelin.search.SearchService:97 - Failed to open index dir RAMDirectory"
|
||||
}
|
||||
|
||||
@Test public void canIndexAndReIndex() throws IOException {
|
||||
|
|
|
|||
Loading…
Reference in a new issue