What to use instead of hudson.tasks.junit.TestObject in a class extending hudson.tasks.junit.TestResultAction.Data?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What to use instead of hudson.tasks.junit.TestObject in a class extending hudson.tasks.junit.TestResultAction.Data?

Mirko Friedenhagen-2
Hello,

the junit-attachments plugin is extending hudson.tasks.junit.TestResultAction.Data, now the abstract method getTestAction uses the deprecated class hudson.tasks.junit.TestObject.
What is the new, modern way to extend TestResultAction?

Regards
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: What to use instead of hudson.tasks.junit.TestObject in a class extending hudson.tasks.junit.TestResultAction.Data?

Benjamin Shine-2

hudson.tasks.test.TestObject is the suggested replacement for  
hudson.tasks.junit.TestObject.
The idea there is that general test infrastructure should not be in a  
junit-specific package, and it shouldn't have junit-specific methods.

In a plugin I haven't published yet (working on it!), I've created a  
subclass of AbstractTestResultAction to associate a new subclass of  
TestResults with builds:

public class DeliciousTestResultAction extends  
AbstractTestResultAction< DeliciousTestResultAction > implements  
StaplerProxy { ... }

Does this help?
-ben

On Feb 20, 2010, at 12:20 PM, Mirko Friedenhagen wrote:

> Hello,
>
> the junit-attachments plugin is extending  
> hudson.tasks.junit.TestResultAction.Data, now the abstract method  
> getTestAction uses the deprecated class hudson.tasks.junit.TestObject.
> What is the new, modern way to extend TestResultAction?
>
> Regards
> Mirko
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]