Code example for TestMethod

0
    {	     
        FilterPredicate predicate = new FilterPredicate("");
         
        TestMethod disabled = new TestMethod("testDisabledTestMethod", MethodDisabledTestCase.class);
        TestMethod enabled = new TestMethod("testEnabledTestMethod", MethodDisabledTestCase.class);
        TestMethod none = new TestMethod("testMethod", MethodDisabledTestCase.class);
        assertFalse(predicate.apply(disabled));
        assertTrue(predicate.apply(enabled));
        assertTrue(predicate.apply(none));
    } 
	 
	public void testFilter_disabled_class() 
    {        
        FilterPredicate predicate = new FilterPredicate("");
         
        TestMethod disabled = new TestMethod("testDisabledTestMethod", ClassDisabledTestCase.class);
        TestMethod enabled = new TestMethod("testEnabledTestMethod", ClassDisabledTestCase.class);
        TestMethod none = new TestMethod("testMethod", ClassDisabledTestCase.class);
        assertFalse(predicate.apply(disabled));
        assertTrue(predicate.apply(enabled));
        assertFalse(predicate.apply(none));