This commit is contained in:
Paolo Genissel 2017-08-14 14:56:10 +02:00
parent 5c43ca957a
commit a67af0faf5

View file

@ -1115,7 +1115,7 @@ public class NotebookTest implements JobListenerFactory{
notebook.getNotebookAuthorization().setOwners(note2.getId(), Sets.newHashSet("user2"));
notebook.getNotebookAuthorization().setWriters(note2.getId(), Sets.newHashSet("user2"));
notebook.getNotebookAuthorization().setReaders(note2.getId(), Sets.newHashSet("user2"));
notebook.getNotebookAuthorization().setRunners(note1.getId(), Sets.newHashSet("user2"));
notebook.getNotebookAuthorization().setRunners(note2.getId(), Sets.newHashSet("user2"));
assertEquals(0, notebook.getAllNotes(Sets.newHashSet("anonymous")).size());
assertEquals(1, notebook.getAllNotes(Sets.newHashSet("user1")).size());
assertEquals(1, notebook.getAllNotes(Sets.newHashSet("user2")).size());