google-code-export / gwt-test-utils

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

It is not possible to test classes with inner UiBinder specializations #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an inner UiBinder subclass in another UiBinder class
2. Test the main UiBinder class

What is the expected output? What do you see instead?
The main UiBinder class should be testable but several exceptions are thrown. 
- ClassNotFoundException is thrown when trying to find the inner class through 
its name (explained below); 
- ReflectionException is thrown when trying to call a UiFactory method, caused 
by GwtTestUiBinderException thrown at UiBinderTagBuilder#build method;

What version of the product are you using? On what operating system?
Using trunk (06-07-2011), Eclipse Helios and Window 7 x32.

Please provide any additional information below.
In the attachment there is a patch containing a test exemplifying the problem 
and fixing a small issue in which the framework should use 
'package.Class$InnerClass' instead of 'package.Class.InnerClass' to locate the 
inner class;

Original issue reported on code.google.com by rhl...@gmail.com on 7 Jun 2011 at 8:02

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you very much for the detailed example :-)

Original comment by gael.laz...@gmail.com on 8 Jun 2011 at 12:03

GoogleCodeExporter commented 9 years ago
I've just deploy a fix in the lastest 0.30-SNAPSHOT. I integrate your patch 
with little modifications. See package 
com.octo.gwt.test.uibinder.specialization in gwt-test-utils src/test/java on 
trunk.

Could you give it a try so I could close the issue if working for you ? Thanks

Original comment by gael.laz...@gmail.com on 9 Jun 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Seems to be working just fine. This issue is fixed for me. Thanks!

Original comment by rhl...@gmail.com on 13 Jun 2011 at 1:26

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 13 Jun 2011 at 4:26