[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 413
  • Last Modified:

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


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.

  • 2
1 Solution
Gibu GeorgeCTOCommented:
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
Gibu GeorgeCTOCommented:
DB unit is not intended for a deployed application, also I am not sure how you will be able to run dbunit on server
Fionageo80Author Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now