Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import org.junit.jupiter.api.DisplayName;
class BookmarkRepositoryTest {
@DisplayName("Should save a bookmark")
void should_save_bookmark(Bookmark bookmark) {}
@DisplayName("When a bookmark is saved")
class WhenBookmarkIsSaved {
@DisplayName("it's not possible to save it again")
void should_not_save_an_already_existent_bookmark() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment