File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Junit, Jmock test: how to test a void method
Mi Na Mi
Joined: Jan 09, 2012
Jan 09, 2012 02:27:01
I'd like to ask a question, how can I
a void method.
For example smth like this
some objects, which state can be changed.
I mock some objects, but I have no idea how to test a method which does not return anything....
Joined: Jul 14, 2010
Jan 09, 2012 06:31:53
Does the method throws an Exception?
Does the method change the stated of an object (that goes as parameter)?
Full WebApplication JSF EJB JPA JAAS with source code to download
One Table Per SubClass
I agree. Here's the link:
subject: Junit, Jmock test: how to test a void method
Help need to write a test junit test case
Testing of system.out.println
Object HashCode in HashMap
how to test void method.
testing void methods which insert in database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014