Code example for TestMethod

0
	private final static TestMethod TM_androidLarge = new TestMethod("testAndroidLargeTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_large = new TestMethod("testLargeTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_long = new TestMethod("testLongTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_perf = new TestMethod("testPerformanceTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_stability = new TestMethod("testStabilityTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_manual = new TestMethod("testManualTestMethod", AliasExampleTestCase.class);
	 
	private final static TestMethod TM_ui= new TestMethod("testUiTestMethod", AliasExampleTestCase.class);
	private final static TestMethod TM_nonui = new TestMethod("testNonuiTestMethod", AliasExampleTestCase.class);
	 
	public void testFilter_aliases_small() 
	{ 
	    String [] smallFilters = new String [] { "+s", "+S", "+small", "+short" };
	    for(String filter : smallFilters) {	    
	        Log.i(TAG, "Testing filter: " + filter); //NOPMD
    		FilterPredicate predicate = new FilterPredicate(filter);
    		assertTrue(predicate.apply(TM_androidSmall));
    		assertTrue(predicate.apply(TM_small));
    		assertTrue(predicate.apply(TM_short));
    		assertFalse(predicate.apply(TM_androidMedium));
    		assertFalse(predicate.apply(TM_medium));