package Ġio . match more . sdk . rx Ċ Ċ import Ġio . match more . sdk . Match more Ċ import Ġio . match more . sdk . api . models . Subscription Ċ import Ġjunit . framework . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ class ĠRx Subscriptions Test Ġ: ĠRx Base Test () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest () Ġ{ ĊĠĠĠĠĠĠĠ Ġinit And Start Using Main Device () ĊĊĠĠĠĠĠĠĠ Ġval Ġmatch More Sdk Ġ= ĠMatch more . instance ĊĠĠĠĠĠĠĠ Ġval Ġsubscription Ġ= ĠSubscription (" Test ĠTopic ", Ġ 2 0 . 0 , Ġ 1 0 0 0 0 0 . 0 ) ĊĠĠĠĠĠĠĠ Ġmatch More Sdk . rx Create Subscription ( subscription ). test And Wait () ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġmatch More Sdk . subscriptions . findAll (). size ) ĊĊĠĠĠĠĠĠĠ Ġmatch More Sdk . rx Create Subscription ( subscription ). test And Wait () ĊĠĠĠĠĠĠĠ ĠassertEquals ( 2 , Ġmatch More Sdk . subscriptions . findAll (). size ) ĊĊĠĠĠĠĠĠĠ Ġmatch More Sdk . subscriptions . rx Delete ( match More Sdk . subscriptions . findAll ()[ 0 ]). test And Wait () ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 , Ġmatch More Sdk . subscriptions . findAll (). size ) ĊĊĠĠĠĠĠĠĠ Ġmatch More Sdk . subscriptions . rx Delete All (). test And Wait () ĊĠĠĠĠĠĠĠ ĠassertEquals ( 0 , Ġmatch More Sdk . subscriptions . findAll (). size ) ĊĠĠĠ Ġ} Ċ }