Code example for TestResult

Methods: endTestrunProtectedstartTest

0
		public int countTestCases() { 
			return 2; 
		} 
		 
		public void run(TestResult result) {
			result.startTest(this);
			Protectable p= new Protectable() {
				public void protect() throws Throwable { 
					fTestCase.runBare();
					fTestCase.runBare();
				} 
			}; 
			result.runProtected(this, p);
			result.endTest(this);
		} 
	} 
	 
	private DoubleTestCase fTest;
	 
	public TestImplementorTest() { 
Experience pair programming with AI  Get Codota for Java