christophe seguinot

Greenhorn
+ Follow
since Oct 19, 2007
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by christophe seguinot

Hello,

In the javadoc template of a method (java -> Code Style -> Code Template : Comments -> Methods) we can have :

Take the following example :



By clicking on ctrl + shift + j, we get :



Extract form the eclipse documentation :

"Comment templates can contain the variable ${tags} that will be substituted by the standard Javadoc tags (@param, @return..) for the commented element."



I would like to customize the template associated to @{tags} in order to add the @link tags.


Does anyone know how to do this or at least if it's possible or maybe the name of the eclipse plugin which is used, some clue perhaps ?

Thanks
Best regards,
Chris
Thanks a lot, the whole mechanism is now working using TestCase.getName(). I was trying to access a static method instead of doing this.getName(). Thanks for you patience.
Chris
10 years ago
We are using junit 3.8 and TestCase.getName() is not defined. Thanks by the way.
10 years ago
Hello,

I would like each test method of the test case to have its own data.

Here is what we are currently doing :
- before each test the database is created
- the sql is inserted in the database (hsqldb or oracle)
- the test method is executed
- the database is dropped

We are going through this loop for all methods in the test case.

As a consequence the file which contains the sql statement contains the SQL needed by all the methods of the test case. This is cumbersom especially when methods are closely related. (assertEquals(1, list.size()) -> assertEquals(2, list.size() for example)

Instead, I would like to have an sql file for each method. To do this I must be able to know what is the method which is going to be executed by JUnit. And I have no idea on how to retreive this value.

Does anyone know how to do this ? or maybe a better idea to isolate the sql between methods ?

Thanks a lot,

Best Regards,

Chris
10 years ago
I have two columns. Actually I would like size1 (size of the first column) to be as little as possible depending of the size of its content (actual content of column 1 : some string...). Of course the size of the second column must change in consequence. Do you know if it's possible ?
Anyway, thanks.
Chris
10 years ago
Hello,

I would like to intercept action on my save button. When the user click on save, I have a validor which is ran. In this validator I would like to cancel the "save" action in some cases. So I thought maybe it is possible to remove the save event from the event queue.

Do you know if it's possible ?

Cheers,

Chris
10 years ago
Hello,

I would like to study java annotation in detail. May you recommand me a book ?

Cheers,

Christophe
10 years ago
Hello,

I'm trying to develop an MTOM webservice on weblogic 10.3.

Server side :


Client side :


On the server side I have the following exception:
Nov 5, 2010 8:37:18 AM com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle


On the client side I have the following exception :


I'm confused because this is a very simple web service.
The client is generated using clientgen of weblogic.

Any help would be appreciated.

Regards,

Christophe
12 years ago
Hello,

I have an xml file which contains hundred of records. I need to store the java objects associated to these datas in a database. Which parser do you think I should use ? JAXB, SAX .... ??

Thanks a lot.

Chris
Hello,

I have a ServletContextListener which starts several timers. Under some conditions (some directory are not present for example) I want to prevent the application to be deployed.

Do you know if it is possible ?

Thanks.

Christophe
12 years ago
or I will start it in a filter and stop it in the destroy method of the servlet
12 years ago
I will run this in a struts web application with start and stop button.
Thanks
12 years ago
Hi,

I'm trying to implement a file change notification. I mean i want to be notifyed when some changes occured in a directory.
I can't use java 7 ...

I want to use DefaultFileMonitor from Apache common.


Here is a sample code which is working :


My problem comes from the Thread.sleep (20000), I would the program to run until explicitely called.

Any help would be appreciated.

Christohpe
12 years ago