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 — java-testing-example/example at main · testdouble/java-testing-example

This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Expand file tree

/

example

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

example

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

example project

This is a mostly-empty project placed here to be a sandbox for any one-off source listings, exercises, or tests you might like to write. It's preconfigured with JUnit, Mockito, and Hamcrest.

See ../example-cucumber for an example project that's pre-configured to run Cucumber tests.

example code

In the code that's included in this project, you'll see an example of a collaborator test (for FeedsWalrus), and two regression tests (for OpensCan and Walrus). They serve as examples of using JUnit, Hamcrest, and Mockito.

.
├── README.md
├── pom.xml
├── src
│   ├── main
│   │   └── java
│   │       └── example
│   │           ├── FeedsWalrus.java
│   │           ├── OpensCan.java
│   │           └── values
│   │               ├── CannedWalrusFood.java
│   │               ├── Walrus.java
│   │               └── WalrusFood.java
│   └── test
│       └── java
│           └── example
│               ├── FeedsWalrusTest.java
│               ├── OpensCanTest.java
│               └── values
│                   └── WalrusTest.java
You are visitor 01402775 — 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.