logo       

Sakai Test-Harness: Unit Test Providers: msg#00733

cms.sakai.devel

Subject: Sakai Test-Harness: Unit Test Providers

Hello,

I wanted to check if anybody has used the Test-Harness to Unit test their custom provider implementations. We created an ucd-enterprise- data-service that provides a DAO layer for our SIS. This service is accessed by our custom providers. We are successfully unit testing this service with the help of the Test-Harness. Now we would like to unit test our provider implementation. To do so, this would require to create a bunch of mock objects such as UserEditMock etc. that we cold pass to the provider methods. For now we just test APIs that use primitive types such as "userExits(String userId)" but we would like to test "getUser(UserEdit userEdit)", etc. methods as well.

Has anybody done this, and if so, are there such mock objects somewhere?

Best,

Thomas Amsler
Programmer
IET Mediaworks, UC Davis
tpamsler@xxxxxxxxxxx
tamsler@xxxxxxxxxxxxxxxx
W: (530) 754-5198 (Mediaworks)
W: (530) 757-8331 (PSL)
M: (916) 803-2226



[see attachment: "message0.html", size: 3764 bytes]


Attachments:

message0.html
http://collab.sakaiproject.org/access/content/attachment/ccb43c33-c381-4237-80c3-3ef2b792bcbd/message0.html

----------------------
This automatic notification message was sent by Sakai Collab
(http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise