Created
July 14, 2022 22:25
-
-
Save beyondxscratch/eaa8fcb86fb0222231b0c8e5119258d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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