<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mocking static methods in Java system classes</title>
	<atom:link href="http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mock de métodos estáticos em Java &#124; victor serta /blog</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-79422</link>
		<dc:creator>Mock de métodos estáticos em Java &#124; victor serta /blog</dc:creator>
		<pubDate>Thu, 19 Jan 2012 11:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-79422</guid>
		<description>[...] Mocking static methods in Java system classes [...]</description>
		<content:encoded><![CDATA[<p>[...] Mocking static methods in Java system classes [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zaghman</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-78737</link>
		<dc:creator>zaghman</dc:creator>
		<pubDate>Tue, 20 Sep 2011 09:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-78737</guid>
		<description>its a great article.i tried to implement the above example but i got an exception 
java.lang.IllegalArgumentException: temp.ClassWithStaticMethod is not an interface
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:24)
	at org.easymock.internal.MocksControl.createMock(MocksControl.java:51)
	at org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212)
	at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2163)
	at org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)
	at temp.MockStaticExampleTest1.MockStaticMethodToReturnSix(MockStaticExampleTest1.java:17)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:307)
	at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)
	at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:112)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:73)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
	at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
	at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)
	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:102)
	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Any help?</description>
		<content:encoded><![CDATA[<p>its a great article.i tried to implement the above example but i got an exception<br />
java.lang.IllegalArgumentException: temp.ClassWithStaticMethod is not an interface<br />
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)<br />
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)<br />
	at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:24)<br />
	at org.easymock.internal.MocksControl.createMock(MocksControl.java:51)<br />
	at org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212)<br />
	at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2163)<br />
	at org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)<br />
	at temp.MockStaticExampleTest1.MockStaticMethodToReturnSix(MockStaticExampleTest1.java:17)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:585)<br />
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:307)<br />
	at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)<br />
	at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:112)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:73)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)<br />
	at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)<br />
	at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)<br />
	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)<br />
	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)<br />
	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)<br />
	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:102)<br />
	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)<br />
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)<br />
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)</p>
<p>Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan Haleby</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-78720</link>
		<dc:creator>Johan Haleby</dc:creator>
		<pubDate>Sun, 18 Sep 2011 08:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-78720</guid>
		<description>Please continue the conversation on the mailing-list and include an example of the code you&#039;re trying to test as well as your test.</description>
		<content:encoded><![CDATA[<p>Please continue the conversation on the mailing-list and include an example of the code you&#8217;re trying to test as well as your test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-78709</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 16 Sep 2011 20:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-78709</guid>
		<description>Thanks for the reply Johan, but unfortunately I can&#039;t get those examples to work either.
The framework throws an IllegalArgumentException on the mockStatic(System.class):
java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
	at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:12)
	at org.easymock.internal.MocksControl.createMock(MocksControl.java:37)
	at org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212)
	at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2134)
	at org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)

I know this isn&#039;t the place for Q&amp;A but do you have any tips I could try?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Thanks for the reply Johan, but unfortunately I can&#8217;t get those examples to work either.<br />
The framework throws an IllegalArgumentException on the mockStatic(System.class):<br />
java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface<br />
	at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)<br />
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)<br />
	at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:12)<br />
	at org.easymock.internal.MocksControl.createMock(MocksControl.java:37)<br />
	at org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212)<br />
	at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2134)<br />
	at org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)</p>
<p>I know this isn&#8217;t the place for Q&amp;A but do you have any tips I could try?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-78695</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 15 Sep 2011 16:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-78695</guid>
		<description>Hi Thomas, 

It should work with 1.4.10 as well. Have a look at http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/mockito/junit4/src/test/java/samples/powermockito/junit4/system/SystemClassUserTest.java for a Mockito example and http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/easymock/junit4-test/src/test/java/samples/junit4/system/SystemClassUserTest.java for EasyMock.

