Package com.evernote.edam.type

Examples of com.evernote.edam.type.Notebook


   * @param linkedNotebook
   */
  public boolean isNotebookWritable(LinkedNotebook linkedNotebook)
      throws EDAMUserException, TException, EDAMSystemException,
      EDAMNotFoundException {
    Notebook notebook = getCorrespondingNotebook(linkedNotebook);
    return !notebook.getRestrictions().isNoCreateNotes();
  }
View Full Code Here


    if (token == null) {
      NoteStoreClient noteStoreClient = mock(NoteStoreClient.class);

      SharedNotebook sharedNotebook = new SharedNotebook();

      Notebook createdNotebook = new Notebook();
      createdNotebook.setSharedNotebooks(Arrays.asList(sharedNotebook));
      stub(noteStoreClient.createNotebook(isA(Notebook.class))).toReturn(
          createdNotebook);

      NoteStoreClient personalClient = mock(NoteStoreClient.class);
View Full Code Here

    }
  }

  @Test
  public void testCreateNotebook() throws Exception {
    Notebook notebook = new Notebook();
    notebook.setName("BusinessNoteStoreClientTest#testCreateNotebook");
    LinkedNotebook createdLinkedNotebook = client.createNotebook(notebook);
    assertNotNull(createdLinkedNotebook);
  }
View Full Code Here

      stub(noteStoreClient.createNote(isA(Note.class))).toReturn(createdNote);

      NotebookRestrictions restrictions = new NotebookRestrictions();
      restrictions.setNoCreateNotes(false);

      Notebook createdNotebook = new Notebook();
      createdNotebook.setRestrictions(restrictions);
      stub(noteStoreClient.createNotebook(isA(Notebook.class))).toReturn(
          createdNotebook);
      stub(noteStoreClient.getNotebook(anyString())).toReturn(createdNotebook);

      SharedNotebook sharedNotebook = new SharedNotebook();
View Full Code Here

    assertNotNull(listLinkedNotebooks);
  }

  @Test
  public void testGetCorrespondingNotebook() throws Exception {
    Notebook notebook = client.getCorrespondingNotebook(linkedNotebook);
    assertNotNull(notebook);
  }
View Full Code Here

TOP

Related Classes of com.evernote.edam.type.Notebook

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.