/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 8 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġ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 Ġorg . jetbrains . kotlin . android Ċ Ċ import Ġcom . android . test utils . TestUtils . get Sdk Ċ import Ġcom . android . test utils . TestUtils . resolve Workspace Path Ċ import Ġorg . jetbrains . kotlin . android . quick fix . Abstract Android Quick Fix Multi File Test Ċ import Ġorg . jetbrains . kotlin . android . Config Library Util Ċ Ċ abstract Ġclass ĠParcel Quick Fix Test Ġ: ĠAbstract Android Quick Fix Multi File Test () Ġ{ ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġconst Ġval ĠTEST _ DIR Ġ= Ġ" android - extensions - idea / testData / android / parcel / quick fix " ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġsuper . setUp () ĊĊĠĠĠ Ġval Ġandroid Sdk Ġ= Ġget Sdk () ĊĠĠĠ Ġval Ġandroid Jar Dir Ġ= Ġandroid Sdk . resolve (" platforms "). to File (). list Files (). first Ġ{ Ġit . name . startsWith (" android - ") Ġ} ĊĠĠĠ ĠConfig Library Util . add Library ( my Fixture . module , Ġ" android Jar ", Ġandroid Jar Dir . absolute Path , ĠarrayOf (" android . jar ")) ĊĊĠĠĠ Ġval Ġkotlin Plugin Ġ= Ġresolve Workspace Path (" pre bu il ts / tools / common / kotlin - plugin / Kotlin ") ĊĠĠĠ ĠConfig Library Util . add Library ( my Fixture . module , Ġ" parcel ize Compiler ", Ġ"$ kotlin Plugin / kotlin c / lib ", ĠarrayOf (" parcel ize - compiler . jar ")) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠtearDown () Ġ{ ĊĠĠĠ ĠConfig Library Util . remove Library ( my Fixture . module , Ġ" android Jar ") ĊĠĠĠ ĠConfig Library Util . remove Library ( my Fixture . module , Ġ" parcel ize Compiler ") ĊĊĠĠĠ Ġsuper . te ar Down () ĊĠ Ġ} ĊĊĠ Ġclass ĠAdd Primary Constructor Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Constructor With Delegate () Ġ= Ġdo Test ("$ TEST _ DIR / add Primary Constructor / constructor With Delegate ") ĊĠĠĠ Ġfun Ġtest No Quick Fix () Ġ= Ġdo Test ("$ TEST _ DIR / add Primary Constructor / no Quick Fix ") ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / add Primary Constructor / simple ") ĊĠ Ġ} ĊĊĠ Ġclass ĠC ant Be Inner Class Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / cant Be Inner Class / simple ") ĊĠ Ġ} ĊĊĠ Ġclass ĠClass ShouldBe Annotated Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / class ShouldBe Annotated / simple ") ĊĠ Ġ} ĊĊĠ Ġclass ĠDelete In compatible Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Creator Field () Ġ= Ġdo Test ("$ TEST _ DIR / delete In compatible / creator Field ") ĊĠĠĠ Ġfun Ġtest WriteTo Parcel () Ġ= Ġdo Test ("$ TEST _ DIR / delete In compatible / writeTo Parcel ") ĊĠ Ġ} ĊĊĠ Ġclass ĠM igrations Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Basic () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / basic ") ĊĠĠĠ Ġfun Ġtest Complex Case 1 () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / complex Case 1 ") ĊĠĠĠ Ġfun Ġtest Custom Describe Contents () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / custom Describe Contents ") ĊĠĠĠ Ġfun Ġtest From Creator Object () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / from Creator Object ") ĊĠĠĠ Ġfun Ġtest Inner Class Factory () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / inner Class Factory ") ĊĠĠĠ Ġfun Ġtest Jvm Field () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / jvm Field ") ĊĠĠĠ Ġfun Ġtest No WriteTo Parcel () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / no WriteTo Parcel ") ĊĠĠĠ Ġfun Ġtest Without Describe Contents () Ġ= Ġdo Test ("$ TEST _ DIR / migrations / without Describe Contents ") ĊĠ Ġ} ĊĊĠ Ġclass ĠNo Parcelable Sup ertype Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Already Has Sup ertype () Ġ= Ġdo Test ("$ TEST _ DIR / no Parcelable Sup ertype / already Has Sup ertype ") ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / no Parcelable Sup ertype / simple ") ĊĠ Ġ} ĊĊĠ Ġclass ĠProperty W ont Be Serialized Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / property W ont Be Serialized / simple ") ĊĠ Ġ} ĊĊĠ Ġclass ĠRemove D uplic ating Type Parcel er Annotation Ġ: ĠParcel Quick Fix Test () Ġ{ ĊĠĠĠ Ġfun Ġtest Simple () Ġ= Ġdo Test ("$ TEST _ DIR / remove D uplic ating Type Parcel er Annotation / simple ") ĊĠ Ġ} Ċ } Ċ