Skip to content

champel/social-network-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social network kata following IDD

Based on the Sandro Mancuso's kata

Used development environment to do the Kata

  • Java 11 (adopt openjdk)
  • Eclipse 2020-09
  • Apache Maven 3.5.4

Libraries

Libraries have been constrained to be aligned with my employer.

  • JUnit 5.7.0 (jupiter)
  • AssertJ 3.8.1
  • Mockito 3.6.28
  • Cucumber 6.9.0 (java8/lambda StepsDef support)

The Kata

Start using the skeleton branch. An implementation following IDD & Outside-in TDD is depicted in steps accessible as branches:

  • 00 - Skeleton, defining:
  • 10 - User commands implementation with User Journey Test in GREEN & Actions sketch discovery
  • 20 - Actions implementation, Action Components Test creation & Domain services sketch discovery
  • 40 - Domain services implementations, Action Components Acceptance Test in GREEN
  • 50 - Repository implementation & Integration Test in GREEN based on expected interface behavior (pending to apply Contract Test).
  • 60 - End to end test in GREEN

Eclipse tricks

Configure static imports

In Preferences/Java/Editor/Content Asist/Favorites, introduce the following favorites (I also removed the previous ones):

  • org.assertj.core.api.Assertions
  • org.mockito.ArgumentMatchers
  • org.mockito.BDDMockito
  • org.mockito.Mockito

Some helpful keyboard shortcuts

  • command+1 Quick fix. Very useful when you have a lot of red in your tests :) (thanks Sandro!)
  • command+shift+R Search dialog for resources
  • command+shift+T Search dialog for java types
  • command+shift+O Search/Clean/Organize imports
  • command+F11 Run last launched

For windows, use control instead of command

More shorcuts

About

TDD Outside-in social network kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published