We help IT Professionals succeed at work.
Get Started

Extending JUnit? / Linking JUnit and Jira?

968 Views
Last Modified: 2016-12-08
Hi,

I am currently trying to extend JUnit. What I would like to do, is to create an Annotation that sets a Jira issue to "resolved" as soon as the test method succeeds. I was thinking of something like:

@JiraTest(issueId="XYZ-223")
public
void TestMethodForIssueXYZ223()
{
      // THE TEST CODE TESTING FOR ISSUE XYZ-223
}

Is there any way of extending JUnit in this way, or would I have to hack it in there somehow?
Is there another way, I haven't thought of, for implementing this type of functionality? ( I Hope so )
Is there allready a tool that provides this type of functionality? ( I doubt it, since I was Googling for such a tool for several hours )

Chris
Comment
Watch Question
This problem has been solved!
Unlock 2 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE