google-code-export / gwt-test-utils

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

ui builder searches .ui.xml files based on class. With subclasses of a such a file, the wrong .ui.xml file is resolved #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a class with UI builder and corresponding .ui.xml file
2. Subclass that class
3. Use that subclass in a test

What is the expected output? What do you see instead?

in gwt the .ui.xml of the superclass is used.
in the testcase, a SubClass.ui.xml file is being loaded - which is not present.

At present we have a workaround by creating .ui.xml files for the subclasses 
and place those in the test folder.

Original issue reported on code.google.com by leon.pen...@gmail.com on 22 Nov 2011 at 6:35

GoogleCodeExporter commented 9 years ago
Another issue had been submitted and fixed (but never verified) on the same 
topic : http://code.google.com/p/gwt-test-utils/issues/detail?id=49

I will try it again asap so I'd have feedback this time ;-)

Original comment by gael.laz...@gmail.com on 22 Nov 2011 at 7:02

GoogleCodeExporter commented 9 years ago
Sorry, didn't see that one. I will try later today

Original comment by leon.pen...@gmail.com on 22 Nov 2011 at 7:41

GoogleCodeExporter commented 9 years ago
I'm on the 0.33 version, not the 0.34 because of the GWT 2.4.0 incompatability 
with java 5 - So I cannot work with the trunk

Original comment by leon.pen...@gmail.com on 22 Nov 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Could you try with the lastest 0.33.1-SNAPSHOT ?

Original comment by gael.laz...@gmail.com on 27 Nov 2011 at 9:26

GoogleCodeExporter commented 9 years ago
Hi Leon,

Did you manage to give the lastest 0.33.1-SNAPSHOT a try to see if it fixes the 
UiBinder subclasses issue ?

Original comment by gael.laz...@gmail.com on 13 Dec 2011 at 7:09

GoogleCodeExporter commented 9 years ago
I did not. But I have time now and will try

Original comment by leon.pen...@gmail.com on 13 Dec 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Well, it solves the subclasses issue. However the UIBinder interface class that 
holds the binding is not resolved. The ui.xml file has the name of the binder 
interface, not of the class it is binding.
We can work around this by copying the ui.xml file over to the test resources 
and renaming it to the binding class' name.

Original comment by leon.pen...@gmail.com on 13 Dec 2011 at 9:27

GoogleCodeExporter commented 9 years ago
Hi leon,

could you please provide a simple sample project (without tests) so I could see 
which uibinder configuration is not handled by gwt-test-utils ?

Thanks a lot

Original comment by gael.laz...@gmail.com on 20 Jan 2012 at 7:51

GoogleCodeExporter commented 9 years ago
Hi Leon,

Still no answer, maybe you managed to get this working ?

Original comment by gael.laz...@gmail.com on 21 Mar 2012 at 11:23

GoogleCodeExporter commented 9 years ago
Morning Gael,

setting up a sample project is not something I can do in 10 minutes, which is 
already more than I can spare at the moment. I'm dealing with two go-live 
scenarios as is.
For me at the time there is also no direct need to solve this issue. In my test 
resources I copied the original .ui.xml file with the names of the subclasses. 
Since this is test code (resources) and not production code, I have no problems 
with this approach.

grtz,

Leon.. 

Original comment by leon.pen...@gmail.com on 22 Mar 2012 at 5:30