JUnit in JDeveloper 10.1.3.04

Hi,
I am using JDeveloper 10.1.3.04 and wanted to add and run test cases using JUnit.
Added a test class is no problem, easily located the JUnit Test Case class.
But there is no where in JDeveloper that I could find to run this JUnit test case so that the typical JUnit test case running screen will show up within JDeveloper.
Any idea? From what I gathered from the postings on this forum, the extension for JUnit is only need for version 9 and JUnit is integrated with version 10g.
What am i missing?
Note: I have downloaded and expanded JUnit jars to the ext/lib folder (as indicated for version 9 support) but it's not helping at all.
Thanks,
Mel

Please note that I have also watched as posted in one of the previous post about JUnit.
http://www.oracle.com/technology/products/jdev/101/viewlets/101/agile_development_viewlet_swf.html
The action to run junit test class is no available in my JDeveloper.
Can someone please shed some lights on this?
Thanks,
Mel

Similar Messages

  • Installing JUnit in Jdeveloper 10g 10.1.3.1

    Please help me to install JUnit in JDeveloper 10g 10.1.3.1. I have searched in the site they suggested me to click on 'check for updates' menu option. But if click on check for updates option after click next on welcome page I have selected 'search update centers' radio button and then have clicked on add button which asking to enter Name and Location. But I am not understanding what enter there. I have tried by entering OTN, http://www.oracle.com/technology/software/products/jdev/index.html. I have got any results.
    Please help awaiting for reply

    Hi,
    You don't need to add anything. If you have a functional internet connection that JDeveloper can use, then you will already be able to see Oracle's official update centers in the list (you should see "Official Oracle Extensions and Updates" as the first item).
    If you're having trouble with internet connectivity from JDeveloper, check out the Web Browser and Proxy page in Preferences and make sure any proxy settings you require to contact the internet are configured properly.
    Thanks,
    Brian

  • JUnit in jdeveloper 10g

    Can someone give me some documentation on how to create test cases and incorporate JUnit into jdeveloper?
    I have looked around but haven't had much luck. Thanks

    Use help->check for update to get the JUnit extension to JDeveloper.
    And here is a basic demo of how to use it:
    http://www.oracle.com/technology/products/jdev/viewlets/1013/agile_development_viewlet_swf.html

  • Error while executing junit in jdeveloper

    Hi,
    I am using JDeveloper 11g Release 2 (11.1.2.3.0) and Java and I downloaded Junit through Help -> Check for updates. I followed the tutorial given in Oracle's website (http://www.oracle.com/technetwork/articles/adf/part5-083468.html) for setting up my test suite. Whe I execute the suite, I get a NoClassDefFoundError. the following is the complete stack trace:
    java.lang.NoClassDefFoundError: Could not initialize class gsp.model.services.applicationModule.EventDashboardsAMFixture
    gsp.model.services.view.GSPClassArchitectureView1VO.GSPClassArchitectureView1VOTest.<init>(GSPClassArchitectureView1VOTest.java:11)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:171)
    org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:216)
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:213)
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    org.junit.runners.Suite.runChild(Suite.java:115)
    org.junit.runners.Suite.runChild(Suite.java:23)
    java.lang.NoClassDefFoundError: Could not initialize class gsp.model.services.applicationModule.EventDashboardsAMFixture
    gsp.model.services.view.PublicEventsAugView1VO.PublicEventsAugView1VOTest.<init>(PublicEventsAugView1VOTest.java:11)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:171)
    org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:216)
    org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:213)
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    org.junit.runners.Suite.runChild(Suite.java:115)
    org.junit.runners.Suite.runChild(Suite.java:23)
    So I tried to download the sample OTNApp that was used in the tutorial and available through Oracle's site and I ended up with the same error. I am able to run the test cases I exported through Selenium (to be used with Junit 4) for the same application and I get expected results. Can you please help me out with this?
    Also I've noticed that JDeveloper does not always create the test cases for the individual view objects and creates only the EventDashboardsAMFixture and the AllEventDashboardsAMTests classes. When this happens, I just delete the project and I redo the whole process again and then the individual test cases get generated. The JUnit library is added to the project and it is deployed by default. I ave not set up security or anything else.
    Thanks,
    Sunil

    Hi John,
    I did according the link you posted but it did not helped... Please suggest some other option..
    I tried to test the integrated application server by doing following
    right click project->Application Properties->Run->Application Server Properties->Test->Test Connection...It yield following log, even when my integrated web server was running.
    Testing JSR-160 Runtime                ... failed.
    Cannot establish connection.
    Testing JSR-160 DomainRuntime          ... skipped.
    Testing JSR-88                         ... skipped.
    Testing JSR-88-LOCAL                   ... skipped.
    Testing JNDI                           ... skipped.
    Testing JSR-160 Edit                   ... skipped.
    Testing HTTP                           ... failed.
    Unable to open conection: Connection refused: connect
    Testing Server MBeans Model            ... skipped.
    *0 of 8 tests successful*
    I am trying to run the project in Integrated Web Server it self. But its not running. It gives me error as i posted in previous post..
    -Thanks

  • JUnit for JDeveloper 11G ?

    Hi,
    For some reason, I couldn't find the JUnit Integration available for JDeveloper 11G, I check for update, and just couldn't find it in the list.
    I tried to check out the update items in the first one called "Official Oracle extension and update" but did not see any items available.....
    I tried (reinstall JDeveloper 10G) the update is fine (I can see the JUnit Integration).
    Please help.
    Thanks very much.

    Please post JDeveloper 11 questions on the JDev 11 forum here:
    JDeveloper and OC4J 11g Technology Preview
    If you are using JDeveloper 11 TP3 Build 4796 you should see the JUnit extension in the check for update if you don't then check your proxy settings under tools->preferences.
    If it still doesn't work you can download the file directly from here:
    http://www.oracle.com/technology/products/jdev/101/update/center.xml#oracle.jdeveloper.junit
    and then use the check for update to install from local copy.

  • How to use JUnit in JDeveloper

    I want to know how to run the test cases in JDeveloper using JUnit

    copy the post to the jdeveloper forum

  • Jdeveloper 10g + JUnit

    Hi everybody my problem is:
    I'm using Jdeveloper 10g, JSF, ADF Faces.
    I'm trying to do a test case using JUnit with JDeveloper but the method corresponding to test case requiere an objects
    javax.faces.context.ExternalContext;
    javax.faces.context.FacesContext;
    something like this:
    ExternalContext objExternalContext = FacesContext.getCurrentInstance().getExternalContext();
    so, like the test case isn't executing in a web context this object(objExternalContext) is null and the test case present the famous exception NullPointerException and can't finish the test case.
    Any suggestion to create and run a test case in a web context will be a great help.
    Thanks in advantage.
    Mauricio.

    Maybe httpunit can help here:
    http://www.oracle.com/technology/products/jdev/howtos/10g/httpunit/index.html

  • JDev 10.1.2 : JUnit extension

    hi
    While trying to setup the ADF Toy Store demo (*1) in JDeveloper 10.1.2 I downloaded the JUnit extension (*2).
    There is an extension available for JDeveloper 9.0.5.2 and one for JDeveloper 9.0.5.1, there is none for JDeveloper 10.1.2 so I chose the 9.0.5.2 version.
    Each time I start JDeveloper I get these messages:
    D:\jdev1012\jdev\lib\ext\bc4j_junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 22, Column 14>: XML-24521: (Error) Element not completed: 'extensions'
    D:\jdev1012\jdev\lib\ext\junit_addin.jar!\meta-inf\jdev-ext.xml
    Error: <Line 3, Column 21>: XML-24534: (Error) Element 'feature' not expected.
    Error: <Line 66, Column 14>: XML-24521: (Error) Element not completed: 'extensions'Although the RunAllTests class of the ADF Toy Store demo seems to run fine, I wonder if I am going to get into trouble if I use JUnit in JDeveloper 10.1.2 like this.
    Maybe I should wait for a JUnit extension packaged specifically for JDeveloper 10.1.2 ?
    thanks
    Jan Vervecken
    (*1) http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore.html
    (*2) http://www.oracle.com/technology/software/products/jdev/htdocs/junit10g/junitsoft.html

    thanks Shay
    No more errors, it works.
    Jan
    related thread:
    - "JDev 10.1.2 : Check for Updates"
    JDev 10.1.2 : Check for Updates

  • JUnit support extensions not updated ?

    http://www.oracle.com/technology/software/products/jdev/htdocs/soft11.html
    Make sure to use the Help->check-for-update menu in JDeveloper to download extensions to JDeveloper including JUnit support, version management tools integration and many others .
    Since I can't use check for updates : ER : Announcement: Update to JDeveloper Documentation
    I go to : http://www.oracle.com/technology/products/jdev/101/update/center.xml#oracle.jdeveloper.junit
    oracle.jdeveloper (min= 10.1.3.36.73 , max= 10.1.3.37.00 )
    So I get an error message when I try to update using this .zip since it's for an older version
    I'm trying to use
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.JUnitCore;
    I'm not sure that the extensions are what I need but still ..
    Even if I could find the jar files elsewhere I guess those zip files (extensions) should be updated ?
    Thanks,
    JP

    Make sure you are using the extension bundle for your specific JDeveloper Version.
    For example for the latest JDeveloper 11g 11.1.1.2 it would be:
    http://download.oracle.com/otn/java/jdeveloper/1112/extensions/junit_bundle.zip

  • Use JUnit test EJB bean class

    I'm using Junit test EJB 3.0 session bean class by initialize :
    SessionBeanClass sbc = new SessionBeanClass()
    so the object I got is just a normal object, it's not remote or local interface.
    however, when I start JUnit within Jdeveloper, looks like the embed OC4J start.
    this behivor is strange to me, I thought I 'm not calling EJB in this case,why the OC4J start?
    this is different than running JUnit outside of JDeveloper?

    Yes, this is the way JDev works -- JDeveloper notices that this class happens to be a Session bean, and when you 'run' it, it assumes you want to 'run' it in the embedded OC4J server -- though clearly it is not what you want in this case.
    One way you can override this behavior is by creating a wrapper (POJO) class to be your JUnit test class, and have that class instantiate your Session bean.

  • JDeveloper (11.1.2.1.0): JUnit Integration update can not be Installed

    Oracle JDeveloper 11g Release 2(11.1.2.1.0)
    Studio Edition Version 11.1.2.1.0
    Version
    Java(TM) Platform          1.6.0_24
    Oracle IDE               11.1.2.1.38.60.81
    Team Productivity Center     11.1.2.1.38.60.81
    Versioning Support          11.1.2.1.38.60.81
    OS
    Microsoft Windows xp(SP3)
    I have done following 2 approaches but failed to update the extension
    *1st approach:*
    I want to update Install BC4J JUnit Integration for that I have followed the following steps
    1.     Help(Menu) --> Check for Updates
    2.     Check the Official Oracle Extensions and Updates checkbox
    3.     Press Next
    When I press Next button on step 2 of 5 I can’t see BC4J JUnit Integration. Available update box remain empty I can't select the required component.
    *2nd approach:*
    1.     Help Menu --> Check for Updates
    2.     Click on Install from local File radio button and browse the file that I have downloaded from http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/131167.xml#oracle.BC4J.junit (11.1.2.1.38.60.81)
    3.     Press Next
    When I press Next button on step 2 of 5 I got a dialog box saying “Unable to Install Update” with following details
    Extension RequiredVersion Installed
    oracle.jdeveloper.junit--min=11.1.2.0.38.60.17, max=11.1.2.0.38.60.17-----Not installed
    oracle.jdeveloper---------min=11.1.2.0.38.60.17, max=11.1.2.0.38.60.17-----11.1.2.1.38.60.81
    Please help me how can I Install this update

    Hi,
    I have followed the steps that are mentioned in the link. Now "unable to install update" dialogue box has not appeared and finished the installation successfully. In the New Gallery, Selected the All Features tab, but do not find Unit Tests
    Regards,
    Zafar Iqbal

  • Still JUnit extension download to JDeveloper 9.0.3 doesn't work

    Still 404 message trying to download the Junit extension for JDeveloper 9.0.3

    Thanks. When I got to the link in that message, the downgraded version of Skype
    is not available. WHen I go to Google Play to get the version from Dec 9, 2014,
    "Already Installed" is displayed, even though I don't have that version.
    It won't give me the option to upgrade to the release from Dec 9, 2014

  • Jdeveloper 11g using Junit38ClassRunner from junit-4.5.jar

    For some reason Jdeveloper is using the Junit38ClassRunner when I run Junit tests - so annotations like @Ignore and @Test are being ignored. Does anyone have any idea on how to change it to use the Junit4ClassRunner (which you'd kind of expect to be the default)?
    Any assistance much appreciated.

    The version of Jdeveloper is: J2EE Edition Version 11.1.2.0.0.
    Yeah - I've checked which jar the class runner is being loaded from - it's from junit-4.5.jar. If I ctrl- for the class name then when it displays the Junit38ClassRunner class, Jdeveloper displays where it's getting the source from and it's from junit-4.5-src.jar. I've also searched for the class in all the jars available to Jdeveloper and this jar is the only one in which it occurs. Same jar has Junit4ClassRunner which is obviously the one it should be using. I can't find any obvious (or less than obvious) way to configure how the junit classrunner is invoked.

  • Could not download JUnit extension to JDeveloper 9.0.3

    I tried to download the JUnit extension to JDeveloper 9.0.3 from http://otn.oracle.com/software/products/jdev/htdocs/junitsoft.html
    and got the 'Sorry this page does not exist' page
    http://otn.oracle.com/errors/404.htm

    This is a JHeadStart issue, please post to the JHeadStart forum for assistance.
    Forums Home >> Oracle Technology Network (OTN) >> Products >> Developer Suite >> JHeadStart
    Kind Regards.

  • Broken link to JUnit addin to JDeveloper download page

    I tried to download the JUnit extension to JDeveloper 9.0.3 from http://otn.oracle.com/software/products/jdev/htdocs/junitsoft.html and got the 'Sorry this page does not exist' page
    http://otn.oracle.com/errors/404.htm

    Make sure you have cookies enabled.  If it continues to fail try using a different browser.
    An option for direct downloads is provided below...
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS3 and CS4: http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

Maybe you are looking for