google-code-export / gwt-test-utils

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

Error with DataGrid initialization #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Test a UI class that uses Datagrid (use attached Eclipse project)

public class MyClass extends Composite  {

    public interface MyClassUiBinder extends UiBinder<Widget, MyClass> {}

    @UiField(provided=true) DataGrid<String> table;

    @Inject
    public MyClass(MyClassUiBinder uiBinder) {

        table = new DataGrid<String>(new ProvidesKey<String>() {
              @Override
            public Object getKey(String item) {
                  return item == null ? null : item;
                }
              });

        initWidget(uiBinder.createAndBindUi(this));

    }

}

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

I expect to have no error and run my test.
I got a exception (complete stack in attachment)

Error while creation instance of 
'com.google.gwt.user.client.ui.ResizeLayoutPanel$Impl' through 
'com.octo.gwt.test.internal.handlers.AbstractClassCreateHandler' instance

What version of the product are you using? On what operating system?
version 0.34
GWT 2.4.0 with Gin 1.5

Original issue reported on code.google.com by david.le...@gmail.com on 5 Jan 2012 at 4:05

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Could you please try with the 0.35 version I've just released ? (I still didn't 
communicate on it).

I wrote some fix to support the ResizeLayoutPanel$Impl for a 0.35-SNAPSHOT 
version : 

http://code.google.com/p/gwt-test-utils/source/browse/src/framework/trunk/gwt-te
st-utils/src/main/java/com/octo/gwt/test/internal/handlers/ResizeLayoutPanelImpl
CreateHandler.java

Original comment by gael.laz...@gmail.com on 5 Jan 2012 at 4:14

GoogleCodeExporter commented 9 years ago
Hi,

maybe my bad but I never succeed with maven repository at
http://forge.octo.com/nexus/content/repositories/releases/

When I browse remotely it's ok, I see all versions. But my Nexus does not want 
to get version after 0.18 ...

I have this error message

The file 'repository-metadata.xml' in repository 'Octo Gwt-test-utils' with 
path '/.meta/repository-metadata.xml' was proxied, and the remote repository 
contains wrong checksum for it. Details: 
Warning, the artifact /.meta/repository-metadata.xml and it's remote checksums 
does not match in repository forge.octo.com!

Maybe could you release this version in downloads section ?
(Having my Nexus able to dowload version would be the best ...)

Thanks

Original comment by david.le...@gmail.com on 5 Jan 2012 at 4:59

GoogleCodeExporter commented 9 years ago
Hi,

I downloaded version 0.35 and added it manually in my Nexus.
The error is gone. I'm still not able to run my test but I guess it is due to 
UIBinder mocking.
I'll let you know once my test runs successfully.

Regards

Original comment by david.le...@gmail.com on 11 Jan 2012 at 10:38

GoogleCodeExporter commented 9 years ago
Hi Gael,

you can consider the issue as fixed. It is ok for me.

You are doing great work with that project. Thanks, I was waiting for GWT tests 
to be simpler and you made it.

Just a thing: am I the only one to have issue with Nexus and gwt-test-utils 
maven repository ?

Regards

David

Original comment by david.le...@gmail.com on 13 Jan 2012 at 9:28

GoogleCodeExporter commented 9 years ago
Thank you very much for your feedback :)

Some coworkers have the same issue when having a proxy repository in front of 
gwt-test-utils one. I'll have a deeper look asap !
The gwt-test-utils newest jars will be available in the download section this 
weekend and I will announce the releases on the gwt-test-utils-user googlegroup 
;)

Original comment by gael.laz...@gmail.com on 13 Jan 2012 at 10:42