Skip to content

Instantly share code, notes, and snippets.

Created August 10, 2020 00:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
fun `should retrieve talks`() {
val mockedTalk = mock(
// this resulted Talk Object is invalid, the source of truth is the duration
// but here with mockito we overload the format computation logic
val recommendTalks = TalksAdvisor(searchTalks, recommendations, profiles)
val recommendation = recommendTalks.satisfying(GuestCriteria(setOf(), setOf(IGNITE)))
assertThat(recommendation.talks).containsExactly(mockedTalk) //it should have been filtered
//the test is incorrect but will still pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment