Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Failed to transform class with name com.supaham.monopoly.game.dice.DiceRoller. Reason: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
- java.lang.IllegalStateException: Failed to transform class with name com.supaham.monopoly.game.dice.DiceRoller. Reason: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
- at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:267)
- at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:180)
- at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:70)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
- at java.lang.Class.getDeclaredMethods0(Native Method)
- at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
- at java.lang.Class.privateGetPublicMethods(Class.java:2902)
- at java.lang.Class.getMethods(Class.java:1615)
- at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.getTestMethods(PowerMockJUnit44RunnerDelegateImpl.java:93)
- at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.<init>(PowerMockJUnit44RunnerDelegateImpl.java:69)
- at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.<init>(PowerMockJUnit47RunnerDelegateImpl.java:42)
- at org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.<init>(PowerMockJUnit49RunnerDelegateImpl.java:25)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:156)
- at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:40)
- at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:244)
- at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:61)
- at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:32)
- at org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:34)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
- at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
- at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
- at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
- at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
- at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
- at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:84)
- at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56)
- at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
- at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
- at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
- at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
- at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
- at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:498)
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
- at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
- at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:364)
- at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
- at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: javassist.CannotCompileException: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
- at javassist.expr.ExprEditor.doit(ExprEditor.java:117)
- at javassist.CtClassType.instrument(CtClassType.java:1437)
- at org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:74)
- at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:252)
- ... 57 more
- Caused by: javassist.bytecode.BadBytecode: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:111)
- at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:440)
- at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:422)
- at javassist.expr.ExprEditor.doit(ExprEditor.java:113)
- ... 60 more
- Caused by: javassist.bytecode.BadBytecode: inconsistent stack height -1
- at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:84)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:187)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:164)
- at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:108)
- ... 63 more
- Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
- at javassist.bytecode.stackmap.Tracer.doASTORE(Tracer.java:425)
- at javassist.bytecode.stackmap.Tracer.doOpcode54_95(Tracer.java:302)
- at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:76)
- ... 73 more
- com.supaham.monopoly.DiceRollerTest > initializationError FAILED
- java.lang.IllegalStateException
- Caused by: javassist.CannotCompileException
- Caused by: javassist.bytecode.BadBytecode
- Caused by: javassist.bytecode.BadBytecode
- Caused by: java.lang.ArrayIndexOutOfBoundsException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement