GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eviltester/startUsingJavaJUnit: A simple Java JUnit project to check Java and Maven are installed correctly

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/test/java/com/javafortesters/junit
src/test/java/com/javafortesters/junit
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 
speedrun_install_java_checklist.md
speedrun_install_java_checklist.md
 
 

Repository files navigation

Start Using Java JUnit

build status

A simple Java JUnit 4 project to check Java and Maven are installed correctly.

For a Java JUnit 5 project look here

This project demonstrates:

  • Maven Setup
  • JUnit execution

Clone or download the project.

Pre-requisites:

  • JDK Installed
  • MAVEN Installed

Pre-requisite Install Instructions

Install instructions can be found in speedrun_install_java_checklist.md

Read the Speedrun Install Java Checklist for more details.

Usage

In the root folder where the pom.xml resides, type:

mvn test

And you should see something like:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyFirstJUnitTest 1.0
[INFO] ------------------------------------------------------------------------
[INFO]

... blah blah blah ...

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.javafortesters.junit.MyFirstTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec

Results :

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

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.764 s
[INFO] Finished at: 2016-09-30T10:55:03+01:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------

If you see the BUILD SUCCESS then everything has installed properly.

About

Author: Alan Richardson

  • EvilTester.com
  • Compendium Developments
  • A Java JUnit 5 version of this project is available
    • github.com/eviltester/startUsingJavaJUnit5

About

A simple Java JUnit project to check Java and Maven are installed correctly

Resources

Readme
MIT license
Activity

Stars

13 stars

Watchers

7 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.