Questions tagged [gwttestcase]

45 questions
0
votes
0 answers

How to test JSON.parse method in through GWTTestCase?

I have written a simple native method in GWT code as below: public static native JavaScriptObject parseString(String jsonString) /*-{ return JSON.parse(jsonString); }-*/; Now I have GWTTestCase to validate this code but the test case…
vsbehere
  • 666
  • 1
  • 7
  • 23
0
votes
1 answer

Parse JSON in to Strings with escape characters for GWT Test Case

I've come up with a doubt around JSON files. So, we're building a test case for a GWT application. The data it feeds from is in JSON files generated from a SQL database. When testing the methods that work with data, we do it from sources held in…
Steven
  • 1,236
  • 1
  • 13
  • 37
0
votes
0 answers

GWTTestCase session no longer working?

We have a number of unit tests using GWTTestCase that have the structure of: 1) Make a request to login. 2) In the response handler, make second call that requires a login. This all used to work fine, but after upgrading from 2.5.1 to 2.7.0, the…
zanerock
  • 3,042
  • 3
  • 26
  • 35
0
votes
1 answer

Failing to rung GWTTestCase tests with ant

I simply cannot succeed in running GWTTestCase tests. I'm using GWT 2.6.1, JUnit 4.11, ant 1.8.2. I've created sample repository on github. Ant target than runs the tests (maybe it's somtehing obvious in here):
PovilasB
  • 1,488
  • 1
  • 15
  • 25
0
votes
1 answer

"java.lang.VerifyError: Cannot inherit from final class" when running GWTTestCase

I just wrote my very first GWTTestCase but running it always gives me a VerifyError. Here's my embryo of a great testsuite to be : public void test() { Invoice invoice = new Invoice(); …
koma
  • 6,486
  • 2
  • 27
  • 53
0
votes
1 answer

How to test a gwt composite component with ui binder using GwtTestCase?

I am trying to test my gwt project using GwtTestCase. But I can't create an instance of a Composite component. Here is the code and stack trace... Login.java (My composite component) public class Login extends Composite{ @UiField …
Syam Kumar S
  • 832
  • 2
  • 8
  • 26
0
votes
1 answer

GWTTestCase Fails in Production Mode & With Multiple Browsers

I'm working on a web app using GWT and GXT with lots of unit testing. Running the tests outside of production mode works as I would expect. As soon as I attempt to execute the GWT test cases in production mode (or compile for more than 1 browser)…
jollyRoger
  • 68
  • 7
0
votes
1 answer

Why GWTTestCase only accept IsSerializable interface for serializing java objects?

I have several model class that implement java.io.Serializable interface (for serialization purpose) and they work perfectly in devmode and webmode but when i want to use them in a GWTTestCase after running test i get this error: Type…
0
votes
1 answer

GWT rpc callback does not call after calling in GWTTestCase

I have written a GWTTestCase like this: public void testClickButton() { SampleView view = new SampleView(); RootPanel.get().add(view); view.textBox.setText("Saeed Zarinfam"); assertEquals("", view.label.getText()); // …
Saeed Zarinfam
  • 9,818
  • 7
  • 59
  • 72
0
votes
2 answers

GWT compositC component test cases?

i had a GWT composite component, with two textBox, want to write test cases for it. Each of them had change handler, i want to know how can i fire a change event to exact component in the composite component class. EDITED: my test code looks like…
Dipak
  • 6,532
  • 8
  • 63
  • 87
0
votes
1 answer

initializationError in GWT TestCase Execution

I created a project with default module in GWT with maven. and renamed the Test Case class with *Test.java and executed the command mvn package It is not successfully executing the test case, and terminates with Tests in error: …
Bennet
  • 61
  • 1
  • 3
0
votes
1 answer

GWTTestCase timeout in Jenkins

When I kick off a Jenkins job that runs a GWTTestCase through Maven, the job fails randomly with the same exception. I can't reproduce this behavior in Eclipse. Below is the exception.
sworded
  • 2,419
  • 4
  • 31
  • 48
0
votes
1 answer

Testing a maven-built java library for suitability with GWT

I have a java library. I build it with Maven. I want to make sure it can be used by GWT users somewhere. I've added @GwtCompatible and @GwtIncompatible where appropriate. Now, I want to test that this will work as expected. The library is a…
Christian Gruber
  • 4,691
  • 1
  • 28
  • 28
0
votes
1 answer

Does GWT support inclusion of stylesheet during GWTTestCase?

I have some simple GWT client code that I would like to test using GWTTestCase and GWTTestSuite. However, those tests require the use of some CSS stylesheet (only needed for the tests). My first attempt was : Define a ClientBundle that provide the…
Jean-Michel Garcia
  • 2,359
  • 2
  • 23
  • 44
0
votes
1 answer

GWTTestCase with RequestFactory Returning 404

I cannot get RequestFactory to work with GWTTestCase. I see the following: [WARN] 404 - POST /com.traviswebb.MyApp.JUnit/gwtRequest (127.0.0.1) 1439 bytes In my MyAppJUnit.gwt.xml file, I have this:
Travis Webb
  • 14,688
  • 7
  • 55
  • 109
1 2
3