Discover Classes. Earn 10% Rewards.

TDD and Refactoring Legacy Code Using Java is unfortunately unavailable

Thankfully we have 78 other Coding Classes for you to choose from. Check our top choices below or see all classes for more options.

Python Data Science & Machine Learning Bootcamp Deal

Python Data Science & Machine Learning Bootcamp

Noble Desktop See all classes by this school @ 185 Madison Ave, New York, NY & Virtually Online

Learn how to apply Python to analyze data, create predictive models using machine learning, and automate tasks in this comprehensive data science course. Build the programming skills needed to thrive in entry-level data science and Python engineering positions.

(453) Beginner 18 and older
Now:
$3,145.50
Was:
$3,495

16 sessions

Gift it!

Python Machine Learning Bootcamp

Noble Desktop See all classes by this school @ 185 Madison Ave, New York, NY & Virtually Online

Build the practical abilities needed to design machine learning algorithms that can independently learn patterns and make decisions, through this hands-on bootcamp. Develop the in-demand skill set powering most trading on Wall Street and the product recommendations at companies like Amazon, Spotify, and Netflix.

(453) All levels 18 and older
$1,895

5 sessions

Gift it!

Python for Data Science Bootcamp

Noble Desktop See all classes by this school @ 185 Madison Ave, New York, NY & Virtually Online

Tap into the power of Python for analyzing real-world data sets in this hands-on course at Noble Desktop. Step into Python fundamentals and learn how to create programs, work with data, visualize insights, and build machine learning models. Lift your data science skills with the Python for Data Science Bootcamp.

(453) All levels 18 and older
$1,495

5 sessions

Gift it!
Python Certification Program Deal

Python Certification Program

Noble Desktop See all classes by this school @ 185 Madison Ave, New York, NY

Master Python and earn certification through our hands-on Python Certification Program. Build real-world projects, analyze data, and prepare for the PCAP exam with expert-led courses, private tutoring, and a free elective to expand your skill.

(453) All levels 18 and older
Now:
$2,399.20
Was:
$2,999

5 sessions

Gift it!

Python Data Visualization & Interactive Dashboards

Noble Desktop See all classes by this school @ 185 Madison Ave, New York, NY & Virtually Online

Step into data visualization and build interactive dashboards using Python. Get hands-on with popular libraries like NumPy, Pandas, Matplotlib, Seaborn, Plotly, and Dash Enterprise. Impress potential employers with your data science skill by working on real-life projects that show off your coding and analytical strength.

(453) All levels 18 and older
$1,695

5 sessions

Gift it!
See all Coding classes NJ

TDD and Refactoring Legacy Code Using Java

  • All levels
  • 18 and older
  • Earn 10% back in points
  • Price Lock

    If you find the same class on the same dates for less on another site within 48 hours of booking, send us the link. We match the price as credit or the difference.

  • <b>(Exact location to be announced)</b>, New York, NY
  • over 4 sessions

Start Dates (0) $2,095/person

No upcoming dates are currently available.

Book a Private Group Event

Booking this class for a group? Find great private group events

Or see all Coding Group Events

Explore group events and team building activities ranging from cooking, art, escape rooms, trivia, and more.

Class Description

Description

All HOTT courses are available face-to-face, remote-live, or on-site at your facility.

This course provides students with hands on experience learning Test Driven Development (TDD) using JUnit. Students will build unit tests using mocks, fakes, stubs and drivers, and address issues working with databases and other systems. Student will create tests and code that will be more likely to meet and exceed requirements. Code that receives “test coverage” will not break existing systems, because tests are passed before code is checked in.

Students will spend time working with the issues involved in refactoring legacy code, safely cutting into an already deployed system. Students will work on looking for, or creating “seams” to more safely improve code or add features, and work on identifying “code smells” that need attention in a productive system.

Finally, students will explore dependency issues as well as techniques to better understand and improve complex systems.

Students will also examine TDD and refactoring legacy code in other languages like C# to gain a broader view of options and issues working in a multi-language shop. Comprehensive labs using Java provide facilitated hands on practice crucial to developing competence and confidence with the new skills being learned.

Course Prerequisites: Java SE 5+ programming experience and an understanding of object-oriented design principles. HOTT's Java Programming course or equivalent knowledge provides a solid foundation.

Course Overview

Why TDD? Think Twice, Write Production Code Once

  • Utilizing a Safety Net of Automated Testing
  • Agile Development Concepts
  • Eliminating Bugs Early
  • Smoothing Out Production Rollouts
  • Writing Code Faster via Testing
  • Reducing Technical Debt
  • Practicing Emergent Design
  • Making Changes More Safe
  • The Importance of Regression Testing
Basic Unit Testing
  • JUnit
  • 3.x vs 4.0 JUnit Testing
  • Adding Complexity to Initial Simple Tests
  • Making Tests Easy to Run
  • The TDD Pattern: Red, Green Refactor
  • Using Methods of the Assert Class
  • Boundary Testing
  • Unit Test Limitations
Comprehensive Unit Testing Concepts
  • Using Declarative-Style Attributes
  • Using Hamcrest Matchers for More Complex Scenarios
  • Using Test Categories
  • Exception Handling in Tests
  • JUnit Test Initialization and Clean Up Methods
  • Writing Clean and Dirty Tests
  • Testing with Collections, Generics and Arrays
  • Negative Testing
Mocks, Fakes, Stubs and Drivers
  • TDD Development Patterns
  • Naming Conventions for Better Code
  • Using Mock Objects
  • Using Fakes
  • Using Stubs
  • Test Doubles
  • Manual Mocking
  • Mocking with a Mock Framework
  • Self-Shunt Pattern
Database Unit Testing
  • Mocking the Data Layer
  • Identifying what Should Be Tested in Databases
  • Stored Procedure Tests
  • Schema Testing
  • Using NDbUnit to Set Up the DB Test Environment
Refactoring Basics
  • Refactoring Existing Code
  • Restructuring
  • Extracting Methods
  • Removing Duplication
  • Reducing Coupling
  • Division of Responsibilities
  • Improving Clarity and Maintainability
  • Test First - then Refactor
  • More Complex Refactoring Considerations
Patterns and Anti-Patterns in TDD
  • The SOLID Principles
  • Factory Methods
  • Coding to Interface References
  • Checking Parameters for Validity Test
  • Open/Closed Principle: Open to Extension, Closed to Change
  • Breaking Out Method/Object
  • Extract and Override Call
  • Extract and Override Factory Method
  • Singleton Pattern
  • Decorator Pattern
  • Facade Pattern
  • State Pattern
  • MVP, MVC and MVVM Patterns
  • Finding and Removing Code Smells/Antipatterns
Refactoring Legacy Code
  • Reducing Risk of Change
    - Eliminating Dependencies
    - Characterization Tests as a Safety Net
    - Introducing Abstractions to Break Dependencies
  • Analyzing Legacy Code
    - Identifying Pinch Points with Effect Analysis
    - Identifying Seams for Expansion and Testing
    - Listing Markup
  • Minimizing Risk of Adding New Behavior
    - Sprout Method
    - Sprout Class
    - Wrap Method
    - Wrap Class
  • Dealing with Code that's Difficult to Test
    - Globals and Singletons in Tests
    - Inaccessible Methods and Fields
  • Using Smells to Identify What to Refactor
    - Dealing with Monster Methods
    - Dealing with Excessively Complex, Large Classes
    - Identifying and Eliminating Duplication
    - Other Smells
  • Dealing with Large Legacy Systems
    - Preserving Signatures
Code Coverage
  • White Box vs Black Box Testing
  • Planning to Increase Code Coverage Over Time
    - Goal 80% or More Test Coverage
    - Statement Coverage
    - Condition Coverage
    - Path Coverage
  • Test Harnesses
  • Unit-Testing Harnesses
System, Regression and Acceptance Testing
  • Statistical Sampling
  • Usability Testing
  • Test Protocols
  • Regression Testing
  • Acceptance Testing
Continuous Integration Servers/Automated Testing
  • Early Warning of Conflicts
  • Metrics and Tools
  • Checking into Repository
    - Team Foundation Server (TFS)
    - Subversion
  • Continuous Integration Servers
    - CruiseControl.NET
    - Hudson
    - Automating the Build/Deployment
Risks Changing Legacy/Production Systems
  • Refactoring
  • Coupling and Cohesion Issues
  • Taking Small Tested Steps
  • Anti-Pattern: Big Bang, Boom

Automating the Build/Deployment

Refund Policy

Tuition includes all course materials. Students may withdraw before the second day of class to receive a 100% refund, provided course materials are returned to the instructor. Prorated refunds may be granted for withdrawals after the first day.

Cancellations and Changes: There are no cancellation fees.

Attendance Requirements: Students must attend each day of a course and successfully complete hands on exercises in order to receive a certificate of completion. If a student wishes to retake any portion of a class that he or she completes, the student may do so within 12 months at no extra cost.

Intended Audience: Hands On Technology Transfer, Inc., provides IT training designed for technology professionals who wish to quickly upgrade their computer skills. In most states, the employer bears all training costs.

Reviews of Classes at Hands On Technology Transfer, Inc. (7)

Similar Classes

Benefits of Booking Through CourseHorse

  • Booking is safe. When you book with us your details are protected by a secure connection.
  • No booking fees. You pay the school's price, with nothing added at checkout.
  • Price Lock. If you find the same class on the same dates for less on another site within 48 hours of booking, send us the link. We match the price as credit or the difference.
  • This class will earn you 20950 points. Earn 10% back in points. 100 points = $1 off a later class.

Hands On Technology Transfer, Inc.

HOTT delivers instructor-led technical training across the United States, Canada and the United Kingdom. Whether you attend in person, remote-live or on-demand, our classroom-based training philosophy zeroes in on your ability to work more productively and with higher quality results after training....
View school profile
Hands On Technology Transfer, Inc.
Vetted by CourseHorse

A verified NJ educator.

Loading...