Comments (10)
There seems to be a work-around:
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>pertest</forkMode>
</configuration>
</plugin>
</plugins>
</build>
Original comment by [email protected]
on 1 Oct 2008 at 9:54
from powermock.
Original comment by [email protected]
on 16 Oct 2008 at 5:32
- Added labels: Priority-Low
- Removed labels: Priority-Critical
from powermock.
The workaround is good enough for now
Original comment by [email protected]
on 17 Nov 2008 at 12:30
- Changed state: Fixed
from powermock.
I don't think workaround is good enough. With the work around, I still get the
Unable to get lock on
/home/h_maf/hudson/data/jobs/mplus-services-applications/workspace/mplus_service
s/applications/routing/ServiceEndpointRouter/target/cobertura/cobertura.ser.lock
:
null
This is known to happen on Linux kernel 2.6.20.
Make sure cobertura.jar is in the root classpath of the jvm
process running the instrumented code. If the instrumented code
is running in a web server, this means cobertura.jar should be in
the web server's lib directory.
Don't put multiple copies of cobertura.jar in different WEB-INF/lib directories.
Only one classloader should load cobertura. It should be the root classloader.
Original comment by [email protected]
on 3 Aug 2009 at 8:31
from powermock.
The workaround is not good enough since it slows our build down from 40s to 14
minutes!! Can someone unfix this issue and suggest a more appropriate solution?
Original comment by [email protected]
on 3 Dec 2009 at 12:25
from powermock.
I looked into it a year ago and I couldn't find any solution other than this.
It's
quite a known problem if you google for it. If you have any ideas on how to
solve
this please share them with us.
Original comment by [email protected]
on 3 Dec 2009 at 12:33
from powermock.
[deleted comment]
from powermock.
Ignore my last comment. New issue is here:
http://code.google.com/p/powermock/issues/detail?id=122
Original comment by [email protected]
on 3 Dec 2009 at 12:47
from powermock.
Take a look at issue 122 here as there is a simple fix for this:
http://code.google.com/p/powermock/issues/detail?id=122#c5
Original comment by [email protected]
on 12 Feb 2010 at 10:19
from powermock.
This is excellent news. Thank you so much!
Original comment by [email protected]
on 12 Feb 2010 at 10:30
from powermock.
Related Issues (20)
- Tests Classes cannot inherit another class if we want to use @PowerMockRunnerDelegate with a runner that extends ParentRunner HOT 1
- junit 4.12 throws Field 'fTestClass' was not found in class org.junit.internal.runners.MethodValidator exception HOT 10
- PowerMock doesn't work with JUnit 4.12 HOT 3
- java.lang.IllegalAccessError when using PowerMock 1.6.0 and Mockito 1.10.16 HOT 2
- Unable to verifyPrivate a method : maybe a bug in the withArguments method
- powermock throws loader constraint violation error:when resolving method "org.apache.log4j.LogManager.getLogger HOT 2
- Support for Dexmaker Android
- Powermock does not play well with java.time HOT 3
- Powermock agent dies with VerifyError
- Support PowerMock to run Android JUNIT tests HOT 2
- Fix in PowerMockMockito 1.6.1 doesn't work for junit 4.12 as version id is 4.12-SNAPSHOT
- Powermock affect the Unmarshal convert *.xml to *.class
- PowerMockito: Mocking two static methods of two different classes breaks the first mocked static method when the second mocked method is called HOT 1
- Changelog lies about "Fixed Mockito 1.10.9+ incompatibility"
- MockClassLoader#loadMockClass fails to preserve original ProtectionDomain of classes prepared for test
- PowerMockTestCase subclass test crashes
- Problem while mocking javax.ws.rs.core.Request object with Mockito.mock(Request.class)
- createMockAndExpectNew does not support collaborators with constructors with Array HOT 1
- Unable to mock final and private classes when using @PowerMockRunnerDelegate(PowerMockRunner.class)
- Problem with try without sentences HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powermock.