Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » How can I find Test Suite in my project
How can I find Test Suite in my project [message #599057] Thu, 21 August 2008 09:31
Nick is currently offline NickFriend
Messages: 34
Registered: July 2009
Member
I can use findType to find all Test Case in project which you chooose.

------------------------------------------------------------ -----
IType testCase = project.findType("junit.framework.TestCase");
if (testCase == null)
return new IType[0];
ITypeHierarchy hierarchy = testCase.newTypeHierarchy(project, pm);
IType [] tests = hierarchy.getAllSubtypes(testCase);
------------------------------------------------------------ --------

But now I want to find all Test Suite in project.
I try to use findType("junit.framework.TestSuite")
it fail to find.......can anyone give me a hand??
Previous Topic:How can I find Test Suite in my project
Next Topic:An error occurred while automatically activating bundle org.eclipse.ajdt.ui
Goto Forum:
  


Current Time: Fri Apr 26 14:25:53 GMT 2024

Powered by FUDForum. Page generated in 0.02971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top