tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Ricles <jgr...@alum.lehigh.edu>
Subject Re: unit testing on tomcat with java
Date Thu, 11 Dec 2014 15:03:12 GMT
To the question, the external program is sending messages to the
webpage through the websocket server on the page. Where as the webpage
is the gui and the external java program is the guts of the gui which
does what you want when a button is pressed on the gui.

On Thu, Dec 11, 2014 at 9:35 AM, Christopher Schultz
<chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Jason,
>
> On 12/11/14 9:07 AM, Jason Ricles wrote:
>> I am currently using tomcat 7.0.57 to host a website for the
>> purpose of having a websocket serverdeployed with the page for the
>> purpose of communicating between an external java program and the
>> webpage.
>
> The "web page" (i.e. servlet) is running an external Java program, or
> the external Java program is trying to access a "web page" (i.e. servlet)?
>
>> I would like to write some unit test to test that the integration
>> between the external java program and the webpage. I have however
>> had trouble finding what is the best way to do this (all i could
>> find was on when you are using servlets in tomcat).
>
> In a Java web application server (like Tomcat), everything boils down
> to a servlet in the end (unless a Filter takes over, first, and
> provides a response).
>
>> Would j-unit be able to run test to verify that the integration
>> between the webpage and the external java program is implemented
>> correctly, or is j-unit unable to test using a tomcat webserver?
>
> Tomcat's source package includes hundreds of test cases, written using
> junit.
>
>> If it is unable to run test with the tomcat webserver, what unit
>> testing tool is able to that is able to run on a linux machine?
>
> Junit works great. Get Tomcat's source package and look under the
> /test directory for .java files. There are lots of them.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUiauiAAoJEBzwKT+lPKRY/fUP/1ByU6kaDpW/wERC7uEo431P
> cGtwV2JyLKwFqYl7u6XWBR9jy0V4B3XsjGKUQHcqCrUiFio4mkImYQMNE/SRB6Ny
> KYFUrB+UGx7ZHzgTNFJ65D6PkVdGYBtGbTuWO1aipAPxn4ZgOg+/oPD+E71nt1xw
> SruOl6N6TwBdQIakTcg3HGSMt/mWM00TUBukspdfBgyg8GVKwnZgAY4e1MD6JwAx
> 5G/J524dFT/PM7ZyMZ9kuoOpjGb14rjdVjfbas5FYLPc9LH7ZjpVnG/ymJSo+RDz
> HjccYK/xHGzsBt8dcgJxc/ez4h78YLjKlbV3uDqHn5/hGhEkTMa6dNT9C+FB5vcp
> qR78YJGjHFRbXXBGoLBgnCGozcVV/DFFIzyeRwon/oU2RiG4CiTrfLXSzZ4Jl6IU
> MjA5RGFQYQVhBLZ4VVIl/X4d1aHIavufnwWkKaseFAszgcWomwqO1976o30EBDxu
> AKWBU/7CwifM1krdBgebUVs3CsLAZKjOqUrlg3Na3vuVXh12pDhMKIoL2kii/9df
> cdcubH60TXh07gRHVI2Gkqtt98xL8D3CW9tVbVkuYy3PQuMh6O4MfxLrrQNia/k3
> Nlm+cGIw29qkO2/YyT0wxxlXfkJKmg/6GWTQQO7kxVxx5xaADEEReZuEIfRynZrI
> q5U6ivDxxIPrqHZypgDb
> =WKUa
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message