Results 1 to 4 of 4
Thread: Mocking static methods of class
- 11-01-2007, 07:07 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 2
- Rep Power
- 0
- 11-01-2007, 04:17 PM #2
Member
- Join Date
- Nov 2007
- Location
- New Zealand
- Posts
- 36
- Rep Power
- 0
source: tododoingdone: Mocking static methods?It is possible to mock static methods by using the new Java 5 instrumentaion framework.
There is a project jmockit (https://jmockit.dev.java.net/) that does exactly this.
- 11-02-2007, 10:45 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 2
- Rep Power
- 0
Thanks but..........
Thanks, I am aware of jmockit but can't use it because I have been provided with a Weblogic that works on jre1.4 . Is there any other way to achieve it??:(
- 11-08-2007, 12:24 AM #4
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
Try with https://jeasytest.dev.java.net/ is an Eclipse plugin that can mock constructor and static method invocations
Similar Threads
-
Abstract Class with Static Methods
By bugger in forum New To JavaReplies: 7Last Post: 09-05-2008, 12:20 AM -
Static methods - not working
By Echilon in forum New To JavaReplies: 2Last Post: 12-21-2007, 01:31 PM -
Why methods in an interface cannot be static?
By cbalu in forum Advanced JavaReplies: 2Last Post: 12-12-2007, 07:57 PM -
Static methods
By Java Tip in forum Java TipReplies: 0Last Post: 11-04-2007, 05:56 PM -
significance of static variables and methods
By imran_khan in forum New To JavaReplies: 4Last Post: 08-02-2007, 09:52 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks