Victor Rentea

Java Champion, ex Lead Architect @IBM
Victor (@VictorRentea) is a Java Champion, and one of the top Technical Trainers, having trained more than 1.5K developers in dozens of companies worldwide.
Victor’s talks are regularly top-rated at the largest international conferences in Europe: his live-coding sessions are lightning-fast but well crafted, full of enthusiasm, deep insights and take-away tips. His passion is Simple Design, Refactoring, and Unit Testing, about which he regularly talks at top conferences. His personal commitment is to seed passion for writing clean, professional code.

Workshop topic:
Unit Testing

Time & Date:
December 2nd & 3rd | 9am-5pm CET

About workshop

  • Key Concepts: Line vs Branch Coverage, Mutation Testing, Bug-Testing
  • Parameterized Tests and Approval Testing
  • Behavior-Driven Design (BDD) Essentials, Gherkin .feature, best practices, pragmatic use
  • Design Feedback from Tests: the bloated set-up, naming tests, API design hints, Split-Phase Refactoring, Functional-Core/Imperative-Shell
  • Powerful assertions and expressive failures with Assert4J
  • Test-Driven Development (TDD)
      » Red-Green-Refactor-Analysis cycle – essential discipline rules and main pitfall
      » TDD Styles: Chicago vs London School
      » TDD Coding Exercise
      » Pros and Cons of TDD, Real-life applicability
  • Mocks:
      » Core Capabilities
      » 3 reasons to use them (and one is dangerous)
      » Mocking Smells: partial mocks (Spies), too many mocks/test, mocksimpeding refactoring
      » Mocking Anti-Patterns
      » Ways to avoid Mocks: pure functions and custom testing DSL
      » Legacy Code Kata Exercise - Covering existing code with tests
  • Integration Testing With Spring (4-6 hours):
      » Purpose, scope
      » Partial Decoupling Techniques: MockBean, fake implementation, profiles, WireMock (+recording)
      » Testing Persistence: in-memory DBs, DirtiesContext, transacted tests, manual cleanup, Testcontainers
      » Testing your REST API: MockMvc, testing authorization, building custom testing DSLs
  • Advanced Techniques: controlling time from tests, Capturing output, PowerMock, Extending JUnit
  • Testing Legacy Code: principles, core techniques, Golden Master Technique

* If you're interested in this program, please contact us at info@itkonekt.com to find out more about availability and prices.