Last active
April 27, 2019 08:53
-
-
Save tbelmega/da85636992bb6e044c0bc69dfebb2812 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
@Test | |
fun `findMostOrderedProducts - no orders in db - return empty list`() { | |
// given | |
productRepository.save(Product("1", "Ryzen 7 2700X", "AMD")) | |
productRepository.save(Product("2", "Core i9 9900K", "Intel")) | |
// when | |
val foundProducts = productRepository.findMostOrderedProducts(1) | |
// then | |
assertThat(foundProducts).isEmpty() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment