package Ġcom . bot t ler ocket stud ios . br architecture . data . crash reporting Ċ Ċ import Ġcom . bot t ler ocket stud ios . br architecture . data . test . Base Test Ċ import Ġcom . bot t ler ocket stud ios . br architecture . data . test . mocks . Mock Build Config Providers Ċ import Ġorg . junit . Test Ċ Ċ class ĠForce Crash Logic Impl Test Ġ: ĠBaseTest () Ġ{ ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠTest . None :: class Ġ/* Ġno Ġexception Ġexpected Ġ*/) ĊĠĠĠ Ġfun Ġforce Crash On Match _ non Matching Input Release Build _ does Not Throw Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsut Ġ= ĠForce Crash Logic Impl ( Mock Build Config Providers . PRO D _ RELEASE ) ĊĠĠĠĠĠĠĠ Ġsut . force Crash On Match (" 4 9 9 2 4 0 2 9 9 8 3 9 9 9 4 2 0 4 ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠRuntimeException :: class ) ĊĠĠĠ Ġfun Ġforce Crash On Match _ matching Input Dev Build _ throws Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsut Ġ= ĠForce Crash Logic Impl ( Mock Build Config Providers . DEV ) ĊĠĠĠĠĠĠĠ Ġsut . force Crash On Match (" crash this app !") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠRuntimeException :: class ) ĊĠĠĠ Ġfun Ġforce Crash On Match _ matching Input Release Build _ throws Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsut Ġ= ĠForce Crash Logic Impl ( Mock Build Config Providers . PRO D _ RELEASE ) ĊĠĠĠĠĠĠĠ Ġsut . force Crash On Match (" crash this app !") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠRuntimeException :: class ) ĊĠĠĠ Ġfun Ġforce Crash Now _ dev Build _ throws Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsut Ġ= ĠForce Crash Logic Impl ( Mock Build Config Providers . DEV ) ĊĠĠĠĠĠĠĠ Ġsut . force Crash Now () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠTest . None :: class Ġ/* Ġno Ġexception Ġexpected Ġ*/) ĊĠĠĠ Ġfun Ġforce Crash Now _ release Build _ does Not Throw Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsut Ġ= ĠForce Crash Logic Impl ( Mock Build Config Providers . PRO D _ RELEASE ) ĊĠĠĠĠĠĠĠ Ġsut . force Crash Now () ĊĠĠĠ Ġ} Ċ } Ċ