your @Test so far seem to be testing well behaved users that use the app in a logical flow, but it is very important that your app does not break on "misuse" so you should think what kind of misuse cases are possible in your application and test those. It might help to think of a completely drunk user that has no idea what it is doing and started using your app in that state of mind.
For example what is the expected reaction on your app for a user that tries to save an empty string? and what about a blank string, that contains only white-spaces?
You should make it clear on description what should happen in those cases and test for them.
Also think of situations that the implementation might just crash, what happens with an implementation if the user presses undo with no content? does it throw any kind of error?
You should test those cases too. If exceptions are thrown they will be captured by testActivity method and there will be a convenient error message so there is no need to worry with capturing error on your test
your @Test so far seem to be testing well behaved users that use the app in a logical flow, but it is very important that your app does not break on "misuse" so you should think what kind of misuse cases are possible in your application and test those. It might help to think of a completely drunk user that has no idea what it is doing and started using your app in that state of mind.
For example what is the expected reaction on your app for a user that tries to save an empty string? and what about a blank string, that contains only white-spaces?
You should make it clear on description what should happen in those cases and test for them.
Also think of situations that the implementation might just crash, what happens with an implementation if the user presses undo with no content? does it throw any kind of error?
You should test those cases too. If exceptions are thrown they will be captured by testActivity method and there will be a convenient error message so there is no need to worry with capturing error on your test