Question:

Java Junit Query -test static methods?

by  |  earlier

0 LIKES UnLike

G'day,

I was just wondering how to test static methods for a given class using Junit in Eclipse?

Any help would be greatly appreciated,

David

 Tags:

   Report

1 ANSWERS


  1. The same way as you would test an instance method except without the instance.  Just invoke classname.methodname() with the proper arguments.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.