google-code-export / gwt-test-utils

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

com.octo.gwt.test.exceptions.GwtTestResourcesException: No resource file found for method 'com.blah.blaha.client.Icons.getCommentSeparator()' #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Icons class looks like this:
//@SuppressWarnings("deprecation")
public interface Icons
    extends
        ClientBundle
{

    Icons INSTANCE = GWT.create(Icons.class);

    /* Path history images start here */

    @Source("resources/comments/comment.png")
    ImageResource getCommentSeparator();
           ---------
}
2.I have reference to it in another class(say Abc) as follows:
 private final Image partitionImage = new Image(Icons.INSTANCE.getCommentSeparator());
3. When I am trying to create an object for it like:
   obj = new Abc();
   It is throwing the above said exception

I am using gwt-test-utils-0.35 version, Windows 7 Operating System

Please help me out.

Original issue reported on code.google.com by pramod.g...@gmail.com on 27 Jan 2012 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 27 Jan 2012 at 3:24

GoogleCodeExporter commented 9 years ago
where is your comment.png file ? gwt-test-utils is expecting it here  
APP_CLASSPATH/com/blah/blaha/client/resources/comments/comment.png, but maybe 
it is missing something..

Original comment by gael.laz...@gmail.com on 31 Jan 2012 at 7:10

GoogleCodeExporter commented 9 years ago
nope, it is available in the following location:
war\resources\resources\comments\comment.png.
And, I have added this location in the class path also.

Original comment by pramod.g...@gmail.com on 1 Feb 2012 at 10:19

GoogleCodeExporter commented 9 years ago
Ok, I just deployed new snapshots with a fix for this issue (0.36-SNAPSHOT, 
0.33.2-SNAPSHOT, 0.28.9-SNAPHOT, 0.25.6-SNAPSHOT and 0.22.6-SNAPSHOT).

Could you please give one of those versions a try and give me some feedback so 
I could close this issue ?
Thank you very much ! 

Original comment by gael.laz...@gmail.com on 5 Feb 2012 at 12:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey Gael, 

Tested and confirmed on the 0.28.9-SNAPSHOT. Keep up the good work.

Thanks Aodhagán

Original comment by aodhag...@gmail.com on 7 Feb 2012 at 12:51

GoogleCodeExporter commented 9 years ago
thx !

Original comment by gael.laz...@gmail.com on 7 Feb 2012 at 1:20