Siva Jagadeesan

Ranch Hand
+ Follow
since Oct 31, 2000
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Siva Jagadeesan

I assume that ur buildModel() method just calls all these methods
parseHierarchy()
parseGroup()
parseEntry()
parseHierarchy() - yes yes , recursive call

The way I will follow is Unit Test small methods and write a Test for buildModel() using Mock and make sure buildModel() is calling these small methods as intended
[ September 27, 2004: Message edited by: Siva Jagadeesan ]
20 years ago
I just wrote a blog abt reporting using Ant

Check it out

http://java2simple.blog-city.com/read/837150.htm
20 years ago
Using JMeter, We could do Stress Test on
a) Http Servers
b) Ftp Servers and
c) SQL queries.
JMeter is swing application , where you could configure your Stress Test by giving information like
URL
No of concurent Users
No Of requests etc.
JMeter then spans n threads (simulating the concurrent users) and keeps sending the request to the URL you specified.Once the test is over it gives you a graph how much time each request took. You could get many valuable information out of that graph like does ur system slows down after some time etc

Jakarta does have a user Manual for JMeter
http://jakarta.apache.org/jmeter/usermanual/index.html
20 years ago
Yah Chris, I guess you are right.
20 years ago
I have not tried Jetty. Let me try and let evrybody know what I think.
Thanx for the tip
20 years ago
Chk this out
Testing Email Components
It has a small example how to test email component. It has a small Junit. It will give you pretty idea how to use Junit.
20 years ago
There is always an argument whether to test these kind of simple methods. I won't bother myself to write test for a simple setters and getters.But if the setters and getters are going to do much more then they normally do then I will surely write the test.
20 years ago
I feel really bad for Rama and guys like him, who think testing is not a part of developer's job. They think they could write any code and throw it to the poor testers to find their mistakes. If you have so much pride as a developer, isn't it embarassing for you to allow some one else to find that the code you wrote is a crap.Tell me how many times have you wrote a program and someoneelse as found a bug( some are bugs , but mostly they are developer's mistake) in it.I think you better have to do some soul search my buddy, before comparing Software engineering with Civil and Mechanical engineering.
"It is not possible to wake up someone who is pretend to be asleep"
20 years ago

This above method will test the method and just let you know whether it passed or not. You don't have to chk the result. The method will take care of this.
For a simple method like yours , it will be easy to write a test without Junit. But for some complicated method (first of all a method should not be compilicated) JUnit makes it easy to write Test. Its integration with Ant is also good. So you could make Test as a part of your build.

Edit: Lasse moved the plain text out of the CODE block to fix layout...
[ February 27, 2004: Message edited by: Lasse Koskela ]
20 years ago
Hey guys I have written an article about testing email components. Chk it out at http://java2simple.blog-city.com/read/506423.htm and let me know what you guys think.
Rgds,
--Siva Jagadeesan
20 years ago
Hi All:
I am getting a NullPointerException when invoking a webservice using a JavaClient.
Service Interface is
public boolean uploadFile(
DataHandler dataHandler,
MetadataBean metadataBean,
FolderBean folderBean);
MetadataBean has a another bean (as a composite) PublicationMetaConf.
This is my wsdd file
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
xmlns:schema="http://www.w3.org/2001/XMLSchema"
xmlns:au="AutoUploaderService">
<service name="AutoUploaderService" provider="java:RPC">
<namespace>AutoUploaderService</namespace>
<parameter name="className" value="cat.vce.autoUpload.server.service.AutoUploaderServiceImpl"/>
<parameter name="allowedMethods" value="*"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"
languageSpecificType="java:javax.activation.DataHandler" qname="au ataHandler"
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
<beanMapping qname="au ublicationMetaConf" languageSpecificType="java:cat.vce.autoUpload.server.conf.PublicationMetaConf"/>
<beanMapping qname="au:MetadataBean" languageSpecificType="java:cat.vce.autoUpload.server.bean.MetadataBean"/>
<beanMapping qname="au:FolderBean" languageSpecificType="java:cat.vce.autoUpload.server.bean.FolderBean"/>
</service>
</deployment>

I have two questions
1) When I make a call using Java client I am getting an NullPointerException
2) I am not able to generate Client side code using WSDL2Java. I am getting this error
[java] java.io.IOException: Type {AutoUploaderService}DataHandler is referenced but not defined
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:522)
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422)
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:408)
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393)
[java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
[java] at java.lang.Thread.run(Thread.java:536)
It would be great is someone could help me.
Rgds,
--Siva
21 years ago
Guys
I got 80% in the exam. I am happy considering the time I spent on preparing for this exam.
Rgds,
--Siva Jagadeesan
Guys
As a part of SCWCD training Topic 2 Introduction to JSp is Posted
Chk it out at
http://java2simple.blog-city.com/read/172867.htm
21 years ago
Hey Guys:
Check out my Study plan for Weblogic 7.0 Certification. I have some important links also.
http://java2simple.blog-city.com/read/171234.htm
Let me know what you guys think