All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jnario.junit3.DelegatingTestCase Maven / Gradle / Ivy

The newest version!
package org.jnario.junit3;

import junit.framework.TestCase;
import junit.framework.TestResult;

public class DelegatingTestCase extends TestCase{

	private TestCase delegate;
	
	public DelegatingTestCase(String name, TestCase delegate) {
		super(name);
		this.delegate = delegate;
	}

	public int countTestCases() {
		return delegate.countTestCases();
	}

	public TestResult run() {
		return delegate.run();
	}
	
	public void run(TestResult result) {
		delegate.run(new DelegatingTestResult(result, this));
	}

	public void runBare() throws Throwable {
		delegate.runBare();
	}

	@Override
	public String toString() {
	    return delegate.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy