private static void testWriteNoteEntry(DoubanService myService) { NoteEntry noteEntry; try { String content = "立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春立春"; noteEntry = myService.createNote( new PlainTextConstruct("立春"), new PlainTextConstruct(content), "public", "yes"); printNoteEntry(noteEntry); String content2 = "立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋立秋"; myService.updateNote( noteEntry, new PlainTextConstruct("立秋"), new PlainTextConstruct(content2), "public", "no"); myService.deleteNote(noteEntry); } catch (IOException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } }