@ file : Suppress (" unused ", Ġ" UNUSED _ PARAMETER ", Ġ" UNUSED _ VARIABLE ") Ġ// Ġvariables Ġare Ġintention ally Ġunused Ċ package Ġcom . episode 6 . mock sp ress o 2 . plugins . d agger 2 Ċ Ċ import Ġassert k . assertThat Ċ import Ġassert k . assertions . hasClass Ċ import Ġassert k . assertions . is Failure Ċ import Ġcom . episode 6 . mock sp ress o 2 . Mock sp ress o Builder Ċ import Ġcom . episode 6 . mock sp ress o 2 . plugins . javax . inject . reflect . Multiple Inject Construct ors Exception Ċ import Ġcom . episode 6 . mock sp ress o 2 . plugins . javax . inject . reflect . No Inject Construct ors Exception Ċ import Ġcom . episode 6 . mock sp ress o 2 . real Instance Ċ import Ġdagger . ass isted . Ass isted Inject Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠD agger 2 Bad Inject Real Object Maker Test Ġ{ ĊĊĠ Ġ@ Test Ġfun Ġtest No Constructor () Ġ{ ĊĠĠĠ Ġval Ġmx o Ġ= ĠMock sp ress o Builder (). make Real Objects Using D agger 2 Rules (). build () ĊĠĠĠ Ġval Ġro : ĠHas No Constructor Ġby Ġmx o . real Instance () ĊĊĠĠĠ ĠassertThat Ġ{ Ġmx o . ensure Init () Ġ}. is Failure (). hasClass ( No Inject Construct ors Exception :: class ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Too Many Construct ors 1 () Ġ{ ĊĠĠĠ Ġval Ġmx o Ġ= ĠMock sp ress o Builder (). make Real Objects Using D agger 2 Rules (). build () ĊĠĠĠ Ġval Ġro : ĠHas Too Many Construct ors 1 Ġby Ġmx o . real Instance () ĊĊĠĠĠ ĠassertThat Ġ{ Ġmx o . ensure Init () Ġ}. is Failure (). hasClass ( Multiple Inject Construct ors Exception :: class ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Too Many Construct ors 2 () Ġ{ ĊĠĠĠ Ġval Ġmx o Ġ= ĠMock sp ress o Builder (). make Real Objects Using D agger 2 Rules (). build () ĊĠĠĠ Ġval Ġro : ĠHas Too Many Construct ors 2 Ġby Ġmx o . real Instance () ĊĊĠĠĠ ĠassertThat Ġ{ Ġmx o . ensure Init () Ġ}. is Failure (). hasClass ( Multiple Inject Construct ors Exception :: class ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Too Many Construct ors 3 () Ġ{ ĊĠĠĠ Ġval Ġmx o Ġ= ĠMock sp ress o Builder (). make Real Objects Using D agger 2 Rules (). build () ĊĠĠĠ Ġval Ġro : ĠHas Too Many Construct ors 3 Ġby Ġmx o . real Instance () ĊĊĠĠĠ ĠassertThat Ġ{ Ġmx o . ensure Init () Ġ}. is Failure (). hasClass ( Multiple Inject Construct ors Exception :: class ) ĊĠ Ġ} ĊĊĠ Ġclass ĠHas No Constructor ĊĠ Ġclass ĠHas Too Many Construct ors 1 Ġ@ Ass isted Inject Ġconstructor () Ġ{ ĊĠĠĠ Ġ@ Inject Ġconstructor ( some Var : ĠInt ) Ġ: Ġthis () ĊĠ Ġ} ĊĊĠ Ġclass ĠHas Too Many Construct ors 2 Ġ@ Ass isted Inject Ġconstructor () Ġ{ ĊĠĠĠ Ġ@ Ass isted Inject Ġconstructor ( some Var : ĠInt ) Ġ: Ġthis () ĊĠ Ġ} ĊĊĠ Ġclass ĠHas Too Many Construct ors 3 Ġ@ Inject Ġconstructor () Ġ{ ĊĠĠĠ Ġ@ Inject Ġconstructor ( some Var : ĠInt ) Ġ: Ġthis () ĊĠ Ġ} Ċ } Ċ