is recommended to use DBunit test inside JBoss and run it as app Server?

Posted on 2009-04-28
Last Modified: 2013-12-29

I have created a DBunit test now this DBunit must be run as an AppServer.  In this case I have to use JBoss, this AppServer will be a module of the main program. At the moment is a stand-alone application. My question is:

would be still appropriated to use this DBunit test now as AppServer? or I should send the SQL statements and check it programmatically without using Database Test Cases?

is there any change to reuse or to implement this DBunit inside JBoss without rewritting everything? How?

Thank you for your help.

Question by:Fionageo80
    LVL 12

    Accepted Solution

    DB unit and other unittest case  frameworks are intended for unit testing, i.e during development, they allow the developer to make sure that the written code is functioning properly and that new additions of code didn't cause any regression errors, with out having the need of the appserver or a db
    LVL 12

    Expert Comment

    by:Gibu George
    DB unit is not intended for a deployed application, also I am not sure how you will be able to run dbunit on server

    Author Comment

    Ok, thank you for the quick reply. In fact, I have to create a Functionality test for a Database as Application Server that will be a module of the main program this test has to execute without automatically a bunch of queries (and check if the result is the expected) whenever the AppServer is executed.

    Before I used DBunit but now I am looking for a solution to make the test to the Database but now as AppServer.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Java 1603 Error 2 28
    scoreUp challenge 14 40
    Receive file in Servlet 1 28
    Company IT policies concerning licensing 4 21
    A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
    A list of useful business intelligence software.
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now