Re: Creating a seperate project for Junit Tests.

Hello,
I was wondering if its possible to have all the test cases form different projects in a single project(which would only contain all Junit test cases) and then fire these tests from that single project.
So the idea is to have multiple projects but all the Junit tests would be compiled in a single project. Is there any way i can accomplish this.
Thanks

qwerty.123 wrote:
Yes that is correct. But in order to do this i need my test class to be in the same package as my class which is tested. That's why one should use the same package structure in your test source directory as you do in your regular source directory.
For example:
myproject/src/main/java/some/package/MyClass.java
myproject/src/test/java/some/package/MyClassTest.java
Where myproject/src/main/java and myproject/src/test/java/ are both source folders in your project's build path.
Is there any way i can run a test for a class which is in a different project/package altogether and my test class lying in a seperate Project/package.Sure; you just won't have access to "package-private" classes and members.
~

Similar Messages

  • Unable to resolve error while creating a maintenance project for SMD

    Hi,
    I am getting an error when I try to create a maintenance project for SMD 331- SMD 341 - SMD 351 systems.
    ( SMD 331- Development, SMD 341- Test, SMD 351- Production ) SMD is 4.0 upgraded system.
    Detailed description of the problem:
    In SOLAR_PROJECT_ADMIN, I select a newly created project
    GS_SMD3513 and in tab 'System Landscape', go to tab 'Change Requests', here when I do consistency check
    I get following errors
    1. 'No consolidation system found for SMD-331 (project  GS_SMD3513)'
    2. Message from function module /TMWFLOW/CHECK_PRJ_CONS: No export system for SMD-351
    3. Error reading information for number range object /TMWFLOW/D
    The transport route between SMD331- SMD341- SMD351 is available as any transport request created in SMD 331 can be successfully imported to SMD 341 and SMD 351.
    I need help to resolve these errors.
    Edited by: Dipti Sawarkar on Jan 7, 2008 6:41 AM

    Hi Patmol,
    Have you tried to go to the previous or next timesheet and then navigate with the "previous period" or "next period" to the timesheet in question.
    Also have you tried to open it using a delegation session?
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • I have an I phone and my own account  and just purchased an ITouch for my daughter - how do i create a seperate account for her on my computer?

    I have an I phone and my own  I tunes account  and just purchased an ITouch for my daughter - how do i create a seperate account for her on my computer? I want to make sure that my apps do not sync on her I touch.

    Go into Setttings -> Messages and make sure your Caller ID setting for Messages is set properly.

  • Why Dev Guide says "create a separate project for each ADF task flow ..."

    Hi,
    We have a BPM process application which is having a few human tasks. The form for each of the human tasks is similar. We’d like to be able to share some page fragments or code between them and create single web application to handle all the human tasks for this BPM process application. Then I found the following in the Oracle document “Developer’s Guide for Oracle SOA Suite 11g Release 1 (11.1.1.4.0)”:
    “If the SOA composite contains multiple human tasks, create a separate project for each ADF task flow associated with each human task.”
    I wonder if we have to do that and if so, what is the reason.
    Do you have any clue? Please help.
    Thanks a lot,
    Helen

    Hi Helen
    1. I do not know the reason why they mentioned like separate project for each human task. NO, this is not required and we can have just one UI Project like MyTaskForms and have all the JSPs in this same project for each Human Task.
    2. On our side, we have like 10 Human Tasks, all using the same Payload. So we have 10 .task file. For the very first .task file, we used Auto Generate Project and gave project name like OurAppTaskForms. The reason we did this is, so that it adds all the required dependent libraries, tag libs etc properly. For all remaining 9 .tasks file, we did NOT use auto generate. Instead we used standard New -> JSF From Human Task and select one task at a time and follow the steps. These steps are covered in the online documentation. At the end in our BPM App, we have just one UI Project with all the 10 screens.
    3. ALSO, all the 10 screens have some common data. This we put in a reusable JSF Fragment page. And associated a custom Managed Bean for this to set and get values from this fragment and also some Actions for some buttons in the JSF. Then we included this JSF in each taskform jsf file, uisng the include tag. We added this include tag, somewhere in the top. So all screens share common jsf fragment page.
    4. We can refine the above stuff further. As per above, we still have 10 JSF screens for each one of the 10 .tasks. Ofcourse all these 10 jsf have same common jsf fragment. BUT instead of 10 individual jsf screens, we can have only ONE Jsf screen also. Refer online docs for the details. The challenging part is, since we have only one jsf, there may be some bussiness stuff, validatoin stuff to take care of in custom ValidationCallback Handler classes. Say for Task1, we had to show some buttons, but NOT for Task2. So we had to handle this logic. Also in validation call back, we can always get each Tasks, title also. So we can workaround this issue also. We are in the process of doing this right now. But first 3, we already did and they are working fine.
    My personal suggestion is first go with single jsf fragment and include in all tasks jsp files. Any changes to common elements need to make only in one place i.e fragment page.
    Thanks
    Ravi Jegga

  • Portal Run time error when created a seperate role for Transport package.

    Hi Experts,
    I have created a seperate role for Transport Package(import/export iviews).
    Normally we have transport package functionality in system admin.
    Below steps i followed for creating the new role(trans admin)
    1.Copied SAP provided system admin role to a seperate folder.
    2.Deleted reamining portal objects(like UWL, portal display etc ..) except transport packege workset.
    3.Renamed the role to trans admin.
    I have assigned that role to my self, it is working fine to me when i clcik on export and import.I have super admin role.
    when i assign this role to some portal users, Export is not working.
    when user clicks on Export role they are getting below error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Access denied (Object(s): com.sap.portal.system/security/sap.com/NetWeaver.Portal/medium_safety/com.sap.portal.appdesigner.contentcatalog/components/Framework).
    Exception id: 12:10_31/08/09_0031_21763550
    See the details for the exception ID in the log file
    By looking into exception iD also, same error access denied it is showing.
    Please Advice.
    Thanks
    Sony.

    Hi Raghu,
    Thanks for the reply.
    I have given full permissions to all users to this trans admin role before itself.
    Thanks in advance.
    Sony.
    Edited by: ambica sony on Aug 31, 2009 1:53 PM

  • How do I create a new Folder for each test report based on Serial number?

    I want to be able to create a new folder for each test report based on serial number. Each time a UUT is tested, I want the report to go to the appropriate folder. What is the best way to do this?
    Thanks

    Hello Tman,
    This is a slightly tricky question. The reason being, the report options like the report path etc, are set before you see the serial number prompt when you run your UUT. There might be other ways of getting around this, but a quick solution would be modifying the process model.
    I modified the PreUUT callback to set the report options. I passed the reportOptions as a parameter to this sequence. In the PreUUT sequence, I set the following fields:
    Parameters.ReportOptions.GeneratePath=False
    Parameters.ReportOptions.ReportFilePath= "c:\\"+ Locals.SerialNumber +"\\report.xml"
    I hope this would give you an idea.
    SijinK

  • Is it necessary to create a seperate window for a pop up view

    Hi Experts,
    Is it necessary to create a seperate window for a pop up view? I don't want to create a seperate window for a pop up view. As I don't want to make much changes in the present program logic.
    My only problem is following code. This code finds out the window. So I have to create a seperate window for a seperate pop up view.
    I am wondering if there is any API or the same API which can allow me to call the view instead of window
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Popup");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.show();
    Please help.
    Regards,
    Gary

    Hi
    On OK button's action  you can Destroy the window and navigate to Page1.
    Go through this link for more details and a step by step guide for creation of pop ups  and dialog boxes
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1?quicklink=index&overridelayout=true
    Hope it works
    Regards
    Suresh

  • Using TimesTen for JUnit tests

    I want to switch from using HSQL (in memory) to TimesTen in my Unit tests. Is there a simple setup for TimesTen when used for this purpose?
    For example, for HSQL, all I have to do is include the hsql.jar as a dependency in my project, then include the following line in my JUnit test:
    DataSource dataSource = new DriverManagerDataSource("org.hsqldb.jdbcDriver",
    "jdbc:hsqldb:target/test-classes/com/project/path/test/schema", user, pw);
    schema is a reference to the schema.script that includes the DDL for all the tables that I need to create in memory.
    Can anyone help me out? Thanks.

    From what little I know about it TimesTen is not an in-memory database, it is a caching architecture. Therefore I would expect the set-up to be different - the TimesTen stuff should be set up once ever[], like the schema of a regular database, rather than everytime you run your unit tests.
    I think you need to sit down with the TimesTen documentation and figure out how you are going to use the product. If you are just looking for a quick DB to use in unit tests I think you may well want to keep using HSQL.
    Cheers, APC

  • Creating Iweb seperate domains for multiple sites DIDNT WORK

    Hi! Any help would be much appreicaited!
    I am creating mutiple websites in iWeb 09'. All 3 of my websites have been stored under 1 domain file on my mac. I have read numerous discussion boards stating the steps of how to seperate each of the created sites from the one domain file, into mutiple domain files. I followed the steps on this website :
    http://lmsdiweb.wikispaces.com/Saving+Locally
    I moved the Domain folder out of its original location into a new folder on my harddrive entitled "Sites". Then i made sub folders within that folder and duplicated the domain 3 times and placed each copy in those folders. then i double clicked on the domain for my 1st site, opened iWeb, and then deleted the other sites i did not want on this new "domain" file i created and hit saved. This is exactly what the website said to do to create the seperate domain files for each seperate site. It then said repeat for each site, deleting the sites that are not needed on that domain.
    All of that being said, it didnt seem to work when i tried to open the 2nd copy of the domain. When iWeb opened after double clicking the 2nd domain copy, it did not open and show me all 3 sites as it should have, it opened to show me the one site that i just "saved" after deleting the other sites for the previous domain i was trying to create.
    I'm afraid i posisbly lost my other 2 sites. I backed up my first initial "domain" file which had all 3 sites within it on my external hard drive, and when i double clicked on that to make sure my sites weren't lost forever, same thing happened and only my lastest site that i saved on the 1st attempt to seperate domain files is visable on my iWeb.
    Did i loose everything i created in my other 2 sites? How do i get them back? What did i do wrong? Any help is much appreiciated as i have a feeling i might have made a serious mistake and need some help figuring this all out!
    Thank you!
    Also, I published all of my sites "to a folder" on my hard drive before doing this as well. Is there any way to take the published folder contents and put my site back on iweb for editing again?

    With three sites in a domain file here's how I would do it.  Create 3 copies of your domain file and name them for the three website, i.e "website1.sites, website 2.sites, etc.
    With the application discussed in the text below open website1.sites and delete website 2 and website 3 from it and save.  Open website 2.sites and delete 1 and 3.  Do the same for website 3.sites. 
    Then use the application mentioned below to open iWeb and select the website you want. 
    In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    NOTE:  iWeb 2 is not compatible with Mt. Lion and has trouble saving to the hard drive.  It's suggested you obtain iWeb 3
    OT

  • Seperate Project for EF

    I am following a example on creating a ASP web app using the entity framework, but I have a database already created I would like to access.
    I would like to use the entity framework classes in a couple of projects.  Is it considered a good practice to put the entity framework. code in a separate project?
    Do you put all the controller code in the entity framework project or in the web portion of the project?
    When creating the project for the entity framework would I still use a web project template or would I use a DLL template?
    Thanks in advance.

    Hello Kazinski
    >>Is it considered a good practice to put the entity framework. code in a separate project?
    Personally, I would like do that puts data access code to a separate project which would make us easy to manage it.
    >>Do you put all the controller code in the entity framework project or in the web portion of the project?
    I do not quite understand what you mean about the controller code, if you mean business code, I would put them into a separate layer which we could call it business layer. It is not recommended to put business code and data access part code together.
    >>When creating the project for the entity framework would I still use a web project template or would I use a DLL template?
    If you are creating a MVC project, this project has already helped us constructed a separated layer. If it is just a common web application, you could create a class library project for your Entity Framework, and note do not forget to copy the connection
    string in your class library project to your web application or it would throw an exception.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to create a new project for MUDE

    Hi All,
    I'm trying to create a project for MUDE but the new project option is not enabled is there something else I need to do before creating a project?
    Please advice.

    check this Setting Up and Using the Multiuser Development Environment - 11g Release 1 (11.1.1)

  • Creating a seperate inbox for SMS and MMS text msgs

    I followed the instructions on creating the seperate inboxes and it doesnt appear to have worked since my text messages and emails appear in the same basket and when I create the seperate option, a seperate icon does not appear on my blackberry. Has any one experienced this or knows where this seperate inbox is?
    Solved!
    Go to Solution.

    Hi and welome to the forums
    Verify the setting used:
    from the Main Messgage Queue MENU KEY - OPTIONS- GENERAL OPTIONS
    SMS AND EMAIL INBOXES SEPERATE.
    Pull the battery while the device is ON, replace after a minute,
    let the device reboot 1-3 min, Retry the function that was the problem
    Please let me know!
    Thanks
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Getting error in creating a new project for UI5

    Hello ,
    I installed eclipse and added this plugin :
    https://tools.hana.ondemand.com/juno
    But when all process is done completely on creating a project i am getting this error:

    Dear All,
    Thanks Valter Araujo.
    I was also getting same error but now it is working. initially JDK compiler was set 1.4 but in my system 1.7 was there. so just i have made JDK compiler 1.7.
    Please follow the below steps for correct setting-
    Window Menu->Preference ->Compiler->JDK Compiler
                                                Choose the compiler version as you have installed in system
    Regard,
    Pappu.

  • Projects for par files

    If i want to create a some par files and also edit some par files that came from sap, should I create a project for each PAR that I am going to edit or create.
    what is the best practice used?
    If we create a project for each PAR, should we check in all these projects into only one DTR workspace or again a workspace for each PAR.
    how to include this creating par file projects in component model (DC's and SC's).
    Could you please clarify regarding the above.
    Thank you

    Hi Shiva,
    1)If i want to create a some par files and also edit some par files that came from sap, should I create a project for each PAR that I am going to edit or create.
    You should create seperate projects for each par.
    2) If we create a project for each PAR, should we check in all these projects into only one DTR workspace or again a workspace for each PAR.
    You can check them in the same workspace.
    3)how to include this creating par file projects in component model (DC's and SC's).
    When you create a DC and there is an option of importing a par file onto your Development Component. If you have a parfile already you could use this option.
    Regards
    Prakash

  • There are three users on one laptop and I keep wiping out there libraries.  How do I create a seperate Itunes

    Not sure what im doing but here goes.  There are two of us using itunes on the same lap top with different devices. How do I create a seperate account for me and my device.

    The best way is to have each library in a separate Windows User ID.

Maybe you are looking for

  • Owb beta 3 / master detail mapping with sequence ora-00936 error

    I'm not able to use sequence operator in mapping to create relationships between different record type from the same flat file. I have got an sql error ORA-00936: expression absente The problem seem to be the sequence is not referenced in the sql loa

  • Activating EA-FS for ECC 6.0

    Hello, we want to activate extension set EA-FS (just on testsystem) - Does anybody know the effect for support packages also regarding year end packages? And does anybody know if it is possible to deactivate it again? Thanks for your help. Best regar

  • Architecting an Application With MXML Components

    I have an application that has gotten lengthy and I want to simplify it by architecting the Main Application with custom MXML Components. The application as it is currently architected works perfectly. Currently, the application consists of "Canvas"

  • My Iphones sound is not working.

    It is not the switch on the side or any silent settings. My Iphone 4 alerts are just not working I have everything turned up as loud as it will go and nothing works! Help please!

  • Tryin to book and in verbose mode i get fips uSER Space POST Success!

    i get this message trying to boot fips uSER Space POST Success!