Muki-SkyWalker / specs

Automatically exported from code.google.com/p/specs
Other
0 stars 0 forks source link

EasyMock: Could not create an instance of <my class> #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to run EasyMock example from 
http://code.google.com/p/specs/wiki/UsingEasyMock and following exception is 
thrown:

[error] Could not create an instance of org.mocktest.spec
[error]   0
[error]   org.specs.util.Classes$class.createInstanceFor(Classes.scala:76)
[error]   
org.specs.runner.TestInterfaceRunner.createInstanceFor(TestInterfaceRunner.scala
:48)
[error]   org.specs.util.Classes$class.create(Classes.scala:38)
[error]   
org.specs.runner.TestInterfaceRunner.create(TestInterfaceRunner.scala:48)
[error]   org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:53)
[error]   sbt.TestRunner.run(TestFramework.scala:53)
[error]   sbt.TestRunner.runTest$1(TestFramework.scala:67)
[error]   sbt.TestRunner.run(TestFramework.scala:76)
[error]   
sbt.TestFramework$$anonfun$10$$anonfun$apply$11.runTest$2(TestFramework.scala:19
4)
[error]   
sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun$apply$12.apply(TestFram
ework.scala:205)
[error]   
sbt.TestFramework$$anonfun$10$$anonfun$apply$11$$anonfun$apply$12.apply(TestFram
ework.scala:205)
[error]   sbt.NamedTestTask.run(TestFramework.scala:92)
[error]   
sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask$1.apply(ScalaProject.scala:19
3)
[error]   
sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask$1.apply(ScalaProject.scala:19
3)
[error]   sbt.TaskManager$Task.invoke(TaskManager.scala:62)
[error]   sbt.impl.RunTask.doRun$1(RunTask.scala:77)
[error]   sbt.impl.RunTask.runTask(RunTask.scala:85)
[error]   sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:60)
[error]   sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
[error]   sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
[error]   sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
[error]   sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
[error]   sbt.Control$.trapUnit(Control.scala:19)
[error]   sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131) 

Following behaviour is observed both for specs_2.8.0_1.6.5 and specs_2.8.1-1.6.7

All libs required by easymock (objenesis-1.2 and cglib-nodep-2.2) are in 
classpath.

Original issue reported on code.google.com by evgen.pi...@gmail.com on 17 Feb 2011 at 12:28

GoogleCodeExporter commented 9 years ago
Unfortunately I can't reproduce this issue. 

I don't know how to do that with sbt but if you can pass the system option 
-DdebugCreateObject, you should see a better stacktrace.

Do you also have the easymockclassextension jar in your path?
Can you try to clean and update everything?

Original comment by etorrebo...@gmail.com on 17 Feb 2011 at 10:28

GoogleCodeExporter commented 9 years ago
Closing this issue for now because I had no answer.

Original comment by etorrebo...@gmail.com on 26 Aug 2011 at 9:19