package Ġcom . b anno . g ord on Ċ Ċ import Ġorg . junit . Test Ċ Ċ class ĠTest Filtering Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Match On ClassName () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" Account Chain Fragment Test ")) Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Match On MethodName () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" methodName ")) Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Match On Class Method () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" Account Chain Fragment Test . methodName ")) Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Match On PackageName () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" com . b anno . g rip . accounts ")) Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Match If Any Of The Filters Match () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" com . b anno . g rip . accounts ", Ġ" Other Test ")) Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Not Match If ClassName DoesNot Match Fully () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" Account Chain Fragment ")) Ġshould Equal Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Not Match Partial Package () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" b anno . g rip ")) Ġshould Equal Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Not Match Without Period For Class Method () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" Account Chain Fragment Test methodName ")) Ġshould Equal Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Not Match End ings Of ClassNames () Ġ{ ĊĠĠĠĠĠĠĠ ĠTestCase (" com . b anno . g rip . accounts . Account Chain Fragment Test ", Ġ" methodName ", Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. matches Filter ( listOf (" Fragment Test ")) Ġshould Equal Ġfalse ĊĠĠĠ Ġ} Ċ }