google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

java.lang.NoSuchMethodError for version 0.25 and 0.26 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please find in attachment a maven project for a complete description of the bug

What steps will reproduce the problem?
1. Create a class that inherits from ListBox
2. Implements a method that calls getElement()
3. Write and run a test for the new method and you obtain the following error

java.lang.NoSuchMethodError: 
fr.cnes.dtcrt.client.component.MyListBox.getElement()Lcom/google/gwt/user/client
/Element;

It seems there is a problem during package scanning to detect the classes to 
patch. When the class is in src/test/java the test is green but when the class 
is in src/main/java, the test is red.

What version of the product are you using? On what operating system?
Since version 0.24 everything was ok.
This problem occurs on Windows and Linux.

Original issue reported on code.google.com by dgaye...@astek.fr on 28 Mar 2011 at 12:03

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 28 Mar 2011 at 12:34

GoogleCodeExporter commented 9 years ago
Sorry, we missed one step during the migration from version 0.24 to 0.26.
Problem solved once we created the file META-INF/gwt-test-utils.properties with 
the correct path to module description files.

Original comment by dgaye...@astek.fr on 28 Mar 2011 at 5:02

GoogleCodeExporter commented 9 years ago
yes I was answering to you :-)

I will secure this point by throwing an exception if the 
META-INF/gwt-test-utils.properties does not exist in the test classpath.

Thank you for your feedback !

Original comment by gael.laz...@gmail.com on 28 Mar 2011 at 5:09

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 31 Mar 2011 at 8:22