Hi there, It'd be great if there was a default constructor for NotificationManager or if the existing constructor was made protected instead of package-private. It is impossible to extend the NotificationManager, and thus impossible to mock. The pattern Android uses with context.getSystemService(), and the fact that there is a provided MockContext, implies that I should be able to mock getSystemService and return my own mock services for testing. TDD should not be this hard :(
Thanks, Sara -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

