1

Does somebody know how to do tests for gwt application which is written with mvp, activities and places? I am reading out data from xml file and rendering them in a celllist. I am using gwt 2.5 and eclipse. i would be very thankful if somebody could show me an good tutorial for eclipse junit and gwt.

AMIC MING
  • 6,306
  • 6
  • 46
  • 62
Pero
  • 774
  • 3
  • 15
  • 34

2 Answers2

3

Activities and Places is a built-in framework for browser history management (not for MVP). Because you followed MVP model, you can use the advantage of MVP for painless GWT test. Please see this part of "Large scale application development and MVP" article.

Saeed Zarinfam
  • 9,818
  • 7
  • 59
  • 72
2

We usually always refer to GWT unit tests before building up our unit tests.

GWT Source code is the place to look for Unit Tests written by GWT team.

Searching GWT Code - http://code.google.com/p/google-web-toolkit/source/search?q=Places&origq=Places&btnG=Search+Trunk

enter image description here

appbootup
  • 9,537
  • 3
  • 33
  • 65
  • i really doesnt understand what that is? is gwt showing with this gwt-test-code only an example how to test places, placecontroller and so on? or can we use it for import? – Pero Jan 28 '13 at 22:04
  • 1
    You need to use them as reference point for how to write up your test cases. In some cases if you are subclassing a GWT framework class you need to subclass these test cases as well. – appbootup Jan 31 '13 at 04:50
  • ok that means that this is like a tutorial which shows how to write tests for places? – Pero Jan 31 '13 at 18:35
  • Yes and you can infer what to mock out, what not to test, what is already tested and how to organize your test cases. – appbootup Feb 01 '13 at 03:23