/* Ċ Ġ* ĠLicensed Ġto Ġthe ĠApache ĠSoftware ĠFoundation Ġ( ASF ) Ġunder Ġone Ċ Ġ* Ġor Ġmore Ġcontributor Ġlicense Ġagreements . Ġ ĠSee Ġthe ĠNOTICE Ġfile Ċ Ġ* Ġdistributed Ġwith Ġthis Ġwork Ġfor Ġadditional Ġinformation Ċ Ġ* Ġregarding Ġcopyright Ġownership . Ġ ĠThe ĠASF Ġlicenses Ġthis Ġfile Ċ Ġ* Ġto Ġyou Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ċ Ġ* Ġ" License "); Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ċ Ġ* Ġwith Ġthe ĠLicense . Ġ ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ċ Ġ* Ġsoftware Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ċ Ġ* Ġ" AS ĠIS " ĠBASIS , ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY Ċ Ġ* ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ġ ĠSee Ġthe ĠLicense Ġfor Ġthe Ċ Ġ* Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ġlimitations Ċ Ġ* Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġnet . pot ot sk iy . apps . lom out . api . source . nested Ċ Ċ import Ġnet . pot ot sk iy . apps . lom out . api . AppData Exception Ċ import Ġnet . pot ot sk iy . apps . lom out . api . source . workbook . Cell Address Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . assertj . core . api . Assertions . assertThat Thrown By Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . parallel . Execution Ċ import Ġorg . junit . jupiter . api . parallel . Execution Mode Ċ import Ġjava . time . LocalDate Ċ import Ġjava . time . LocalDateTime Ċ Ċ @ Suppress (" Magic Number ") Ċ @ Execution ( Execution Mode . CON CURRENT ) Ċ internal Ġclass ĠNested Attribute Cell Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġinternal Ġfun Ġget Cell Address Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġworkbook Ġ= ĠNested Attribute Workbook ( null , Ġ', ', Ġ'\\ ', Ġnull , Ġ'=', Ġ'\\ ', Ġ" test ") ĊĠĠĠĠĠĠĠ Ġworkbook . string Ġ= Ġ" attr 1 = value 1 , attr 2 = value 2 " ĊĠĠĠĠĠĠĠ Ġval Ġcell Ġ= Ġworkbook [ 0 ][ 1 ] ! ![ 1 ] ĊĠĠĠĠĠĠĠ ĠassertThat ( cell ). isNotNull ĊĠĠĠĠĠĠĠ ĠassertThat ( cell ?. address ). isEqualTo ( Cell Address ( 1 , Ġ 1 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( cell ?. row ?. row Num ). isEqualTo ( 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġinternal Ġfun Ġnot Allow Operations Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġworkbook Ġ= ĠNested Attribute Workbook ( null , Ġ', ', Ġ'\\ ', Ġnull , Ġ'=', Ġ'\\ ', Ġ" test ") ĊĠĠĠĠĠĠĠ Ġworkbook . string Ġ= Ġ" attr 1 = value 1 , attr 2 = value 2 " ĊĠĠĠĠĠĠĠ Ġval Ġcell Ġ= Ġworkbook [ 0 ][ 1 ] ! ![ 1 ] ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. boolean Value Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. longValue Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. doubleValue Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. doubleValue Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. setCellValue ( true ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. setCellValue ( 1 L ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. setCellValue ( 1 . 1 ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. setCellValue ( LocalDateTime . now ()) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ Ġcell ?. setCellValue ( LocalDate . now ()) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isInstanceOf ( AppData Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message Containing ("${ Nested Attribute Cell :: class . simple Name } Ġsupports Ġonly Ġstring Ġtype Ġvalue ") ĊĠĠĠ Ġ} Ċ } Ċ