// Ġ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 . external System . service . ui Ċ Ċ import Ġcom . intellij . openapi . external System . service . execution . External System J dk Util . USE _ PROJECT _ JDK Ċ import Ġorg . junit . Test Ċ Ċ class ĠExternal System J dk ComboBox Test Ġ: ĠExternal System J dk ComboBox TestCase () Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` test Ġsimple Ġusage `() Ġ{ ĊĠĠĠ Ġcombo Box . refresh Data ( USE _ PROJECT _ JDK , ĠJDK 1 0 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 6 . name , ĠJDK 6 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 7 . name , ĠJDK 7 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 8 . name , ĠJDK 8 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 9 . name , ĠJDK 9 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 1 0 . name , ĠJDK 1 0 ) ĊĠĠĠ Ġassert Selected J dk ( JDK 1 1 . name , ĠJDK 1 1 ) ĊĠĠĠ Ġassert Selected J dk ( USE _ PROJECT _ JDK , ĠJDK 1 0 ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` test Ġundefined Ġproject Ġj dk `() Ġ{ ĊĠĠĠ Ġcombo Box . refresh Data ( USE _ PROJECT _ JDK , Ġnull ) ĊĠĠĠ ĠassertEquals ( null , Ġcombo Box . selected J dk ) ĊĠ Ġ} Ċ }