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
Testing of system.out.println
how to test void method.
testing void methods which insert in database
Help need to write a test junit test case
Object HashCode in HashMap
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015