package Ġber th ier . anto ine . bir ud roid . model Ċ Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ Ċ class ĠUser Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcreation _ construct eur _ not _ beer List (){ ĊĠĠĠĠĠĠĠ Ġval Ġuser Ġ= ĠUser (" An to ine "," aber th ier @ gmail . com "," 1 XD 0 9 ND J 7 6 ") ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" An to ine ", user . name ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" aber th ier @ gmail . com ", user . mail ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" 1 XD 0 9 ND J 7 6 ", user . id ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 0 , user . beer Favorite . size ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 0 , user . beer Note . size ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcreation _ construct eur _ beer List (){ ĊĠĠĠĠĠĠĠ Ġval Ġbeer List Ġ= ĠArrayList < Be er >() ĊĠĠĠĠĠĠĠ Ġbeer List . add ( Be er ()) ĊĠĠĠĠĠĠĠ Ġval Ġuser Ġ= ĠUser (" An to ine "," aber th ier @ gmail . com "," 1 XD 0 9 ND J 7 6 ", beer List ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" An to ine ", user . name ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" aber th ier @ gmail . com ", user . mail ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals (" 1 XD 0 9 ND J 7 6 ", user . id ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 1 , user . beer Favorite . size ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 0 , user . beer Note . size ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠĠĠĠĠ Ġfun Ġcreation _ construct eur _ Be er Note List (){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġbeer Note List Ġ= ĠArrayList < Note >() ĊĠĠĠĠĠĠĠĠĠĠĠ Ġbeer Note List . add ( Note (" ID BE ER ", 4 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġuser Ġ= ĠUser (" An to ine "," aber th ier @ gmail . com "," 1 XD 0 9 ND J 7 6 ", beer Note = beer Note List ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals (" An to ine ", user . name ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals (" aber th ier @ gmail . com ", user . mail ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals (" 1 XD 0 9 ND J 7 6 ", user . id ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 0 , user . beer Favorite . size ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssert . assertEquals ( 1 , user . beer Note . size ) ĊĠĠĠĠĠĠĠ Ġ} Ċ Ċ }