Giter Site home page Giter Site logo

atdd-subway-path's Introduction

지하철 노선도 미션

ATDD 강의 실습을 위한 지하철 노선도 애플리케이션

1단계

요구사항


기능 요구사항

  • 지하철 구간 관련 단위 테스트를 완성하세요.
    • 구간 단위 테스트 (LineTest)
    • 구간 서비스 단위 테스트 with Mock (LineServiceMockTest)
    • 구간 서비스 단위 테스트 without Mock (LineServiceTest)
  • 단위 테스트를 기반으로 비즈니스 로직을 리팩터링 하세요.

요구사항 설명


단위 테스트 코드 작성하기

  • 기존 기능에 대한 테스트 작성이기 때문에 테스트 작성 시 바로 테스트가 성공해야 함

비즈니스 로직 리팩터링

  • 구간 추가/삭제 기능에 대한 비즈니스 로직은 현재 LineService에 대부분 위치하고 있음
  • 비즈니스 로직을 도메인 클래스(Line)으로 옮기기
  • 리팩터링 시 LineTest의 테스트 메서드를 활용하여 TDD 사이클로 리팩터링을 진행
  • 리팩터링 과정에서 Line 이외 추가적인 클래스가 생겨도 좋음
    • 구간 관리에 대한 책임을 Line 외 별도의 도메인 객체가 가지게 할 수 있음

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.