File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iterator in EasyMock

 
vivek dhiman
Ranch Hand
Posts: 152
Netbeans IDE Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have the below function which i want to test.



TestCase so far i written is :



I am not sure how to proceed with iterator in testcase. Can someone provide the snippet how to use this.

Thanks
 
Tim Cooke
Sheriff
Pie
Posts: 2706
110
Clojure IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The while loop serves no purpose in that method at all. What do you want to assert?

The use of EasyMock makes your test code look really unpleasant. It might be easier to construct a real Session object instead.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic