GithubHelp home page GithubHelp logo

khmarbaise / assertj-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assertj/assertj-examples

0.0 2.0 0.0 6.63 MB

Examples illustrating AssertJ assertions

Java 99.86% Shell 0.14%

assertj-examples's Introduction

AssertJ examples

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

The master branch contains examples with the latest released version of AssertJ modules (for Java 8).

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 3.x for Java 8
with-latest-swing-snapshot Swing

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 for Java 8, similarly the java-7 branch contains examples of AssertJ modules for Java 7. You should be able to build those two branches with mvn clean install command.

In your IDE, add src/test/generated-assertions to the project java test sources otherwise you will have errors/missing classes. This is the folder where custom assertions classes are generated by default by the maven assertions generator plugin. Note that Intellij Idea wrongly adds src/test/generated-assertions to the production sources when it should be added the test sources, you will have to fix that in your module/project settings.

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

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.

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 !

assertj-examples's People

Contributors

croesch avatar epeee avatar fbiville avatar jcgay avatar joel-costigliola avatar jrmichael avatar kju2 avatar mariuszs avatar michal-szkutnik avatar mperrando avatar nfrancois avatar olim7t avatar oliviercroisier avatar pascalschumacher avatar regis1512 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.