package Ġar cs . flags Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġkotlin . test . assert Fails With Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . JUnit 4 Ċ Ċ @ RunWith ( JUnit 4 :: class ) Ċ class ĠBuild Flags Test Ġ{ ĊĠ Ġ@ Test ĊĠ Ġfun Ġdefault Values _ dev Mode () Ġ{ ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . NOT _ READY _ FEATURE ). isFalse () ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE ). isTrue () ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . LA UNCH ED _ FEATURE ). isTrue () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġdefault Values _ release Mode () Ġ{ ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . NOT _ READY _ FEATURE ). isFalse () ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . READY _ FEATURE ). isFalse () ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . LA UNCH ED _ FEATURE ). isTrue () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġoverridden Values _ dev Mode () Ġ{ ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE _ OVER RID DEN _ TO _ TRUE ). isTrue () ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE _ OVER RID DEN _ TO _ FALSE ). isFalse () ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . LA UNCH ED _ FEATURE _ OVER RID DEN _ TO _ TRUE ). isTrue () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġoverridden Values _ release Mode () Ġ{ ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . READY _ FEATURE _ OVER RID DEN _ TO _ TRUE ). isTrue () ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . READY _ FEATURE _ OVER RID DEN _ TO _ FALSE ). isFalse () ĊĠĠĠ ĠassertThat ( Release Mode Build Flags ForTesting . LA UNCH ED _ FEATURE _ OVER RID DEN _ TO _ TRUE ). isTrue () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġrequired Flags _ required Flag Disabled _ throws () Ġ{ ĊĠĠĠ ĠDev Mode Build Flags ForTesting . FEATURE _ REQUIRED _ BY _ OTHER S Ġ= Ġfalse ĊĊĠĠĠ Ġassert Fails With < IllegalArgumentException > Ġ{ ĊĠĠĠĠĠ ĠDev Mode Build Flags ForTesting . FEATURE _ WITH _ DEPEND ENCY Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġrequired Flags _ required Flag Enabled _ does Not Throw () Ġ{ ĊĠĠĠ ĠDev Mode Build Flags ForTesting . FEATURE _ REQUIRED _ BY _ OTHER S Ġ= Ġtrue ĊĠĠĠ ĠDev Mode Build Flags ForTesting . FEATURE _ WITH _ DEPEND ENCY Ġ= Ġtrue ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġupdate And Reset _ dev Mode () Ġ{ ĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE ). isTrue () ĊĊĠĠĠ ĠDev Mode Build Flags ForTesting . READY _ FEATURE Ġ= Ġfalse ĊĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE ). isFalse () ĊĊĠĠĠ ĠDev Mode Build Flags ForTesting . reset () ĊĊĠĠĠ ĠassertThat ( Dev Mode Build Flags ForTesting . READY _ FEATURE ). isTrue () ĊĠ Ġ} ĊĊĠ Ġ// ĠCan 't Ġtest Ġupdate And Reset _ release Mode , Ġsince Ġreset Ġmethod Ġdoesn 't Ġexist . Ċ } Ċ