google-code-export / gwt-test-utils

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

TextArea throwing ExceptionInInitializerError (And java.lang.IllegalArgumentException) #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Create a Custom TextBox (Say CustomTextBox.java or CustomerNumberBox which 
extends TextBox).
2.  Use it in the Ui binder (Say <g:CustomTextBox ui:Field="" 
textAlignment="right"/>)
3.  In the Test class which uses gwt-test-utils, instantiate the View class of 
the UiBinder created in step 2 above and run the test class.  You will get 
"java.lang.IllegalArgumentException: Cannot invoke 
com.google.gwt.user.client.ui.ValueBoxBase.setAlignment - argument type 
mismatch.".

What is the expected output? What do you see instead?
Test class shouldn't throw IllegalArgumentException.

What version of the product are you using? On what operating system?
.39

Please provide any additional information below.
Following is the advise from Gael when posted this issue in the gwt-test-utils 
group.

---------------
this is an issue with UiBinder TextArea support in gwt-test-utils. Could you 
please open a new ticket on the tracker ? I'll fix it asap. 

Cheers, 

Gael Lazzari

Original issue reported on code.google.com by shivakum...@gmail.com on 20 Jul 2012 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 20 Jul 2012 at 5:07

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 20 Jul 2012 at 5:58

GoogleCodeExporter commented 9 years ago
I've just deployed a new 0.40-SNAPSHOT with a fix for the deprecated 
TextBoxBase.setTextAlignment(..) method.

Could you please give it a try and post some feedback ? Before upgrading, you 
should carefully read this : 
http://code.google.com/p/gwt-test-utils/wiki/MigrationTo040

Original comment by gael.laz...@gmail.com on 20 Jul 2012 at 6:03

GoogleCodeExporter commented 9 years ago
I took the code from SVN checkout with URL *http*://
gwt-test-utils.googlecode.com/svn/?(Hoping this has your latest changes)  Can
you please provide me one time steps how I can build the gwt-test-utils jar
from this checkout?

Original comment by shivakum...@gmail.com on 23 Jul 2012 at 6:14

GoogleCodeExporter commented 9 years ago
You don't have to connect to the svn and build gwt-test-utils yourself. Every 
snapshots are deployed on sonatype oss maven repository.
If you are a maven user, just add the following repository in your pom :

   <repository>
      <id>sonatype-snapshots</id>
      <url>http://oss.sonatype.org/content/repositories/snapshots</url>
      <snapshots>
         <enabled>true</enabled>
      </snapshots>
      <releases>
         <enabled>false</enabled>
      </releases>
   </repository>

Otherwise, you can download it manually by browsing the repo : 
https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/gwt-test-
utils/

Original comment by gael.laz...@gmail.com on 23 Jul 2012 at 1:56