Groups | Search | Server Info | Login | Register
Groups > comp.client-server > #5
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Stanimir Stamenkov <s7an10@netscape.net> |
| Newsgroups | comp.lang.java.programmer, comp.lang.java.help, comp.client-server |
| Subject | Re: Testing the Post request |
| Date | Sat, 18 Jun 2011 19:33:03 +0300 |
| Organization | A noiseless patient Spider |
| Lines | 40 |
| Message-ID | <itijvv$v3o$1@dont-email.me> (permalink) |
| References | <df9cb1d7-c953-49ed-851b-c309a034a3a9@x3g2000yqj.googlegroups.com> <itidgd$l0h$1@dont-email.me> <3ea90246-d6b2-4ce2-9a20-d3273d35530a@c9g2000yqp.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 18 Jun 2011 16:33:03 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="VdcnnljfizG2LUdZ5iOA6g"; logging-data="31864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GrFzDBsMrF7qhr7Ny3uHW" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20110608 SeaMonkey/2.1 |
| In-Reply-To | <3ea90246-d6b2-4ce2-9a20-d3273d35530a@c9g2000yqp.googlegroups.com> |
| X-Face | )>>ChyF_H<b)u~Zjgo/=wa~;=qyW%.F\L.d^fKL[;y\=tY\]M}2t(a^;PKS}9g|k@\vkA<P Q|4?kcJ52334f:CaCrQZ=]D~txPPh6[y{xHkZ+4/KPKZ~|*K#?EqeP0W]iU*Ldy-hyjh0)N4c.I<m) K}GsUUe0)~24Xp`Jt |
| Cancel-Lock | sha1:dtjt1nq2EAv+MD4TVM5xrGM1QGc= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5361 comp.lang.java.help:781 comp.client-server:5 |
Cross-posted to 3 groups.
Show key headers only | View raw
Sat, 18 Jun 2011 08:54:20 -0700 (PDT), /Pete/: > If I had missed to configure something eg "String url = "URL";", when > the function is called nothing would received at the other end - > mocking the HTTPClient is not going to highlight this until I get to > really integrate with the other application. So, your unit tests would verify the configuration is read from intended source (possibly mocked) and then supplied to the HttpClient. Of course you can't protect from human error like supplying wrong configuration in production environment, but that's system administration task. > However,if I did > something like your other suggestion - "a test service receiving and > handling the requests" - this would highlight any issues with my > implementation in advance. > This is subject matter is relatively new to me - even my logic of my > function, I got from the internate. So I wonder if you have any > suggestions how I can create a SIMPLE "a test service receiving and > handling the requests" to test my function. Again example would very > much be appreciated. I've already suggested the test service could be implemented as a simple servlet [1]. Depending on what this servlet is expected to do - it might be not that simple. Do you need help with: 1. Creating a servlet; 2. Implementing the business logic of the servlet; 2. Packaging it as web application/module; 3. Deploying it in a servlet container; 4. Setting up an application/servlet container. ? [1] http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServlet.html -- Stanimir
Back to comp.client-server | Previous | Next — Previous in thread | Next in thread | Find similar
Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 04:41 -0700
Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 17:42 +0300
Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 08:54 -0700
Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 19:33 +0300
Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 10:40 -0700
Re: Testing the Post request Stanimir Stamenkov <s7an10@netscape.net> - 2011-06-18 23:36 +0300
Re: Testing the Post request Pete <vw_bora@sky.com> - 2011-06-18 15:33 -0700
Re: Testing the Post request Abu Yahya <abu_yahya@invalid.com> - 2011-06-19 23:10 +0530
Re: Testing the Post request markspace <-@.> - 2011-06-18 11:11 -0700
csiph-web