/Johan</description>
		<content:encoded><![CDATA[<p>Hi Thomas, </p>
<p>It should work with 1.4.10 as well. Have a look at <a href="http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/mockito/junit4/src/test/java/samples/powermockito/junit4/system/SystemClassUserTest.java" rel="nofollow">http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/mockito/junit4/src/test/java/samples/powermockito/junit4/system/SystemClassUserTest.java</a> for a Mockito example and <a href="http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/easymock/junit4-test/src/test/java/samples/junit4/system/SystemClassUserTest.java" rel="nofollow">http://code.google.com/p/powermock/source/browse/trunk/modules/module-test/easymock/junit4-test/src/test/java/samples/junit4/system/SystemClassUserTest.java</a> for EasyMock.</p>
<p>/Johan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-78692</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 15 Sep 2011 14:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-78692</guid>
		<description>Great article! But can you tell me which version of PowerMock is used? I can&#039;t get it to work using version 1.4.10...</description>
		<content:encoded><![CDATA[<p>Great article! But can you tell me which version of PowerMock is used? I can&#8217;t get it to work using version 1.4.10&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-68775</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Thu, 02 Dec 2010 14:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-68775</guid>
		<description>Please use the powermock mailing list to post questions.</description>
		<content:encoded><![CDATA[<p>Please use the powermock mailing list to post questions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prajakta</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-57175</link>
		<dc:creator>Prajakta</dc:creator>
		<pubDate>Tue, 21 Sep 2010 06:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-57175</guid>
		<description>its a nice an most useful  artical</description>
		<content:encoded><![CDATA[<p>its a nice an most useful  artical</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dev_Alf</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-52565</link>
		<dc:creator>Dev_Alf</dc:creator>
		<pubDate>Wed, 11 Aug 2010 22:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-52565</guid>
		<description>Hi, I have problems with &#039;final&#039; attributes.
I saw your tutorial with &#039;final&#039; classes, but if I have the following situation:

public final class ClassA {
    public static final String ATTRIBUTE_A= &quot;attA&quot;;
    public static final String ATTRIBUTE_B = &quot;attB&quot;;
    public static String user;
    public static String password;
...
}

How can I do to &#039;mock&#039; these static and final attributes? like this:
when(ClaseA.user).thenReturn(&quot;admin&quot;);

Is it possible?

Thanks! I will wait your answer.</description>
		<content:encoded><![CDATA[<p>Hi, I have problems with &#8216;final&#8217; attributes.<br />
I saw your tutorial with &#8216;final&#8217; classes, but if I have the following situation:</p>
<p>public final class ClassA {<br />
    public static final String ATTRIBUTE_A= &#8220;attA&#8221;;<br />
    public static final String ATTRIBUTE_B = &#8220;attB&#8221;;<br />
    public static String user;<br />
    public static String password;<br />
&#8230;<br />
}</p>
<p>How can I do to &#8216;mock&#8217; these static and final attributes? like this:<br />
when(ClaseA.user).thenReturn(&#8220;admin&#8221;);</p>
<p>Is it possible?</p>
<p>Thanks! I will wait your answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brahma</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-51064</link>
		<dc:creator>Brahma</dc:creator>
		<pubDate>Tue, 03 Aug 2010 17:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-51064</guid>
		<description>Code Snippet:

@RunWith(PowerMockRunner.class)
@PrepareForTest( value = { Util.class, Translator.class,
		TranslatorTest.class })
public class TranslatorTest extends TestCase {

public void testGetTranslate() throws Throwable {
		EncryptParams mockEncryptParams = getMockEncryptParams();
		PowerMock.mockStatic(Util.class);
                PowerMock.expectPrivate(Util.class,\loadConfig\);
		
		PowerMock.replay(Util.class);
		
		assertEquals(\ASCIITOEBCDIC\,  Translator.getTranslateType(mockEncryptParams));
		
		PowerMock.verify(Util.class);
	}

}

*** where \loadConfig\ is a private static method in Util.class

why i am getting the below exception


java.lang.IllegalStateException: no last call on a mock available
	at org.easymock.EasyMock.getControlForLastCall(EasyMock.java:521)
	at org.easymock.EasyMock.expectLastCall(EasyMock.java:512)
	at org.powermock.api.easymock.PowerMock.doExpectPrivate(PowerMock.java:2247)
	at org.powermock.api.easymock.PowerMock.expectPrivate(PowerMock.java:1409)</description>
		<content:encoded><![CDATA[<p>Code Snippet:</p>
<p>@RunWith(PowerMockRunner.class)<br />
@PrepareForTest( value = { Util.class, Translator.class,<br />
		TranslatorTest.class })<br />
public class TranslatorTest extends TestCase {</p>
<p>public void testGetTranslate() throws Throwable {<br />
		EncryptParams mockEncryptParams = getMockEncryptParams();<br />
		PowerMock.mockStatic(Util.class);<br />
                PowerMock.expectPrivate(Util.class,\loadConfig\);</p>
<p>		PowerMock.replay(Util.class);</p>
<p>		assertEquals(\ASCIITOEBCDIC\,  Translator.getTranslateType(mockEncryptParams));</p>
<p>		PowerMock.verify(Util.class);<br />
	}</p>
<p>}</p>
<p>*** where \loadConfig\ is a private static method in Util.class</p>
<p>why i am getting the below exception</p>
<p>java.lang.IllegalStateException: no last call on a mock available<br />
	at org.easymock.EasyMock.getControlForLastCall(EasyMock.java:521)<br />
	at org.easymock.EasyMock.expectLastCall(EasyMock.java:512)<br />
	at org.powermock.api.easymock.PowerMock.doExpectPrivate(PowerMock.java:2247)<br />
	at org.powermock.api.easymock.PowerMock.expectPrivate(PowerMock.java:1409)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fengguanghui</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-39137</link>
		<dc:creator>fengguanghui</dc:creator>
		<pubDate>Mon, 17 May 2010 09:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-39137</guid>
		<description>Thanks very much ! ：）
I’ve been looking for this issue for a long time — mocking static method</description>
		<content:encoded><![CDATA[<p>Thanks very much ! ：）<br />
I’ve been looking for this issue for a long time — mocking static method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mocking Statics and java.lang.IllegalStateException: no last call on a mock available &#124; JSF Blog</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-26151</link>
		<dc:creator>Mocking Statics and java.lang.IllegalStateException: no last call on a mock available &#124; JSF Blog</dc:creator>
		<pubDate>Fri, 19 Feb 2010 11:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-26151</guid>
		<description>[...] An excellent article discussing mocking statics by one of the PowerMock developers can be found here: http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/ [...]</description>
		<content:encoded><![CDATA[<p>[...] An excellent article discussing mocking statics by one of the PowerMock developers can be found here: <a href="http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/" rel="nofollow">http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergii Pogodin</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-19370</link>
		<dc:creator>Sergii Pogodin</dc:creator>
		<pubDate>Sat, 19 Dec 2009 11:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-19370</guid>
		<description>Man, thanks alot for this one.
Please specify either import statements or full invocation path, i.e. PowerMock.mockStatic(...), EasyMock.expect(...) and so on.
Coz it&#039;s quite not obvious.</description>
		<content:encoded><![CDATA[<p>Man, thanks alot for this one.<br />
Please specify either import statements or full invocation path, i.e. PowerMock.mockStatic(&#8230;), EasyMock.expect(&#8230;) and so on.<br />
Coz it&#8217;s quite not obvious.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicholas</title>
		<link>http://blog.jayway.com/2009/05/17/mocking-static-methods-in-java-system-classes/comment-page-1/#comment-9152</link>
		<dc:creator>Nicholas</dc:creator>
		<pubDate>Mon, 10 Aug 2009 12:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=1714#comment-9152</guid>
		<description>Thanks very much !   ：）
I&#039;ve been looking for this issue for a long time  -- mocking static method</description>
		<content:encoded><![CDATA[<p>Thanks very much !   ：）<br />
I&#8217;ve been looking for this issue for a long time  &#8212; mocking static method</p>
]]></content:encoded>
	</item>
</channel>
</rss>

