Git Product home page Git Product logo

java-basics-hw05-master's Introduction

java-basics-hw05

This is a homework for the Java Constructors

IntelliJ IDEA project configuration

  1. Clone this project to your local environment

    git clone https://github.com/kermek/java-basics-hw05.git

  2. Import in IntelliJ IDEA using File -> New -> Project from Existing Sources....

  3. Select the directory that you cloned to.

  4. Go through the Import Project wizard by clicking Next.

  5. On Please select project SDK point it to your Java 1.8 JDK.

  6. Press Ctrl+Alt+Shift+S (Command + ;) and check that in your Project Structure. value of Project language level is set to 8 - Lambdas, type annotations et..

  7. Open test class, put your cursor on @Test annotation, press Alt+Enter and choose Add 'testng' to classpath.

  8. Set the value to org.testng:testng:6.14.3 and mark checkbox Download to.

  9. Complete all TODO tasks. Do not change the test class.

  10. Uncomment BirdTest body and execute tests.

Birds assignment

Develop base class Bird. Develop abstract classes FlyingBird and NonFlyingBird. FlyingBird should have method checkWings(). Create class Eagle, Swallow, Penguin and Kiwi. Implement methods in the Zoo class:

  • add a bird to the list
  • feed different bird sections of the zoo
  • add birds to a flying section of the zoo Uncomment tests and execute them. All test should pass.
                |-------|
                | Bird  |
                |-------|
                    |
           ------------------------
           |                      |
     |----------|          |-------------|
     |FlyingBird|          |NonFlyingBird|
     |----------|          |-------------|         
           |                      | 
    --------------            ----------
    |            |            |        |
|-----|     |--------|    |-------|  |----|
|Eagle|     | Swallow|    |Penguin|  |Kiwi|
|-----|     |--------|    |-------|  |----|        

Unit testing

There are number of different ways to run your unit tests, e.g.:

  • In test class put your cursor on its definition, right click and choose Run ...
  • Right click on a little green triangle near the class definition and choose Run ...
  • In test class put your cursor on its definition and press Ctrl+Shift+F10 (Control+Shift+R)
  • Once you executed your test you could re-run it again by pressing Shift+F10 (Control+R)

java-basics-hw05-master's People

Contributors

proshkovskyi avatar

Watchers

James Cloos 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.