Re: How to get Resources in GWTTestCase

2011-11-07 Thread Gael Lazzari
Maybe you could try to implement your unit test with 
gwt-test-utilshttp://code.google.com/p/gwt-test-utils/, 
which also provides support for GIN. 
You also would able to initialize your unit test with every java.io class 
you want, since gwt-test-utils 
derestricthttp://www.mediadico.com/dictionnaire/anglais-francais/derestrict/1s
 
java API use in GWT unit tests :)

Cheers,

Gael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GRl7D0yD_EYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to get Resources in GWTTestCase

2011-11-07 Thread Jeffrey Chimene

On 11/7/2011 1:09 AM, Gael Lazzari wrote:
Maybe you could try to implement your unit test with gwt-test-utils 
http://code.google.com/p/gwt-test-utils/, which also provides 
support for GIN.
You also would able to initialize your unit test with every java.io 
class you want, since gwt-test-utils derestrict 
http://www.mediadico.com/dictionnaire/anglais-francais/derestrict/1s 
java API use in GWT unit tests :)


Cheers,

Gael


Thanks, I'll try that

Best Regards,
jec

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to get Resources in GWTTestCase

2011-11-06 Thread Jeff Chimene
Hi:

I'd like to test calls to XMLParser.parse().

I'd like to use a testing framework to send various XML documents to a
class method that calls this routine.

I want to use the browser implementation to perform the parse. This
means GWTTestCase.

GWTTestCase implies no java.io

I don't want to hardcode XML documents in my test drivers. I'd like to
use GWT Resources.

GWT Resources seems to imply GWT.create() which conflicts with GWTTestCase.

I'm sure there's a way to get Gin to work with GWTTestCase.

Searching only returns example code that doesn't work and is poorly
documented (e.g.
http://howtogwt.blogspot.com/2010/03/instance-creation-and-dependency.html)

What solutions have others implemented?

TIA,
jec

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.