package Ġcom . lik et hes al ad . tools . resource . locator . android . extension . observer . ob servers Ċ Ċ import Ġcom . google . common . truth . Truth Ċ import Ġcom . lik et hes al ad . tools . resource . locator . android . extension . listener . data . Resource Locator Task Container Ċ import Ġcom . lik et hes al ad . tools . resource . locator . android . extension . listener . ob servers . Action Resource Locator Task Observer Ċ import Ġcom . lik et hes al ad . tools . testing . Base Mock able Ċ import Ġio . mock k . verify Ċ import Ġorg . gradle . api . Action Ċ import Ġorg . junit . Test Ċ Ċ class ĠAction Resource Locator Task Observer Test Ġ: ĠBase Mock able () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Notify ing ĠAction `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaction Ġ= Ġmock k < Action < Resource Locator Task Container >>() ĊĠĠĠĠĠĠĠ Ġval Ġtask Container Ġ= Ġmock k < Resource Locator Task Container >() ĊĠĠĠĠĠĠĠ Ġval Ġobserver Ġ= ĠAction Resource Locator Task Observer ( action ) ĊĊĠĠĠĠĠĠĠ Ġobserver . notify ( task Container ) ĊĊĠĠĠĠĠĠĠ Ġverify Ġ{ Ġaction . execute ( task Container ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Check Ġequals `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaction 1 Ġ= Ġmock k < Action < Resource Locator Task Container >>() ĊĠĠĠĠĠĠĠ Ġval Ġaction 2 Ġ= Ġmock k < Action < Resource Locator Task Container >>() ĊĠĠĠĠĠĠĠ Ġval Ġobserver 1 Ġ= ĠAction Resource Locator Task Observer ( action 1 ) ĊĠĠĠĠĠĠĠ Ġval Ġobserver 2 Ġ= ĠAction Resource Locator Task Observer ( action 2 ) ĊĠĠĠĠĠĠĠ Ġval Ġobserver 3 Ġ= ĠAction Resource Locator Task Observer ( action 2 ) ĊĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( observer 1 ). isNot EqualTo ( observer 2 ) ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( observer 1 ). isNot EqualTo ( observer 3 ) ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( observer 2 ). isEqualTo ( observer 3 ) ĊĠĠĠ Ġ} Ċ }