Code Monkey home page Code Monkey logo

java-testing-example's Introduction

java-testing-example

This is the Java repository we'll work out of during this training event.

Instructions

Clone the repo:

Git:

$ git clone [email protected]:testdouble/java-testing-example.git

Svn:

$ svn co https://github.com/testdouble/java-testing-example

Or download a ZIP of main manually and expand the contents someplace on your system

Prerequisites

  • Have a JDK installed
  • Have Maven installed and available on your PATH or IDE
  • Have Firefox installed

Verify installation

You can verify the project builds correctly from your IDE or from the command line.

CLI

Open a command prompt and verify that all needed bins are on your path and up to date:

$ java -version
# ^ should be at least 1.6
$ mvn -v
# ^ should be at least 3.0.0

Finally, verify that mvn install succeeds.

You should see output like the following:

$ cd java-testing-example
$ mvn install
# ...

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.acme.app.HelloWorldProxyTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 sec
Running com.acme.app.HelloWorldTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ app ---
[INFO] Building jar: junit-mocha-example/target/app-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ app ---
[INFO] Installing junit-mocha-example/target/app-0.0.1-SNAPSHOT.jar to /Users/justin/.m2/repository/com/acme/app/0.0.1-SNAPSHOT/app-0.0.1-SNAPSHOT.jar
[INFO] Installing junit-mocha-example/pom.xml to /Users/justin/.m2/repository/com/acme/app/0.0.1-SNAPSHOT/app-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.159 s
[INFO] Finished at: 2015-08-26T13:49:46-04:00
[INFO] Final Memory: 20M/177M
[INFO] ------------------------------------------------------------------------

Eclipse

First, right-click the Project Explorer and select Import -> Import:

screen shot 2016-07-28 at 8 12 09 am

Next, choose Maven -> Existing Maven Projects:

screen shot 2016-07-28 at 8 12 24 am

Tell Eclipse where you've downloaded or checked out the project and click Finish:

screen shot 2016-07-28 at 8 12 49 am

You should see a progress bar as the project is imported:

screen shot 2016-07-26 at 8 56 02 am

Once the project is imported, right-click the project, then choose Run As -> Maven install:

screen shot 2016-07-28 at 8 17 57 am

If everything has succeeded, you should see a successful build in Eclipse's console:

screen shot 2016-07-28 at 8 19 06 am

Continue set up

Once you've verified you have the project working, continue configuring your environment to start work as described in this wiki page

java-testing-example's People

Contributors

rosston avatar searls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.