CVS: junit/src/org/junit/tests ClassRequestTest.java, NONE, 1.1 AllTests.java, 1.9, 1.10

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

Modified Files:
	AllTests.java 
Added Files:
	ClassRequestTest.java 
Log Message:
Test handling of private suite() methods

--- NEW FILE: ClassRequestTest.java ---
package org.junit.tests;

import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.internal.requests.ClassRequest;

public class ClassRequestTest {
	public static class PrivateSuiteMethod {
		static junit.framework.Test suite() {
			return null;
		}
	}
	
	@Test public void noSuiteMethodIfMethodPrivate() {
		assertFalse(new ClassRequest(PrivateSuiteMethod.class).hasSuiteMethod());
	}
}

Index: AllTests.java
===================================================================
RCS file: /cvsroot/junit/junit/src/org/junit/tests/AllTests.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- AllTests.java	21 Feb 2007 17:12:37 -0000	1.9
+++ AllTests.java	21 Feb 2007 18:24:10 -0000	1.10
@@ -11,6 +11,7 @@
 
 @RunWith(Suite.class)
 @SuiteClasses({
+	ClassRequestTest.class,
 	ListenerTest.class,
 	FailedConstructionTest.class,
 	// TODO: What did CVS do with this?  CustomRunnerTest.class,


-------------------------------------------------------------------------
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.