package Ġnl . j ov mit . kat as . f izz buzz Ċ Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ Ċ class ĠF izz Bu zz Test Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġf izz Bu zz : ĠF izz Bu zz ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun Ġsetup () Ġ{ ĊĠĠĠĠĠĠĠ Ġf izz Bu zz Ġ= ĠF izz Bu zz () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Print F izz For Numbers Div id able By 3 Instead Of Number () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" F izz ", Ġf izz Bu zz . build Numbers Sequence ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertEquals (" F izz ", Ġf izz Bu zz . build Numbers Sequence ( 6 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Print Bu zz For Numbers Div id able By 5 Instead Of Number () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" Bu zz ", Ġf izz Bu zz . build Numbers Sequence ( 5 )) ĊĠĠĠĠĠĠĠ ĠassertEquals (" Bu zz ", Ġf izz Bu zz . build Numbers Sequence ( 1 0 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Print F izz Bu zz For Numbers Div id able By Both 3 and 5 () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" F izz Bu zz ", Ġf izz Bu zz . build Numbers Sequence ( 1 5 )) ĊĠĠĠĠĠĠĠ ĠassertEquals (" F izz Bu zz ", Ġf izz Bu zz . build Numbers Sequence ( 3 0 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Print F izz For Numbers Containing Digit 3 () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" F izz ", Ġf izz Bu zz . build Numbers Sequence ( 1 3 )) ĊĠĠĠĠĠĠĠ ĠassertEquals (" 1 4 ", Ġf izz Bu zz . build Numbers Sequence ( 1 4 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Print Bu zz For Numbers Containing Digit 5 () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals (" Bu zz ", Ġf izz Bu zz . build Numbers Sequence ( 2 5 )) ĊĠĠĠĠĠĠĠ ĠassertEquals (" 1 6 ", Ġf izz Bu zz . build Numbers Sequence ( 1 6 )) ĊĠĠĠ Ġ} Ċ }