package Ġcom . jay r ave . f alk on . mapper Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠSimple Property Extractor Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest NonNull Value Extraction () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnon Null Int Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: non Null Int ) ĊĠĠĠĠĠĠĠ Ġval Ġnullable Int Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: nullable Int ) ĊĠĠĠĠĠĠĠ Ġval Ġnon Null String Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: non Null String ) ĊĠĠĠĠĠĠĠ Ġval Ġnullable String Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: nullable String ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmodel For Test Ġ= ĠModel For Test ( 1 , Ġ 1 , Ġ" test Ġnon - null Ġstring ", Ġ" test Ġnullable Ġstring ") ĊĊĠĠĠĠĠĠĠ ĠassertThat ( non Null Int Extractor . extract From ( model For Test )). is Same As ( model For Test . non Null Int ) ĊĠĠĠĠĠĠĠ ĠassertThat ( nullable Int Extractor . extract From ( model For Test )). is Same As ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel For Test . nullable Int ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( non Null String Extractor . extract From ( model For Test )). is Same As ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel For Test . non Null String ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( nullable String Extractor . extract From ( model For Test )). is Same As ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmodel For Test . nullable String ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest NullValue Extraction () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġnullable Int Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: nullable Int ) ĊĠĠĠĠĠĠĠ Ġval Ġnullable String Extractor Ġ= ĠSimple Property Extractor ( Model For Test :: nullable String ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmodel For Test Ġ= ĠModel For Test ( 1 , Ġnull , Ġ" test ", Ġnull ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( nullable Int Extractor . extract From ( model For Test )). isNull () ĊĠĠĠĠĠĠĠ ĠassertThat ( nullable String Extractor . extract From ( model For Test )). isNull () ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġprivate Ġclass ĠModel For Test ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnon Null Int : ĠInt , Ġval Ġnullable Int : ĠInt ?, ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnon Null String : ĠString , Ġval Ġnullable String : ĠString ? ĊĠĠĠ Ġ) Ċ }