Code Monkey home page Code Monkey logo

java-mod-3-project-testing's Introduction

Project Work Time - Testing

Learning Goals

  • Spend some time working on your project.

Project Work Time

Now that we have learned a little more about testing in Java, it's time to apply this new knowledge to our projects!

Add unit tests to your project to automate testing. Consider the following instructions:

  • Create a unit test class for the City class.
    • There should exist unit tests to test the getter and setter methods.
  • Create a unit test class for the Airport class.
    • There should exist unit tests to test the getter and setter methods.
      • Including methods to get/set the three-character airport code that we implemented after learning about regular expressions.
  • Create a unit test class for the Reservation class.
    • There should exist unit tests for any getter and setter methods.
    • There should exist a unit test for adding a reservation.
    • There should exist a unit test for cancelling a reservation.
    • These tests should also capture the date-time object we added to this class after learning about date-time objects.
  • Tips:
    • Refer to the code-alongs in this past section as needed to help you walk through the creation of unit tests.
    • Refer back to the Assertions lesson to see what assertions should be used.
      • Remember that unit tests are supposed to be small. Try to keep each test to one assert per test.

java-mod-3-project-testing's People

Contributors

kcleland0818 avatar

Watchers

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