google-code-export / gwt-test-utils

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

Cannot initialize editor using utils #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create interface myInterface extends SimpleBeanEditor<Obj1, Obj2>{}
2. call gwt.create(myInterface.class);

What is the expected output? What do you see instead?
I should be able to instantiate the editor, as GWT does, so than i can test it 
along with the view it is supporting, instead it is giving me TestConfiguration 
exception.

What version of the product are you using? On what operating system?
0.34 on windows xp

Please provide any additional information below.
Solution it provides is to write a custom create handler for this, and that to 
handlerManager. But how exactly to write a GwtCreateHandler for instantiating a 
interface.

Original issue reported on code.google.com by prabhjot...@gmail.com on 22 Dec 2011 at 8:54

GoogleCodeExporter commented 9 years ago
GWT Editor framework is not supported yet, but it's in the gwt-test-utils 
public roadmap.
Since support for Cell widgets is almost done, Editors will be the next feature 
I'll work on :)

What gwt-test-utils does when GWT.create(..) is called to instanciate an 
interface without any default implementation is to write a dynamic proxy with 
the java standard API (Proxy and InvocationHandler classes).

If you want to provide some help you would be more than welcome, maybe you 
can't wait since I will start the implementation (january 2012) and you may 
provide the implementation yourself. I could help if you want :)

Original comment by gael.laz...@gmail.com on 22 Dec 2011 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 2 Apr 2012 at 8:16

GoogleCodeExporter commented 9 years ago
Instanciation of SimpleBeanEditor is now working, edit() and flush() method are 
supported for the most basic cases.
I just deployed new snapshot with those improvements : 0.39-SNAPSHOT, 
0.33.4-SNAPSHOT, 0.28.11-SNAPSHOT, 0.25.8-SNAPSHOT and 0.22.8-SNAPSHOT. 

I still have to implement support for  HasEditorErrors, ListEditor, 
EditorDelegate, ValueAwareEditor, etc. stay tuned !

Original comment by gael.laz...@gmail.com on 11 Apr 2012 at 5:26

GoogleCodeExporter commented 9 years ago
Editors should now be fully supported by gwt-test-utils, starting 0.40-SNAPSHOT.
It would be very nice if you could try it on some complex editors and post some 
feedback !

Before updating, you should carefully read this wiki page : 
http://code.google.com/p/gwt-test-utils/wiki/MigrationTo040

Original comment by gael.laz...@gmail.com on 22 Jul 2012 at 2:34