gwt-test-utils

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
Last Version

Last Version

0.63
Release Date

Release Date

Type

Type

jar
Description

Description

gwt-test-utils
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/gwt-test-utils/

Download gwt-test-utils

How to add to project

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

Dependencies

compile (9)

Group / Artifact Type Version
com.google.gwt : gwt-dev jar 2.8.2
org.javassist : javassist jar 3.21.0-GA
org.antlr : antlr-runtime jar 3.5.2
commons-beanutils : commons-beanutils-core jar 1.8.3
org.assertj : assertj-core jar 3.11.1
com.thoughtworks.paranamer : paranamer jar 2.8
com.github.javaparser : javaparser-core jar 3.6.23
org.codehaus.jackson : jackson-core-asl jar 1.9.13
org.slf4j : slf4j-api jar 1.7.25

provided (15)

Group / Artifact Type Version
com.google.gwt : gwt-user jar 2.8.2
com.google.gwt : gwt-servlet jar 2.8.2
com.google.guava : guava-gwt jar 19.0
org.jukito : jukito jar 1.5
com.google.code.findbugs : jsr305 jar 3.0.2
pl.pragmatists : JUnitParams jar 1.1.1
org.json : json jar 20180813
org.easymock : easymock jar 3.6
org.mockito : mockito-core jar 2.22.0
com.google.inject : guice jar 4.1.0
com.google.inject.extensions : guice-servlet jar 4.1.0
com.google.gwt.inject : gin jar 2.1.2
org.springframework : spring-context jar 5.1.0.RELEASE
org.springframework : spring-test jar 5.1.0.RELEASE
junit : junit jar 4.12

test (1)

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

Project Modules

There are no modules declared in this project.

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