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?