Thanks for creating Carlos Daniel! This is a great start for me to think about testing my ViewModel.

I recently refactored the main feed of Coinverse’s Open App with the Unidirectional Data Flow (UDF) pattern to organize logic. A major expectation is that it will make JUnit testing easier.

Now that I have the arch. components built, I’m refactoring the ViewModel by injecting components inside of it (ie — Database, Repository, Analytics, etc.) to make local JUnit testing possible without needing to obtain Application Context.

Question — When queryAuctionById_WithAuctionValue and queryAuctionById_WithNoAuctionValue test querying and removing from the AuctionCreationRepository, is it testing the actual Repository, or is some sort of mocking required?

Creator of Coinverse - The 1st Crypto News Audiocast App @ bit.ly/play-coin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store