CVS: junit/src/org/junit/runners Replaces.java, NONE, 1.1 RunMethodWith.java, NONE, 1.1 MethodRunner.java, NONE, 1.1

David Saff <[email protected]>
Newsgroups gmane.comp.java.junit.devel
Message-ID <[email protected]>
Update of /cvsroot/junit/junit/src/org/junit/runners
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv23274/src/org/junit/runners

Added Files:
	Replaces.java RunMethodWith.java MethodRunner.java 
Log Message:
Another potential enhancement.  RunMethodWith allows individual test methods to be run with different runners.

--- NEW FILE: Replaces.java ---
package org.junit.runners;

import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface Replaces {
	Class<? extends Annotation> value();
}

--- NEW FILE: RunMethodWith.java ---
package org.junit.runners;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
public @interface RunMethodWith {
	Class<? extends MethodRunner> value();
}

--- NEW FILE: MethodRunner.java ---
package org.junit.runners;

import org.junit.internal.runners.TestMethod;
import org.junit.runner.notification.RunNotifier;

public interface MethodRunner {
	public abstract void run(TestMethod method, RunNotifier notifier);
}


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.