mfaust35 / flash_card_m

Another test application based on Flash Card concept
0 stars 0 forks source link

Can't mock date in Android tests #34

Open mfaust35 opened 5 years ago

mfaust35 commented 5 years ago

This is a known bug of mockk.io : issue 253 (https:// github.com/mockk/ mockk/issues/253) (link has space but if I remove them then it automatically links toward Mockk.io github, which I don't want) Does not looks like it will be solved easily.

Decide how to handle mockk date :

replace java.util.Date by my own class? do not mock date (but it also make it impossible to mockk object/fun that return a date)