Examples illustrating AssertJ assertions
Go to file
Joel Costigliola 56856369f1 use assertj-core 2.9.0 2018-01-04 15:18:04 +13:00
assertions-examples use assertj-core 2.9.0 2018-01-04 15:18:04 +13:00
assertj-swing-aut joel-costigliola/assertj-swing#117 Provide a valid example. 2015-06-22 11:32:26 +02:00
assertj-swing-junit-examples joel-costigliola/assertj-swing#117 Provide TableCellByColumnId example. 2015-06-22 13:48:35 +02:00
assertj-swing-testng-examples Use current release of AssertJ Swing. 2015-03-10 23:35:30 +01:00
src/test/java/org/assertj/examples Clean up code 2014-08-11 22:36:07 +12:00
.gitignore Add jEnv configuration to .gitignore. 2014-03-06 17:58:51 +01:00
.travis.yml Limit travis build to branches not relying on snapshots 2017-08-19 19:58:48 +12:00
README.md Merge branch 'with-latest-snapshot-versions' 2014-10-06 21:33:42 +13:00

README.md

AssertJ examples

The master branch contains examples with the latest released version of AssertJ modules => you should be able to build it with mvn clean install command.

There are several branches that contain examples for the ongoing development versions of AssertJ modules. That means you have to build the according AssertJ modules by your own before new features compile. The following table contains these special branches that are merged into the master each time the module is released.

Branch Modules
with-latest-snapshot-versions Core + all modules without specific branch
with-latest-assert-guava-snapshot Latest unreleased Guava assertions
with-latest-swing-snapshot Swing

AssertJ examples is divided in two : assertions-examples (core, guava and joda assertions) and AssertJ swing modules.

AssertJ assertions examples

assertj-examples/assertions-examples contains executable AssertJ assertions examples that you can run as JUnit tests. Please have a look at assertions examples sources.

The master branch contains examples with the latest released version of AssertJ modules, you can build it with mvn clean install command. In your IDE, add src/test/generated-assertions to the project java sources if you IDE shows errors/missing classes. This folder is where custom assertions classes are generated, it shows what you have with the maven assertions generator plugin.

Building with-latest-snapshot-versions is a little more complicated :

  • you need to build the needed SNAPSHOT dependencies before - most probably assertj-core and maybe other modules.
  • run mvn clean install in assertj-examples/assertions-examples.
  • In your IDE, add src/test/generated-assertions to the project java sources if you IDE shows errors/missing classes.

AssertJ-Swing examples

assertj-swing-aut contains the AUT (application under test) that is tested by the examples.

assertj-swing-junit-examples contains executable AssertJ-Swing examples that you can inspect and run as JUnit tests. Please have a look at swing-junit-examples sources.

assertj-swing-testng-examples contains executable AssertJ-Swing examples that you can inspect and run as TestNG tests. Please have a look at swing-testng-examples sources.

Contributing

Contributing is easy, only two rules to follow :

  • Checkout the snapshot branch corresponding to your examples, it should be with-latest-snapshot-versions most of the time (not master!)
  • Use AssertJ code Eclipse formatting preferences (for Idea users, it is possible to import it)
  • Add FUN examples ! ;-)

Thanks !