Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7810147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:40:06+00:00 2026-06-02T03:40:06+00:00

JUnit does the same, and I just can’t figure out how… I guess thats

  • 0

JUnit does the same, and I just can’t figure out how…

Eclipse junit quick fix

I guess thats because of this entry in the Properties > Java Build Path > Libraries > Add Library wizard:

Eclipse junit add library

How can I do the same and include my library in this wizard from my plugin, i.e. make it available to a user in workspace?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:40:07+00:00Added an answer on June 2, 2026 at 3:40 am

    OK, there are three different extension points you need to look at. The easiest way is to look at the JUnit plugin itself (there are four)

    org.eclipse.jdt.junit: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.git
    org.eclipse.jdt.junit.core: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.core.git
    org.eclipse.jdt.junit.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit.runtime.git
    org.eclipse.jdt.junit4.runtime: git://dev.eclipse.org/org.eclipse.jdt/org.eclipse.jdt.junit4.runtime.git
    

    So, you can investigate the JUnit plugins, but these are the extension points you’ll need:

    For the Add Library, look at the extension point org.eclipse.jdt.ui.classpathContainerPage. From the JUnit plugin.xml:

    <extension point="org.eclipse.jdt.ui.classpathContainerPage">
      <classpathContainerPage
            name="%JUnitContainerName"
            class="org.eclipse.jdt.internal.junit.buildpath.JUnitContainerWizardPage"
            id="org.eclipse.jdt.junit.JUNIT_CONTAINER">
      </classpathContainerPage>
    </extension>
    

    So this is implemented as JUnitContainerWizardPage. This extends IClasspathContainerPage and IClasspathContainerPageExtension.

    For the quickfix and classpathfix see the extension points org.eclipse.jdt.ui.quickFixProcessors and org.eclipse.jdt.ui.classpathFixProcessors. From the JUnit plugin.xml again:

    <extension point="org.eclipse.jdt.ui.quickFixProcessors">
      <quickFixProcessor
            name="%junitQuickFixProcessor"
            class="org.eclipse.jdt.internal.junit.ui.JUnitQuickFixProcessor"
            id="org.eclipse.jdt.junit.JUnitQuickFixProcessor">
      </quickFixProcessor>
    </extension>
    
    <extension point="org.eclipse.jdt.ui.classpathFixProcessors">
      <classpathFixProcessor
            name="%junitClasspathFixProcessor"
            class="org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor"
            id="org.eclipse.jdt.junit.JUnitClasspathFixProcessor">
            <overrides id="org.eclipse.jdt.ui.text.correction.DefaultClasspathFixProcessor">
            </overrides>
      </classpathFixProcessor>
    </extension>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JUnit test that fails because the milliseconds are different. In this
I have an extremely odd problem in my JUnit tests that I just can't
I just started out writing my first unit tests with JUnit and I ran
In eclipse preferences Windows > Preferences > Java > Junit What effect does the
I'm trying to test my Session Beans with JUnit, but I can't. I've tried
when i run multiple JUnit tests in a row, does JUnit create a new
I just discovered when creating some CRUD tests that you can't set data in
I am the guy who writes java controllers (mvc), who does tests with junit,
Does anybody know why JUnit 4 provides assertEquals(foo,bar) but not assertNotEqual(foo,bar) methods? It provides
In JUnit you can use @Ignore before methods to tell the test runner to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.