Skip to content

Instantly share code, notes, and snippets.

@tbelmega
Last active April 27, 2019 08:53
Show Gist options
  • Save tbelmega/da85636992bb6e044c0bc69dfebb2812 to your computer and use it in GitHub Desktop.
Save tbelmega/da85636992bb6e044c0bc69dfebb2812 to your computer and use it in GitHub Desktop.
@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