The example apps don't make use of any mocking tool per se.
The Fish & Chips example app has some junit tests.
That's really all I can do for you.
- John.
Swati Khandelwal
unread,
Dec 4, 2014, 1:47:24 AM12/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web4j...@googlegroups.com
What we can see in fish & Chips application is that there is a usage of fake classes. But, by doing so, we modify the code and technically, this should not happen. It would be great if you could give us a clear picture on how the JUnit test cases can be written for Prediction application.
John O'Hanley
unread,
Dec 4, 2014, 7:44:35 AM12/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web4j...@googlegroups.com
No, you're not modifying the code being tested. It remains the same. Otherwise it wouldn't be a real test.
The junit test cases can be written for the Predictions app in the same way as shown in the Fish app.