@@ -78,7 +79,7 @@ public class AnnotatedLargeTextTest {
StringWriterw=newStringWriter();
text.writeHtmlTo(0,w);
assertEquals("hellothere\n",w.toString());
// TODO expect log record with message "Failed to resurrect annotation" and IOException with message "Refusing to deserialize unsigned note from an old log."
assertThat(logging.getMessages(),hasItem("Failed to resurrect annotation"));// TODO assert that this is IOException: Refusing to deserialize unsigned note from an old log.
ConsoleNote.INSECURE=true;
try{
w=newStringWriter();
...
...
@@ -101,7 +102,7 @@ public class AnnotatedLargeTextTest {
StringWriterw=newStringWriter();
text.writeHtmlTo(0,w);
assertEquals("Go back to your home.\n",w.toString());
// TODO expect log record with message "Failed to resurrect annotation" and IOException with message "MAC mismatch"
assertThat(logging.getMessages(),hasItem("Failed to resurrect annotation"));// TODO assert that this is IOException: MAC mismatch
}
/** Simplified version of {@link HyperlinkNote}. */