You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/11/18 10:07:41 UTC
svn commit: r1410855 -
/axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
Author: veithen
Date: Sun Nov 18 09:07:40 2012
New Revision: 1410855
URL: http://svn.apache.org/viewvc?rev=1410855&view=rev
Log:
Fixed a test case that didn't do what it is expected to do because the Options class nulls out some of the entries of the args array.
Modified:
axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
Modified: axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java?rev=1410855&r1=1410854&r2=1410855&view=diff
==============================================================================
--- axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java (original)
+++ axis/axis1/java/trunk/samples/stock-sample/src/test/java/test/functional/TestStockSample.java Sun Nov 18 09:07:40 2012
@@ -29,11 +29,14 @@ public class TestStockSample extends Tes
"-uuser1", "-wpass1", "XXX", "-saxis/StockQuoteService.jws" };
float val = new GetQuote().getQuote(args);
assertEquals("TestStockSample.doTestStockJWS(): stock price should be 66.25", val, 66.25, 0.01);
-
+ }
+
+ public void testStockJWSInvalidURL() throws Exception {
// This should FAIL
- args[5] = "-sjws/AltStockQuoteService.jws";
+ String[] args = { "-p", System.getProperty("test.functional.ServicePort", "8080"),
+ "-uuser1", "-wpass1", "XXX", "-sjws/StockQuoteService.jws" };
try {
- val = new GetQuote().getQuote(args);
+ new GetQuote().getQuote(args);
} catch (AxisFault e) {
// Don't print stack trace unless there is an error
// e.printStackTrace();