gwt-test-utils-parent

gwt-test-utils is a Java framework that allows to test GWT client side code in a efficient, easy way

License

License

Categories

Categories

GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

com.googlecode.gwt-test-utils
ArtifactId

ArtifactId

gwt-test-utils-parent
Last Version

Last Version

0.63
Release Date

Release Date

Type

Type

pom
Description

Description

gwt-test-utils-parent
gwt-test-utils is a Java framework that allows to test GWT client side code in a efficient, easy way
Project URL

Project URL

http://code.google.com/p/gwt-test-utils/
Source Code Management

Source Code Management

https://github.com/gwt-test-utils/gwt-test-utils

Download gwt-test-utils-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.googlecode.gwt-test-utils/gwt-test-utils-parent/ -->
<dependency>
    <groupId>com.googlecode.gwt-test-utils</groupId>
    <artifactId>gwt-test-utils-parent</artifactId>
    <version>0.63</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.googlecode.gwt-test-utils/gwt-test-utils-parent/
implementation 'com.googlecode.gwt-test-utils:gwt-test-utils-parent:0.63'
// https://jarcasting.com/artifacts/com.googlecode.gwt-test-utils/gwt-test-utils-parent/
implementation ("com.googlecode.gwt-test-utils:gwt-test-utils-parent:0.63")
'com.googlecode.gwt-test-utils:gwt-test-utils-parent:pom:0.63'
<dependency org="com.googlecode.gwt-test-utils" name="gwt-test-utils-parent" rev="0.63">
  <artifact name="gwt-test-utils-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.googlecode.gwt-test-utils', module='gwt-test-utils-parent', version='0.63')
)
libraryDependencies += "com.googlecode.gwt-test-utils" % "gwt-test-utils-parent" % "0.63"
[com.googlecode.gwt-test-utils/gwt-test-utils-parent "0.63"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.25

provided (1)

Group / Artifact Type Version
junit : junit jar 4.12

test (1)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.25

Project Modules

  • gwt-test-utils
  • gwt-test-utils-csv

Build Status

In loving memory of Gaël

gwt-test-utils is a Java testing framework for GWT applications. It provides a simple way to write fast Java tests for your GWT client code, without GWTTestCase or any servlet container instance! This means you are able to use any Java tool without restriction: JUnit, reflection, Easymock, Mockito, etc.

Writing tests looks like:

@Test
public void clickOnButtonShouldDisplayMessageInLabel() {
  // Arrange
  SampleView view = new SampleView();
  // ensure the label is not visible at init
  assertThat(view.label).isNotVisible();
  
  // Act: simulate a click event
  Browser.click(view.button);
  
  // Assert: label should be visible and filled
  assertThat(view.label).isVisible().textEquals("The button was clicked!");
}

If you want to write fast tests which will still deal with your GWT view layout and simulate browser events on your widgets easily, you really should consider this framework. The Getting Started page would be a good way to start ;-)

Features

  • GWT code unit testing with small execution time (no hosted mode / browser launched in the background)
  • Simulation for browser's events (click, blur, change, ...)
  • Fluent interface for assertions on widgets, based on assertj
  • Mocks handling using Mockito or EasyMock
  • Standard maven-surefire-plugin support for testing with Maven
  • Support for GWT + Spring application testing
  • Support for GWT + Guice application testing
  • Support for GWT + GIN application testing, with Jukito if wanted
  • Support for JUnitParams
  • Complex use-case testing using CSV-based scenarios
  • Extensibility through the use of custom patchs

Documentation

Whether you want to...

  • Use gwt-test-utils to test your GWT application
  • Make your custom widgets testable with the framework
  • Contribute code

... you'll find everything you need in the wiki.

Roadmap

Here are the features we are working on, ordered by priority (which is not frozen) :

In addition, we are daily improving the existing gwt-test-utils features. To perfect it, we need your feedback !

Community

For any question, feedback or contribution, please contact use through the user group.

You can also follow the day-to-day evolution of the framework and communicate on it through Twitter : #GwtTestUtils

com.googlecode.gwt-test-utils

gwt-test-utils

Versions

Version
0.63
0.62
0.61
0.60
0.59
0.58
0.57
0.56
0.53
0.52
0.51
0.47
0.46
0.45
0.44
0.43
0.42
0.41
0.40
0.39
0.38
0.33.4
0.33.3
0.28.11
0.28.10
0.25.8
0.25.7
0.22.8
0.22.7