Skip to content

Instantly share code, notes, and snippets.

@beyondxscratch
Created July 14, 2022 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beyondxscratch/eaa8fcb86fb0222231b0c8e5119258d4 to your computer and use it in GitHub Desktop.
Save beyondxscratch/eaa8fcb86fb0222231b0c8e5119258d4 to your computer and use it in GitHub Desktop.
import org.junit.jupiter.api.DisplayName;
@DisplayName("BookmarkRepository")
class BookmarkRepositoryTest {
@Test
@DisplayName("Should save a bookmark")
void should_save_bookmark(Bookmark bookmark) {}
@Nested
@DisplayName("When a bookmark is saved")
class WhenBookmarkIsSaved {
@Test
@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