gwt-test-utils-csv

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 CSV Data Data Formats
GroupId

GroupId

com.googlecode.gwt-test-utils
ArtifactId

ArtifactId

gwt-test-utils-csv
Last Version

Last Version

0.63
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download gwt-test-utils-csv

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
com.googlecode.gwt-test-utils : gwt-test-utils jar 0.63
org.slf4j : slf4j-api jar 1.7.25

provided (7)

Group / Artifact Type Version
com.google.gwt : gwt-user jar 2.8.2
com.google.gwt : gwt-servlet jar 2.8.2
com.google.inject : guice jar 4.1.0
com.google.inject.extensions : guice-servlet jar 4.1.0
org.springframework : spring-context jar 5.1.0.RELEASE
org.springframework : spring-test jar 5.1.0.RELEASE
junit : junit jar 4.12

test (3)

Group / Artifact Type Version
org.easymock : easymock jar 3.6
org.mockito : mockito-core jar 2.22.0
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