// ĠCopyright Ġ 2 0 0 0 - 2 0 1 9 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . intellij . openapi . application Ċ Ċ import Ġcom . intellij . configuration Store . Store Util Ċ import Ġcom . intellij . ide . util . Properties Component Ċ import Ġcom . intellij . test Framework . fixtures . B are TestFixture TestCase Ċ import Ġcom . intellij . test Framework . run In Ed t And Wait Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . assertj . core . description . Description Ċ import Ġorg . junit . Test Ċ import Ġjava . io . File Ċ Ċ class ĠConfig Import Helper Test Ġ: ĠB are TestFixture TestCase () Ġ{ ĊĠ Ġ@ Test Ġfun Ġconfig Directory IsValid For Import () Ġ{ ĊĠĠĠ ĠProperties Component . getInstance (). setValue (" property . Config Import Helper Test ", Ġtrue ) ĊĠĠĠ Ġrun In Ed t And Wait Ġ{ ĠStore Util . save Settings ( Application Manager . getApplication (), Ġtrue ) Ġ} ĊĠĠĠ Ġval Ġconfig Ġ= ĠFile ( Path Manager . getConfig Path ()) ĊĠĠĠ ĠassertThat ( Config Import Helper . is Config Directory ( config )) ĊĠĠĠĠĠ Ġ. ` as `( description Ġ{ Ġ"${ config } Ġexists =${ config . exists ()} Ġoptions =${ File ( config , Ġ" options "). list (). asList () }" Ġ}) ĊĠĠĠĠĠ Ġ. isTrue () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdescription ( block : Ġ() Ġ-> ĠString ) Ġ= Ġobject Ġ: ĠDescription () Ġ{ Ġoverride Ġfun Ġvalue () Ġ= Ġblock () Ġ} Ċ }