Have you updated gwt-test-utils accordingly? You apparently need 0.51 or 0.52 for use with GWT 2.7.0.
-- Also, you may have better guidance in the gwt-test-utils forum: https://groups.google.com/forum/#!forum/gwt-test-utils-users
On Wednesday, October 19, 2016 at 10:40:02 AM UTC+2, saritha rapolu wrote:
On Wednesday, October 19, 2016 at 10:40:02 AM UTC+2, saritha rapolu wrote:
Hi,
I migrated the GWT project to GWT 2.7.0 version. After that, when i build the project using -Dmaven.test.skip.exec clean install then build is successful. But when i run clean install then GWT test cases are failing with following exception
initializationError(com.example .ui.client.TestElementsActivity ) Time elapsed: 0.001 sec <<< ERROR!
java.lang.IncompatibleClassChangeError : com/google/gwt/dev/javac/BytecodeSignatureMaker$ CompileDependencyVisitor
at com.google.gwt.dev.javac.BytecodeSignatureMaker .visitCompileDependenciesInBytecode (BytecodeSignatureMaker .java:227)
at com.google.gwt.dev.javac.BytecodeSignatureMaker .getCompileDependencySignature (BytecodeSignatureMaker .java:209)
at com.google.gwt.dev.javac.CompiledClass .getSignatureHash(CompiledClass .java:166)
at com.google.gwt.dev.javac.Dependencies$Ref .<init>(Dependencies .java:42)
at com.google.gwt.dev.javac.Dependencies$Ref .<init>(Dependencies .java:37)
at com.google.gwt.dev.javac.Dependencies .resolve(Dependencies.java :114)
at com.google.gwt.dev.javac.CompilationStateBuilder$ .compile(CompiCompileMoreLater lationStateBuilder .java:366)
at com.google.gwt.dev.javac.CompilationStateBuilder .doBuildFrom( CompilationStateBuilder.java:580 )
at com.google.gwt.dev.javac.CompilationStateBuilder .buildFrom(CompilationStateBuilder .java:513 )
at com.google.gwt.dev.javac.CompilationStateBuilder .buildFrom(CompilationStateBuilder .java:499 )
at com.google.gwt.dev.cfg.ModuleDef .getCompilationState(ModuleDef .java:668)
at com.googlecode.gwt.test.internal .GwtFactory.createCompilationState (GwtFactory.java:146)
at com.googlecode.gwt.test.internal .GwtFactory.<init>(GwtFactory .java:109)
at com.googlecode.gwt.test.internal .GwtFactory.initializeIfNeeded (GwtFactory.java:43)
at com.googlecode.gwt.test.internal .junit.AbstractGwtRunner.<init >(AbstractGwtRunner.java:27)
at com.googlecode.gwt.test.GwtRunner .<init>(GwtRunner.java:18)
at sun.reflect.NativeConstructorAccessorImpl .newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl .java:57 )
at sun.reflect.DelegatingConstructorAccessorImpl .newInstance(DelegatingConstructorAccessorImp .java:45)l
at java.lang.reflect.Constructor.newInstance (Constructor.java:525 )
at org.junit.internal.builders.AnnotatedBuilder .buildRunner(AnnotatedBuilder .java:31)
at org.junit.internal.builders.AnnotatedBuilder .runnerForClass(AnnotatedBuilder .java:24)
at org.junit.runners.model.RunnerBuilder .safeRunnerForClass(RunnerBuilder .java:57)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder .runnerForClass (AllDefaultPossibilitiesBuilder .java:29)
at org.junit.runners.model.RunnerBuilder .safeRunnerForClass(RunnerBuilder .java:57)
at org.junit.internal.requests.ClassRequest .getRunner(ClassRequest .java:24)
at org.apache.maven.surefire.junit4 .JUnit4Provider.execute(JUnit4Provider .java:262)
at org.apache.maven.surefire.junit4 .JUnit4Provider.executeTestSet (JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4 .JUnit4Provider.invoke(JUnit4Provider .java:124)
at org.apache.maven.surefire.booter .ForkedBooter.invokeProviderInSameClassLoader (ForkedBooter. java:200)
at org.apache.maven.surefire.booter .ForkedBooter.runSuitesInProcess (ForkedBooter.java:153)
at org.apache.maven.surefire.booter .ForkedBooter.main(ForkedBooter .java:103
Note:
- -When i run the GWT testcase separately then the test case was successful, but when i run build using clean.install then failing.
- GWT testcases are written on com.googlecode.gwt.test.
GwtTestWithMockito Please help me in overcoming this issue.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment