Unit Testing with Microsoft Sharepoint Emulators and Fakes with Visual Studio 2013

Hi All,
I have created Test Project and now creating Test cases for Sharepoint. I found a link on MSDN which suggests using Fakes framework but it supports VS2012 and I am using Visual Studio 2013.
So how can I use it with VS2013 or is there any other way with which I can implement the Test cases with VS2013.
Please suggest.
Thanks in advance.
Himanshu Nigam

Hi HimanshuNigam,
According to your descrition, my understanding is that you want to use Fakes framework to create test case for SharePoint project in Visual Studio 2013.
If you want to test using Fakes Framework, you can use the codeplex extension to achieve it. It supports Visual Studio 2013.
Here is a detailed article for your reference:
Better Unit Testing with Microsoft Fakes
About how to include the Nuget package, you can use the package with the link below:
NuGet Package Manager for Visual Studio 2013
Installing NuGet
If you still have question about this issue, I suggest you can create a post in Visual Studio, more experts will help you and you can get more detailed information from there:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio%2Cvsarch%2Cvsdbg%2Cvstest%2Cvstfs%2Cvsdata%2Cvsappdev%2Cvisualbasic%2Cvisualcsharp%2Cvisualc
Best Regards
Zhengyu Guo
TechNet Community Support

Similar Messages

  • SharePoint Connection not available with Visual Studio 2013

    I've installed Visual Studio 2013 in my SharePoint 2010 environment. When I try to add the existing SharePoint Connections I've used in Visual Studio 2010 there is always the same error: Remote SharePoint site connections are not supported. The SharePoint
    site is located at the same server, I'm able to access the Central Administration with Visual Studio 2013, but I can't access my development SharePoint Web Application.
    I'm sure I do have access to the configuration database, in Visual Studio 2010 I'm able to delete and add SharePoint Connections without any problems. The URL of the development SharePoint connection (like sp1.sharepoint.contoso.com) is not named like
    the URL of the Central Administration (like servername:5000). The port of my development SharePoint is 80, but I can't access with servername:80 too. My account is in the group of the local administrators, Visual Studio is started as Administrator
    and my account is a SharePoint farm administrator and additionally a site collection administrator of all site collections in my SharePoint web application.
    Any idea what's wrong with this SharePoint connections?
    Thanks in advance. Georg

    Can you try the following workaround and see if it helps? First try adding host entry for your server name and if that works change it to sp1.sharepoint.contoso.com.
    SharePoint
    2013 Visual Studio Project Error – “Cannot connect to the targeted site”
    I understand your situation is different than the one mentioned in the blog but given you seem to have all the permission so may be you try and see if the error is because of above issue. Actually if above does not work (assuming your are on your development
    environment), try adding your account to DB Owner on your site collection database as mentioned here.
    http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
    Amit

  • Sharepoint 2010 Remote Development using Visual Studio 2013 Connection Errors

    I have a customer who is using a custom skinned site developed in Sharepoint 2010.
    I am trying to debug a webpart that is not loading on a page.
    My Environment:
    Local Laptop running Win 7 64 Enterprise, Visual Studio 2013, and Sharepoint Designer 2010.
    I connect to the customers network via VPN and use RDP to access the server. I have Admin rights to the server.
    Everything that I have read indicates that Web Part dev has to be done in VS. When I try to connect using server explorer, VS kicks back a 'Server Can not be found' error.
    I have tried using the computer name, the app url listed in SP Central Admin, the IP address of the box, and the actual URL of the site. However, VS can not connect to the server.
    I have done some homework on connecting VS to a remote machine:
    Adding New Servers in Server Explorer
    http://msdn.microsoft.com/en-us/library/edfcxas2%28v=vs.71%29.ASPX
    Add Server Dialog Box
    http://msdn.microsoft.com/en-us/library/107b72aa%28v=vs.71%29.ASPX
    SharePoint -how to connect remotely to production server
    http://stackoverflow.com/questions/3188364/sharepoint-how-to-connect-remotely-to-production-server
    SharePoint 2010 Development with Visual Studio
    http://stackoverflow.com/questions/10529917/sharepoint-2010-development-with-visual-studio
    Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows Server 2008
    http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx
    Using SharePoint Designer 2010 to Work with Web Parts
    http://msdn.microsoft.com/en-us/library/ff630941%28v=office.14%29.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListView
    The last connection article is confusing because one of the SO answers indicates that you do not need to have SP2010 installed.
    I have been doing lots of reading on SP structure, and it seems to jump all over the place. (Or at least my research does). I have been reading this Ebook:
    SharePoint 2010 Development with Visual Studio 2010
    http://books.google.com/books/about/SharePoint_2010_Development_with_Visual.html?id=TVKICs4vHTcC
    My questions are:
    Why cant I connect to the Server if I connected through VPN which would inherently make the server a local network computer?
    Do I need to have VS installed on the actual server? I read that I can install Sharepoint Foundation locally and this will give me access to the server in VS.
    Do I need to have the full version of VS installed in order to use Remote Tools?
    For the Web Parts:
    Why cant I see the web parts in Sharepoint Designer? I take it they are exclusively designed in VS, which brings me back to the questions above.
    In Sharepoint Designer, I can see a custom view that was created from a custom list. I want to add that list to the page where the web part isnt working. When I open up the Edit Interface, and try to find that list, it does not display in the 'Lists and Libraries'
    menu

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I use infopath 2013 with visual studio 2013 to modify forms with code?

    Dear all,
    I am using sharepoint online and infopath 2013, I wonder how do I edit infopath 2013 forms with visual studio? When I try to edit form code it says  I need visual studio 2012 and some other tools, I installed them and visual studio 2013, I wonder how
    do I get rid of the message and start coding? Can someone provide a detailed procedure of doing so? I am having trouble with creating multiple items with single infopath form with repeating table on sharepoint online. Thanks.
    Timothy

    Hi,
    According to your post, my understanding is that you want to create InfoPath form with code using Visual Studio.
    More information about develop InfoPath form with Visual Studio:
    http://msdn.microsoft.com/en-us/library/office/ee526362(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/aa942693.aspx  
    For the second question, I suggest you can create another post , it will be easier for others to focus on one question in one thread.
    Best regards

  • SQL Server 2012 with Visual Studio 2013 with SSIS/Integration services project?

    I wanted to build an integration services project to import data from multiple sources using a vendor's API.
    I wish I could recall how I got to the point where I was able to build one and have it run successfully, but I had to install so many things that I honestly don't remember.
    However, I noticed my PC booting really slowly after that, and I saw that I had components of VS 2010, VS 2012 and VS 2013 installed, along with SQL Server 2008 and 2012.  So I uninstalled a bunch of stuff, hoping to get to where I had only the most
    current versions of all, that were compatible with my corporate environment.  So I was aiming for Visual Studio 2013 (Premium, I think) and SQL Server 2012.
    Took me 2 days.  Now I'm at the point where I think - and I'm here to learn if I'm correct - that I cannot get an oData Source component into my project and use VS 2013 IF I want to stick with Sql Server 2012.  Is that correct?  
    I get very confused when trying to determine how the acronyms relate:  SSIS, SSDT, SSDT-BI, etc.

    Hi Anonymous11847,
    SSDT: Microsoft SQL Server Data Tools for Visual Studio 2010, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2010. This can be installed when SQL Server is
    installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2012 or lower
    SSRS projects can target SQL Server 2012 or lower
    SSIS projects can target only SQL Server 2012
    SSDT-BI for VS 2012: Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2012.
    This needs to be separately downloaded and installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2012 or lower
    SSRS projects can target SQL Server 2012 or lower
    SSIS projects can target only SQL Server 2012
    SSDT-BI for VS 2013: Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2013, it contains Business Intelligence project templates for Analysis Services, Integration Services, and Reporting Services that support Visual Studio 2013.
    This needs to be separately downloaded and installed. It supports various SQL Server versions as follows:
    SSAS projects can target SQL Server 2014 or lower
    SSRS projects can target SQL Server 2014 or lower
    SSIS projects can target only SQL Server 2014
    So if the SQL Server version is SQL Server 2012, we should install SSDT or SSDT-BI for VS2012 to create SSIS project.
    Reference:
    Microsoft SQL Server Data Tools Update
    If there are any other questions, please feel free to ask.
    Thanks,
    Kathrine Xiong
    Katherine Xiong
    TechNet Community Support

  • Office 365 API with Visual studio 2013 using file REST API

    Hi,
    I had configured MVC application for getting files from office 365 one drive, I am able to seen all file on last day but Now I am getting below issue 
    <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-1, System.ApplicationException</m:code><m:message xml:lang="en-US">Error
    in the application.</m:message></m:error>
    when I want to see again all files. and most important I didn't make any changes in my previous code...
    Please share your suggestion....

    Hi,
    If you are developing an app for SharePoint, the app can call into a user’s MySite site collection and access their OneDrive for Business documents using REST or CSOM.
    The REST call to get to the file would be:
    https://YourO365DomainHere-my.sharepoint.com/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/_api/web/GetFileByServerRelativeUrl('/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/Documents/Shared%20with%20Everyone/myDocument.docx')/$value
    More information is here:
    http://blogs.msdn.com/b/sharepointdev/archive/2013/08/13/access-skydrive-pro-using-the-sharepoint-2013-apis.aspx
    Best regards
    Dennis Guo
    TechNet Community Support

  • Problem with visual studio 2013

    hi
    I have visual studio 2013 ultimate update 2  in windows 8.1.
    Every thing about vs is ok ,just when i want to use of text box control or picture box on form , vs close .
    Why?
    Please help me

    Thanks for pvdg42's help.
    Hi mim_golden,
    I think that the pvdg42's suggestions are really help you, if possible, I suggest you can try the pvdg42's suggestion check your issue in your side.
    In addition, I suggest you can try to execute the following commands check if it can help you solve this issue.
    devenv.exe /safemode
    devenv.exe /resetsettings
    I suggest you can also try to upgrade the update package from the update 2 to the latest Update 4 for the VS 2013 Ultimate.
    If the above suggestion still could not help you,
    please let us know the latest information about it.
    Best 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.

  • Windows 7 with SharePoint 2013 Foundation and Visual Studio 2013

    Hi,
    I am begginer with Sharepoint 2013 Foundation. 
    My company installed Sharepoint 2013 Foundation on a virtual Server. I installed
    Visual Studio 2013 on my local computer. Also i created a developer site.
    Based on http://msdn.microsoft.com/en-us/library/office/jj220047(v=office.15).aspx#RDOverview I installed Office
    Developer Tools for Visual Studio 2013 on my local computer. 
    I am trying to remotely develop apps
    with Visual Studio 2013. In the option What SharePoint site do you want to use for debugging your App? i put the url
    of developer site.
    First of all, i had to choose if the apps will be SharePoint-hosted or Provider-hosted apps. Based on http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx and http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx,
    i decided to followed SharePoint-hosted because is the only type that applies to SharePoint 2013 Foundation.
    I followed the steps of http://msdn.microsoft.com/en-us/library/office/fp142379(v=office.15).aspx, which is the quide for How to:Create a basic SharePoint-hosted app. In Step 10 for deploy my app i get the following error: 
    Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
    What is the problem?
    Also, the visual studio need to be installed on the server where sharepoint was installed?
    Moreover, do I need app catalog for testing and deploy apps?
    thanks, Aphrodite

    Hi,
    According to your post, my understanding is that you have an issue about creating app.
    Per my knowledge, the issue is caused that you don’t configure the app catalog URLs from the central administration.
    It means that we should create an App site catalog site collection to hold our Apps.
    More reference:
    http://www.sharepoint-journey.com/app-development-in-sharepoint.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Cannot install Selenium Components for Cross Browser Testing extension from Visual Studio 2013

    Hello,
    I am having some issues with installing Selenium Components for Cross Browser testing.  I keep getting this error everytime. Yes, Visual Studio 2013 has been registered with a product key. However, I cannot seem to bypass this error. I tried to install
    from http://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d and from Tools->Extensions and Updates from Visual Studio 2013. It just does not work. I have a copy of Visual Studio 2013.  Yes, I already have Visual Studio
    2012 Ultimate and Visual Studio 2013 Ultimate installed on my machine. What am I missing?

    Hi Antwan,
    Please uninstall the VS, then reinstall it.
    On the other hand, this issue is in the extension, I suggest that you should post it in
    Selenium components for Coded UI Cross Browser Testing site for efficient response. (Q AND A)
    Thanks
    Best 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.

  • Version of jvm.dll compatible with 64-bit development on Visual Studio 2013?

    Hi.  I am building a 64-bit C++ application under Visual Studio 2013. I am using jvm.dll to call Java methods from within the application.  The issue is that the version of jvm.dll that is distributed with Java 7 and Java 8 are compiled with Visual Studio 2010 (and thus rely on the msvcr100.dll runtime library).  This makes it very dangerous to use with a Visual Studio 2013 application which uses msvcr120.dll (mixing runtime libraries is a very big no-no).  I am seeing random memory errors as a result, at the JNI interface level.
    Is there any way to get a version of jvm.dll that is compiled with Visual Studio 2013 and is thus dependent on msvcr120.dll?
    Thanks,
    Dan

    Hello,
    As per your description, remote deployment is not possible for server side code in sharepoint so if you are using server object model then you won't be able to debug or deploy your solution from visual studio.
    VS is not required to installed on UAT/prod server but you need sharepoint along with visual studio in same development machine to develop any custom webpart.
    Once you deploy your custom webpart on site then you will be able to see that webpart in webpart gallery and that gallery is also available in designer so it means you can also add your custom webpart from designer to any page.
    Correct me if i misunderstood you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • SQL Server Express and Visual Studio 2013

    In February I installed Visual Studio 2013 Professional. Looking in the Control Panel at all my installed programs, I see that I have a bunch of SQL server-related programs loaded, from the 2013 install and also from installs of previous Visual Studio versions.
    I've never done a thing with SQL server express, and am completely clueless about using it. I've already wanted to take a crack at it but it always seemed too daunting, so I backed off. It seems, however, that over the years the integration of SQL Server Express
    with Visual Studio is getting more and more seamless. Here is a list of all the SQL Server-related programs on my computer, with the ones installed automatically from the Visual Studio 2013 install bolded so they'll stand out. What I'm wondering is if I have
    everything I need to use SQL Server Express with Visual Studio 2013:
    Microsoft SQL Server 2005                                                  
    Microsoft Corporation   11/4/2013
    Microsoft SQL Server 2005 Mobile [ENU] De...                     
    Microsoft Corporation   4/29/2007
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Data-Tier App...                    
    Microsoft Corporation   1217/2011
    Microsoft SQL Se1Ver 2008 R2 Management ...                   
    Microsoft Corporation   1217/2011
    Microsoft SQL Server 2008 R2 Transact-SQL ...                    
    Microsoft Corporation   12/7/2011
    Microsoft SQL Server 2012 Command Line ...                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Data-Tier App Fr...              
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Express LocalDB                 
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Management Ob...               
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Native Client                        
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server 2012 Transact-SQL Co...                    
    Microsoft Corporation   9/21/2012
    Microsoft SQL Server 2012 Transact-SQL Ser...            
    Microsoft  Corporation 2/10/2014
    Microsoft SQL Server 2012 T-SQL Language ...             
    Microsoft Corporation  2/10/2014
    Microsoft SQL Server Compact 3.5 Design T...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Compact 3.5 SP2 ENU                       
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Compact 4.0SP1 ENU                        
    Microsoft Corporation   9/21/2012
     Microsoft SQL Se1Ver Data Tools - enu (11.1....                 
    Microsoft Corporation   5/19/2013
     Microsoft SQL Server Data Tools - enu (12.0....            
    Microsoft Corporation  2/10/2014
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...              
    Microsoft Corporation   5/19/2013
     Microsoft 
    SQL Server Data  Tools Build   Utiliti ...         
    Microsoft  Corporation 2/10/2014
     Microsoft SQL Server Database Publishing ...                     
    Microsoft Corporation   2/14/2008
    Microsoft SQL Server Database Publishing ...                      
    Microsoft Corporation   5/25/2010
    Microsoft SQL Server Native Client                                      
    Microsoft Corporation   4/1/2011
    Microsoft SQL Server Setup Support Files (E...                    
    Microsoft Corporation   4/1/2011
    Microsoft SQL Se1Ver System CLR Types                             
    Microsoft Corporation   1217/2011
    Microsoft SQL Server VSS Writer                                         
    Microsoft Corporation   4/1/2011

    Hello,
    Please read the following resources:
    http://msdn.microsoft.com/en-us/library/ms233763.aspx
    http://stackoverflow.com/questions/20333518/how-to-create-a-database-in-ms-visual-studio-2013
    http://msdn.microsoft.com/en-us/vstudio/bb643825.aspx
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Help with C# Errors (Visual Studio 2013)

    Hello, I am working on a console application in Visual C#, with Visual Studio 2013. I have been experiencing two specific errors several times, but I am just beginning to learn C#, so I do not know the cause of these errors or how to fix them.
    I am using a console class (Console.WriteLine) and it is telling me that "The name 'Console' does not exist in the current context." I do not know what this means, or what is causing it. Because it is referring to the word Console as a "name"
    I think I may be incorrectly using the term "Console," but I feel like I have no way of knowing so.
    I am also receiving an error telling me that  "A using clause must precede all other elements defined in the namespace except extern alias declarations." Again, I have no idea what this means. If anyone could provide some help or explain to
    me what is causing these errors, I would greatly appreciate it. Thank you.

    Hello,
    Welcome to MSDN forum.
    But your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because this is an issue with Oracle data access on VS, I would post issues to Oracle forum:
    https://community.oracle.com/community/developer/english/oracle_database/windows_and_.net for better support.
    Thanks,
    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.

  • Develop Text Input Service with Vistual Studio 2013 Express for Desktop

    Dear All,
    1 . Can we develop Text Input Service using TSF with Visual Studio 2013 Express?
    2. How to deploy  this text input service application onto PC or tablet? According to MS guideline(https://msdn.microsoft.com/en-us/library/windows/apps/hh967425.aspx), it seems we have to create an installer from Installsheild, then deploy this installer
    to PC/tablet, but this is really inconvenient for debug purpose. Do we have other ways to deploy?

    Hello,
    >>1 . Can we develop Text Input Service using TSF with Visual Studio 2013 Express?
    Since it is related with the Visual Studio, the VS forum is more proper for this question:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=visualstudio
    >>but this is really inconvenient for debug purpose. Do we have other ways to deploy?
    Since this is the official guideline, i think there could not be other approaches, or you could have a try with the ClickOnce whcih is easier than the installer:
    https://msdn.microsoft.com/en-us/library/t71a733d.aspx
    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.

  • Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running The backup file should be restored to a server with version '12.0.0.6318' or later.

    am trying  to restore the bak file into a new  site collection in my sp 2010  standalone env.
    am getting error
    PS C:\Windows\system32> stsadm -o restore -url http://srvr1-01:123/sites/Repository -filename "C:\mBKUPCOPY\Sharepoint_bankup.bak"
    STSADM.EXE : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running
    the current version. The backup file should be restored to a server with version '12.0.0.6318' or later.
    At line:1 char:1
    + stsadm -o restore -url http://srvr1-01:123/sites/Repository -filename "C: ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Your backup is ...6318' or later.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

    As stated in the other thread on this topic you can't restore a 2007 backup to 2010, it needs to be upgraded.
    https://social.technet.microsoft.com/Forums/en-US/31c70f0a-5d89-4308-895b-af0c2b249114/restore-the-site-collection-from-moss-2007-to-sp-2010-site-collec?forum=sharepointadminprevious

  • Unit test with Dynamic Value Query

    Hi,
    I am planing a function which should return a table name for a given ROWID. The ROWID will be selected from a view. Now I am trying to setup a unit test which consists of Startup and Teardown Process as well as a Dynamic Value Query. During Startup Process one dataset is inserted in a table which is part of a view definition. The dataset should be selected during Dynamic Value Query. However I am getting the following error message: Unable to run the test because no rows were returned by the dynamic query. Is there the possibility that within a Dynamic Value Query I can't make use of datasets which where inserted by a Startup Process? I am asking because the selection outside the unit testing framework supplies the dataset as expected.
    SQL Developer: 3.2.20.09 Build MAIN-09.87
    Java: 1.6.0_45
    Regards.

    Dynamic SQL is very tricky.  Since you can get the data outside your application extract and test the dynamic SQL as it is generated.  When working with dynamic SQL I find it useful to first generate the SQL text as a string and then if necessary store it in a table (CLOB type) for later reference.  Because of the uncertainty of obtaining bind variable values later I prefer to hard-code such values into dynamic SQL - possibly slightly less efficient for Oracle at run time but a lot easier to work with when debugging and tuning (again, apart from the built-in inefficiency of not using bind variables)  I usually find the overhead of the hard-coded values not too bad and the ability to know the data values at a glance useful.  I also find it useful to write dynamic SQL in such a way so that the resulting statement can be pasted in to any normal SQL tool (SQL*PLUS, SQL*Developer) and run without any editing.
    There may be some quirk in the generated dynamic SQL preventing it from finding anything.
    Good luck.

Maybe you are looking for