I am trying to use DateUtil in a GwtTestCase and I am getting the
following error, any ideas?
com.google.gwt.core.client.JavaScriptException: (TypeError):
dateJS.isLeapYear is not a function
fileName: jar:file:/home/jrozek/.m2/repository/com/gwtext/gwtext/
2.0.5/gwtext-2.0.5.jar!/com/gwtext/client/util/DateUtil.java
lineNumber: 299
stack: ([object gwt_nativewrapper_class])@jar:file:/home/jrozek/.m2/
repository/com/gwtext/gwtext/2.0.5/gwtext-2.0.5.jar!/com/gwtext/client/
util/DateUtil.java:299
private void com.google.gwt.http.client.Request.fireOnResponseReceived
(com.google.gwt.http.client.RequestCallback)([object
gwt_nativewrapper_class])@:0
()@jar:file:/home/jrozek/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062334/gwt-
linux-1.6.4/gwt-user.jar!/com/google/gwt/http/client/
XMLHTTPRequest.java:253
@:0
at com.gwtext.client.util.DateUtil.isLeapYear(Native Method)
at com.arisota.jog.client.util.JogDateUtil.getDaysInYear
(JogDateUtil.java:39)
at com.arisota.jog.client.GwtTestJogDateUtil.testGetDaysInLeapYear
(GwtTestJogDateUtil.java:24)
at com.arisota.jog.client.__GwtTestJogDateUtil_unitTestImpl.doRunTest
(transient source for
com.arisota.jog.client.__GwtTestJogDateUtil_unitTestImpl:13)
at junit.framework.TestCase.runTest(TestCase.java:62)
at com.google.gwt.junit.client.GWTTestCase.runBare(GWTTestCase.java:
206)
at com.google.gwt.junit.client.GWTTestCase.__doRunTest
(GWTTestCase.java:137)
at com.google.gwt.junit.client.impl.GWTRunner.runTest(GWTRunner.java:
188)
at com.google.gwt.junit.client.impl.GWTRunner.doRunTest
(GWTRunner.java:163)
at com.google.gwt.junit.client.impl.GWTRunner.access$3(GWTRunner.java:
157)
at com.google.gwt.junit.client.impl.GWTRunner
$JUnitHostListener.onSuccess(GWTRunner.java:61)
at com.google.gwt.junit.client.impl.GWTRunner
$JUnitHostListener.onSuccess(GWTRunner.java:1)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:215)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:229)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
219)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---