Re: Cactus and dbunit
Sérgio Vieira Rolanski <[email protected]> Mon, 24 Mar 2008 09:29:02 -0300
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Petar,
I realize it was a db-unit problem after I sent the e-mail, sorry
about that. There is no way to set-up breakpoints on test-unit files
when running cactus?
Best regards,
Sérgio
Petar Tahchiev wrote:
> Hi Sergio,
>
> IMHO it looks more like a DBUnit-related problem :-(.
> But for the debugging of Cactus, you can configure your
> logging and then look for the logs of the server or the client.
>
> Hope that helps.
>
> Cheers, Petar.
>
> 2008/3/20, Sérgio Vieira Rolanski <[email protected]>:
>
>> Hi,
>>
>> I'm have a problem when trying to load a XLS file into a database. Here
>> is my setUp method:
>>
>> protected void setUp() throws Exception {
>> super.setUp();
>>
>> IDataSet dataSet = null;
>>
>> try {
>> System.out.println("Call createDatabaseTester");
>> databaseTester = createDatabaseTester();
>>
>> System.out.println("Call getSetupDataSet");
>> dataSet = getDataSet();
>>
>> System.out.println("Call setDataSet");
>> databaseTester.setDataSet( dataSet );
>>
>> System.out.println("Call onSetup");
>> databaseTester.onSetup();
>>
>> System.out.println("Done");
>> } catch(SQLException ex) {
>> System.out.println("SQLException!!!!");
>> ex.printStackTrace();
>> } catch(Exception ex) {
>> System.out.println("Exception!!!!");
>> ex.printStackTrace();
>> }
>> }
>>
>> What happens is that the "Done" is never printed out. It seems it get
>> stuck at the onSetup() method. No exception is being thrown. The
>> databaseTester is set correctly just as the dataSet is read from XLS
>> correctly.
>>
>> Also I don't know how to debug cactus, therefore, I'm using these
>> println (which is terribly) any advice on that would be nice as well.
>>
>> Thanks in advance,
>>
>> Sérgio
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]