-----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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org