1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
|
package test.wsdl.inout;
import junit.framework.AssertionFailedError;
import junit.framework.TestCase;
import org.apache.axis.holders.DateHolder;
import test.wsdl.inout.holders.AddressHolder;
import test.wsdl.inout.holders.PhoneHolder;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.holders.IntHolder;
import javax.xml.rpc.holders.StringHolder;
import java.util.Date;
/**
* This class shows how to use the ServiceClient's ability to
* become session aware.
*
* @author Rob Jellinghaus (robj@unrealities.com)
* @author Sanjiva Weerawarana <sanjiva@watson.ibm.com>
*/
public class DetailedInoutTestCase extends TestCase
{
private static Inout io;
public DetailedInoutTestCase(String name) {
super(name);
expectedAddress = new Address();
expectedPhone = new Phone();
expectedDate = new Date(2002-1900, 6, 23);
expectedAddress.setStreetNum(1);
expectedAddress.setStreetName("University Drive");
expectedAddress.setCity("West Lafayette");
expectedAddress.setState("IN");
expectedAddress.setZip(47907);
expectedPhone.setAreaCode(765);
expectedPhone.setExchange("494");
expectedPhone.setNumber("4900");
expectedAddress.setPhoneNumber(expectedPhone);
returnAddress = new Address();
returnPhone = new Phone();
returnDate = new Date(1998-1900, 3, 9);
returnAddress.setStreetNum(555);
returnAddress.setStreetName("Monroe Street");
returnAddress.setCity("Madison");
returnAddress.setState("WI");
returnAddress.setZip(54444);
returnPhone.setAreaCode(999);
returnPhone.setExchange("one");
returnPhone.setNumber("two");
returnAddress.setPhoneNumber(returnPhone);
try {
io = new InoutServiceLocator().getInoutService();
}
catch (ServiceException jre) {
throw new AssertionFailedError("JAX-RPC ServiceException: " + jre);
}
}
private String printAddress (Address ad) {
String out;
if (ad == null)
out = "\t[ADDRESS NOT FOUND!]";
else
out ="\t" + ad.getStreetNum () + " " + ad.getStreetName () + "\n\t" + ad.getCity () + ", " + ad.getState () + " " + ad.getZip () + "\n\t" + printPhone (ad.getPhoneNumber ());
return out;
}
private String printPhone (Phone ph)
{
String out;
if (ph == null)
out = "[PHONE NUMBER NOT FOUND!]";
else
out ="Phone: (" + ph.getAreaCode () + ") " + ph.getExchange () + "-" + ph.getNumber ();
return out;
}
public boolean equals (Address a1, Address a2)
{
try
{
return a1.getStreetNum() == a2.getStreetNum() && a1.getZip() == a2.getZip() && equals (a1.getPhoneNumber(), a2.getPhoneNumber()) && ((a1.getStreetName() == null && a2.getStreetName() == null) || a1.getStreetName().equals (a2.getStreetName())) && ((a1.getCity() == null && a2.getCity() == null) || a1.getCity().equals (a2.getCity())) && ((a1.getState() == null && a2.getState() == null) || a1.getState().equals (a2.getState()));
}
catch (Throwable t)
{
return false;
}
}
public boolean equals (Phone p1, Phone p2)
{
try
{
return p1.getAreaCode() == p2.getAreaCode() && ((p1.getExchange() == null && p2.getExchange() == null) || p1.getExchange().equals (p2.getExchange())) && ((p1.getNumber() == null && p2.getNumber() == null) || p1.getNumber().equals (p2.getNumber()));
}
catch (Throwable t)
{
return false;
}
}
private Phone expectedPhone;
private Address expectedAddress;
private Date expectedDate;
private int expectedNumber = 99;
private Phone returnPhone;
private Address returnAddress;
private Date returnDate;
private int returnNumber = 66;
public void testOut0Inout0In0 ()
{
try
{
io.out0Inout0In0 ();
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout0In0: " + t.getMessage());
}
}
public void testOut0Inout0In1 ()
{
try
{
io.out0Inout0In1 ("out0Inout0In1");
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout0In1" + t.getMessage());
}
}
public void testOut0Inout0InMany ()
{
try
{
io.out0Inout0InMany ("out0Inout0InMany", expectedAddress);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout0InMany" + t.getMessage());
}
}
public void testOut0Inout1In0 ()
{
PhoneHolder ph = new PhoneHolder (expectedPhone);
try
{
io.out0Inout1In0 (ph);
assertTrue("out0Inout1In0 returned bad value", equals(ph.value, returnPhone));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout1In0\nexpected phone = "
+ printPhone (returnPhone) + "\nactual phone = "
+ printPhone (ph.value) + t.getMessage());
}
}
public void testOut0Inout1In1 ()
{
StringHolder sh = new StringHolder ("out0Inout1In1");
try
{
io.out0Inout1In1 (sh, expectedAddress);
assertEquals("StringHolder returned bad value", "out0Inout1In1 yo ho ho!", sh.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout1In1\nexpected string = out0Inout1In1 yo ho ho!\nactual string = "
+ sh.value + t.getMessage());
}
}
public void testOut0Inout1InMany ()
{
PhoneHolder ph = new PhoneHolder (expectedPhone);
try
{
io.out0Inout1InMany ("out0Inout1InMany", expectedAddress, ph);
assertTrue("out0Inout1InMany returned bad value", equals(ph.value, returnPhone));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0Inout1InMany\nexpected phone = "
+ printPhone (returnPhone) + "\nactual phone = "
+ printPhone (ph.value) + t.getMessage());
}
}
public void testOut0InoutManyIn0 ()
{
StringHolder sh = new StringHolder ("out0InoutManyIn0");
AddressHolder ah = new AddressHolder (expectedAddress);
try
{
io.out0InoutManyIn0 (sh, ah);
assertEquals("out0InoutManyIn0 yo ho ho!", sh.value);
assertTrue("out0InoutManyIn0 returned bad value", equals (ah.value, returnAddress));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0InoutManyIn0\nexpected string = out0InoutManyIn0 yo ho ho!\nactual string = "
+ sh.value + "\nexpected address =\n" + printAddress (returnAddress)
+ "\nactual address =\n" + printAddress (ah.value) + t.getMessage());
}
}
public void testOut0InoutManyIn1 ()
{
try
{
StringHolder sh = new StringHolder ("out0InoutManyIn1");
AddressHolder ah = new AddressHolder (expectedAddress);
io.out0InoutManyIn1 (sh, ah, expectedPhone);
assertEquals("out0InoutManyIn1 yo ho ho!", sh.value);
assertTrue("testOut0InoutManyIn1 returned bad value", equals (ah.value, returnAddress));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0InoutManyIn1\n" + t.getMessage());
}
}
public void testOut0InoutManyInMany ()
{
StringHolder sh = new StringHolder ("out0InoutManyInMany");
AddressHolder ah = new AddressHolder (expectedAddress);
try
{
io.out0InoutManyInMany (sh, ah, expectedPhone, expectedNumber);
assertEquals("out0InoutManyInMany yo ho ho!", sh.value);
assertTrue(equals (ah.value, returnAddress));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out0InoutManyInMany\nexpected string = out0InoutManyInMany yo ho ho!\nactual string = "
+ sh.value + "\nexpected address =\n" + printAddress (returnAddress)
+ "\nactual address =\n" + printAddress (ah.value) + t.getMessage());
}
}
public void testOut1Inout0In0 ()
{
int ret = 0;
try
{
ret = io.out1Inout0In0 ();
assertEquals("out1Inout0In0 returned wrong value", returnNumber, ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout0In0\nexpected number = "
+ returnNumber + "\nactual number = " + ret + t.getMessage());
}
}
public void testOut1Inout0In1 ()
{
int ret = 0;
try
{
ret = io.out1Inout0In1 ("out1Inout0In1");
assertEquals(returnNumber, ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout0In1\nexpected number = "
+ returnNumber + "\nactual number = " + ret + t.getMessage());
}
}
public void testOut1Inout0InMany ()
{
int ret = 0;
try
{
ret = io.out1Inout0InMany ("out1Inout0InMany", expectedAddress);
assertEquals(returnNumber, ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout0InMany\nexpected number = "
+ returnNumber + "\nactual number = " + ret + t.getMessage());
}
}
public void testOut1Inout1In0 ()
{
StringHolder sh = new StringHolder ("out1Inout1In0");
Address ret = null;
try
{
ret = io.out1Inout1In0 (sh);
assertEquals("out1Inout1In0 yo ho ho!", sh.value);
assertTrue(equals (ret, returnAddress));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout1In0\nexpected string = out1Inout1In0 yo ho ho!\nactual string = "
+ sh.value + "\nexpected address =\n" + printAddress (returnAddress)
+ "\nactual address =\n" + printAddress (ret) + t.getMessage());
}
}
public void testOut1Inout1In1 ()
{
StringHolder sh = new StringHolder ("out1Inout1In1");
String ret = null;
try
{
ret = io.out1Inout1In1 (sh, expectedAddress);
assertEquals("out1Inout1In1 yo ho ho!", sh.value);
assertEquals("out1Inout1In1 arghhh!", ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout1In1\nexpected string1 = out1Inout1In1 yo ho ho!\nactual string1 = "
+ sh.value + "\nexpected string2 = out1Inout1In1 arghhh!\nactual string2 = " + ret);
}
}
public void testOut1Inout1InMany ()
{
StringHolder sh = new StringHolder ("out1Inout1InMany");
String ret = null;
try
{
ret = io.out1Inout1InMany (sh, expectedAddress, expectedPhone);
assertEquals("out1Inout1InMany yo ho ho!", sh.value);
assertEquals("out1Inout1InMany arghhh!", ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1Inout1InMany\nexpected string1 = out1Inout1InMany yo ho ho!\nactual string1 = "
+ sh.value + "\nexpected string2 = out1Inout1InMany arghhh!\nactual string2 = " + ret + t.getMessage());
}
}
public void testOut1InoutManyIn0 ()
{
StringHolder sh = new StringHolder ("out1InoutManyIn0");
AddressHolder ah = new AddressHolder (expectedAddress);
String ret = null;
try
{
ret = io.out1InoutManyIn0 (sh, ah);
assertEquals("out1InoutManyIn0 yo ho ho!", sh.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals("out1InoutManyIn0 arghhh!", ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1InoutManyIn0\nexpected string1 = out1InoutManyIn0 yo ho ho!\nactual string1 = "
+ sh.value + "\nexpected address = " + printAddress (returnAddress)
+ "\nactual address = " + printAddress (ah.value)
+ "\nexpected string2 = out1InoutManyIn0 arghhh!\nactual string2 = " + ret + t.getMessage());
}
}
public void testOut1InoutManyIn1 ()
{
StringHolder sh = new StringHolder ("out1InoutManyIn1");
AddressHolder ah = new AddressHolder (expectedAddress);
String ret = null;
try
{
ret = io.out1InoutManyIn1 (sh, ah, expectedPhone);
assertEquals("out1InoutManyIn1 yo ho ho!", sh.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals("out1InoutManyIn1 arghhh!", ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1InoutManyIn1\nexpected string1 = out1InoutManyIn1 yo ho ho!\nactual string1 = "
+ sh.value + "\nexpected address = " + printAddress (returnAddress)
+ "\nactual address = " + printAddress (ah.value)
+ "\nexpected string2 = out1InoutManyIn1 arghhh!\nactual string2 = " + ret + t.getMessage());
}
}
public void testOut1InoutManyInMany ()
{
StringHolder sh = new StringHolder ("out1InoutManyInMany");
AddressHolder ah = new AddressHolder (expectedAddress);
String ret = null;
try
{
ret = io.out1InoutManyInMany (sh, ah, expectedPhone, expectedNumber);
assertEquals("out1InoutManyInMany yo ho ho!", sh.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals("out1InoutManyInMany arghhh!", ret);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: out1InoutManyInMany\nexpected string1 = out1InoutManyInMany yo ho ho!\nactual string1 = "
+ sh.value + "\nexpected address = " + printAddress (returnAddress)
+ "\nactual address = " + printAddress (ah.value)
+ "\nexpected string2 = out1InoutManyInMany arghhh!\nactual string2 = " + ret + t.getMessage());
}
}
public void testOutManyInout0In0 ()
{
StringHolder sh = new StringHolder("outManyInout0In0");
AddressHolder ah = new AddressHolder (expectedAddress);
try
{
io.outManyInout0In0 (sh, ah);
assertEquals (sh.value, " arghhh!");
assertTrue(equals (ah.value, returnAddress));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout0In0\nexpected address = "
+ printAddress (returnAddress) + "\nactual address = "
+ printAddress (ah.value)
+ "\nexpected string = arghhh!\nactual string = "
+ sh.value + " " + t.getMessage());
}
}
public void testOutManyInout0In1 ()
{
IntHolder ih = new IntHolder();
StringHolder sh = new StringHolder ();
try
{
io.outManyInout0In1 ("outManyInout0In1", ih, sh);
assertEquals(returnNumber, ih.value);
assertEquals(" yo ho ho!", sh.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout0In1\nexpected string = yo ho ho!\nactual string = "
+ sh.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ih.value + " " + t.getMessage());
}
}
public void testOutManyInout0InMany ()
{
IntHolder ih = new IntHolder();
StringHolder sh = new StringHolder ();
try
{
io.outManyInout0InMany ("outManyInout0InMany", expectedAddress, ih, sh);
assertEquals(returnNumber, ih.value);
assertEquals(" yo ho ho!", sh.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout0InMany\nexpected string = yo ho ho!\nactual string = "
+ sh.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ih.value + " " + t.getMessage());
}
}
public void testOutManyInout1In0 ()
{
StringHolder shinout = new StringHolder ("outManyInout1In0");
IntHolder ihout = new IntHolder();
StringHolder shout = new StringHolder ();
try
{
io.outManyInout1In0 (shinout, ihout, shout);
assertEquals("outManyInout1In0 yo ho ho!", shinout.value);
assertEquals(returnNumber, ihout.value);
assertEquals(" yo ho ho!", shout.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout1In0\nexpected string1 = outManyInout1In0 yo ho ho!\nactual string1 = "
+ shinout.value
+ "\nexpected string2 = yo ho ho!\nactual string2 = "
+ shout.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ihout.value + " "
+ t.getMessage());
}
}
public void testOutManyInout1In1 ()
{
StringHolder shinout = new StringHolder ("outManyInout1In1");
IntHolder ihout = new IntHolder();
StringHolder shout = new StringHolder ();
try
{
io.outManyInout1In1 (shinout, expectedAddress, ihout, shout);
assertEquals("outManyInout1In1 yo ho ho!", shinout.value);
assertEquals(returnNumber, ihout.value);
assertEquals(" yo ho ho!", shout.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout1In1\nexpected string1 = outManyInout1In1 yo ho ho!\nactual string = "
+ shinout.value
+ "\nexpected string2 = yo ho ho!\nactual string2 = "
+ shout.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ihout.value + " "
+ t.getMessage());
}
}
public void testOutManyInout1InMany ()
{
PhoneHolder ph = new PhoneHolder (expectedPhone);
IntHolder ih = new IntHolder();
StringHolder sh = new StringHolder ();
try
{
io.outManyInout1InMany ("outManyInout1InMany", expectedAddress, ph, ih, sh);
assertTrue(equals (ph.value, returnPhone));
assertEquals(returnNumber, ih.value);
assertEquals(" yo ho ho!", sh.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInout1InMany\nexpected phone = "
+ printPhone (returnPhone) + "\nactual phone = "
+ printPhone (ph.value)
+ "\nexpected string = yo ho ho!\nactual string = "
+ sh.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ih.value + " " + t.getMessage());
}
}
public void testOutManyInoutManyIn0 ()
{
StringHolder shinout = new StringHolder ("outManyInoutManyIn0");
AddressHolder ah = new AddressHolder (expectedAddress);
IntHolder ihout = new IntHolder();
StringHolder shout = new StringHolder ();
try
{
io.outManyInoutManyIn0 (shinout, ah, ihout, shout);
assertEquals("outManyInoutManyIn0 yo ho ho!", shinout.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals(returnNumber, ihout.value);
assertEquals(" yo ho ho!", shout.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInoutManyIn0\nexpected string1 = outManyInoutManyIn0 yo ho ho!\nactual string1 = "
+ shinout.value + "\nexpected address = "
+ printAddress (returnAddress) + "\nactual address = "
+ printAddress (ah.value)
+ "\nexpected string2 = yo ho ho!\nactual string2 = "
+ shout.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ihout.value + " "
+ t.getMessage());
}
}
public void testOutManyInoutManyIn1 ()
{
StringHolder shinout = new StringHolder ("outManyInoutManyIn1");
AddressHolder ah = new AddressHolder (expectedAddress);
IntHolder ihout = new IntHolder();
StringHolder shout = new StringHolder ();
try
{
io.outManyInoutManyIn1 (shinout, ah, expectedPhone, ihout, shout);
assertEquals("outManyInoutManyIn1 yo ho ho!", shinout.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals(returnNumber, ihout.value);
assertEquals(" yo ho ho!", shout.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInoutManyIn1\nexpected string1 = outManyInoutManyIn1 yo ho ho!\nactual string1 = "
+ shinout.value + "\nexpected address = "
+ printAddress (returnAddress) + "\nactual address = "
+ printAddress (ah.value)
+ "\nexpected string2 = yo ho ho!\nactual string2 = "
+ shout.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ihout.value + " "
+ t.getMessage());
}
}
public void testOutManyInoutManyInMany ()
{
StringHolder shinout = new StringHolder ("outManyInoutManyInMany");
AddressHolder ah = new AddressHolder (expectedAddress);
IntHolder ihout = new IntHolder();
StringHolder shout = new StringHolder ();
try
{
io.outManyInoutManyInMany (shinout, ah, expectedPhone, expectedNumber, ihout, shout);
assertEquals("outManyInoutManyInMany yo ho ho!", shinout.value);
assertTrue(equals (ah.value, returnAddress));
assertEquals(returnNumber, ihout.value);
assertEquals(" yo ho ho!", shout.value);
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: outManyInoutManyInMany\nexpected string1 = outManyInoutManyInMany yo ho ho!\nactual string1 = "
+ shinout.value + "\nexpected address = "
+ printAddress (returnAddress) + "\nactual address = "
+ printAddress (ah.value)
+ "\nexpected string2 = yo ho ho!\nactual string2 = "
+ shout.value + "\nexpected number = " + returnNumber
+ "\nactual number = " + ihout.value + " "
+ t.getMessage());
}
}
public void testDateInout ()
{
org.apache.axis.holders.DateHolder dh = new DateHolder(expectedDate);
try
{
io.dateInout (dh);
assertTrue("Output date does not match", returnDate.equals(dh.value));
}
catch (Throwable t)
{
throw new AssertionFailedError("Test failure: dateInout: " + t.getMessage());
}
}
}
|