No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
ares09x Update
Added comments indicating what to fix to correct the two failing tests; also updated the expected year to be current.
Latest commit 3241728 Dec 23, 2017

Build Status

This build will always fail because it has 2 examples of failing tests: one based on the source code, and one based on an incorrect test.

Learning Objectives

  • Simple hello world example
  • Experience with Git source code management
  • Building with Gradle (using the Gradle wrapper)
  • Automated unit testing with JUnit
  • Continuous integration with Travis

System requirements

  • Java 6 SDK or later

Running the Application

On Linux or Mac OS X:

$ ./gradlew run

On Windows:

> gradlew run

Running the Tests

On Linux or Mac OS X:

$ ./gradlew test

On Windows:

> gradlew test

Running the Application Outside Gradle

Unlike running the application using Gradle's run task, this allows passing command-line arguments.

On Linux or Mac OS X:

$ ./gradlew startScripts
$ ./build/scripts/hello-java arg1 arg2 arg3


$ ./gradlew jar
$ java -jar build/lib/hello-java.jar arg1 arg2 arg3

On Windows:

> gradlew startScripts
> .\build\scripts\hello-java arg1 arg2 arg3


> gradlew jar
> java -jar build\lib\hello-java.jar arg1 arg2 arg3