Skip to content

Repo for the Unit testing workshop, given at the Hoplite meeting on Thursday March 7

License

Notifications You must be signed in to change notification settings

HopliteSJSU/UnitTestingWRKSHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unit Testing Workshop

This is the the repo for the Unit Testing Workshop held at the Hoplite meeting on Thursday March 7. It teaches the attendees how to write JUnit tests for their code, and how unit tests can help to discover bugs. Especially useful if you add functionality or do other refactoring of your code.

Instructions

Step 1

Clone this repo to your local machine and import the Java project with your favorite editor. Your editior must offer JUnit support.

Step 2

Complete the test stubs in MovieTest.java and APITest.java

Step 3

After completing the tests check if your expectations match the actual output. If not, meaning the test failed, either investigate your test or check the source code to make sure there are no bugs. Repeat this until all tests turn green.

Step 4

Congratualtions you just successfully unit tested this code and found and fixed bugs in the process.

About

Repo for the Unit testing workshop, given at the Hoplite meeting on Thursday March 7

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages