How to use AssertionFailedError class of junit.framework package

Best junit code snippet using junit.framework.AssertionFailedError

Source:ConfluenceServiceTestCase.java Github

copy

Full Screen

...23 }24 catch (javax.xml.rpc.ServiceException jre) {25 if(jre.getLinkedCause()!=null)26 jre.getLinkedCause().printStackTrace();27 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);28 }29 assertNotNull("binding is null", binding);30 // Time out after a minute31 binding.setTimeout(60000);32 // Test operation33 try {34 java.lang.String[] value = null;35 value = binding.getPermissions(new java.lang.String(), new java.lang.String());36 }37 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {38 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);39 }40 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {41 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);42 }43 // TBD - validate results44 }45 public void test2ConfluenceSoapServiceSearch() throws Exception {46 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;47 try {48 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)49 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();50 }51 catch (javax.xml.rpc.ServiceException jre) {52 if(jre.getLinkedCause()!=null)53 jre.getLinkedCause().printStackTrace();54 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);55 }56 assertNotNull("binding is null", binding);57 // Time out after a minute58 binding.setTimeout(60000);59 // Test operation60 try {61 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSearchResult[] value = null;62 value = binding.search(new java.lang.String(), new java.lang.String(), new com.atlassian.www._package.java_util.Map(), 0);63 }64 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {65 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);66 }67 // TBD - validate results68 }69 public void test3ConfluenceSoapServiceSearch() throws Exception {70 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;71 try {72 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)73 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();74 }75 catch (javax.xml.rpc.ServiceException jre) {76 if(jre.getLinkedCause()!=null)77 jre.getLinkedCause().printStackTrace();78 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);79 }80 assertNotNull("binding is null", binding);81 // Time out after a minute82 binding.setTimeout(60000);83 // Test operation84 try {85 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSearchResult[] value = null;86 value = binding.search(new java.lang.String(), new java.lang.String(), 0);87 }88 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {89 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);90 }91 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {92 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);93 }94 // TBD - validate results95 }96 public void test4ConfluenceSoapServiceGetComment() throws Exception {97 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;98 try {99 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)100 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();101 }102 catch (javax.xml.rpc.ServiceException jre) {103 if(jre.getLinkedCause()!=null)104 jre.getLinkedCause().printStackTrace();105 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);106 }107 assertNotNull("binding is null", binding);108 // Time out after a minute109 binding.setTimeout(60000);110 // Test operation111 try {112 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteComment value = null;113 value = binding.getComment(new java.lang.String(), 0);114 }115 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {116 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);117 }118 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {119 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);120 }121 // TBD - validate results122 }123 public void test5ConfluenceSoapServiceGetServerInfo() throws Exception {124 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;125 try {126 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)127 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();128 }129 catch (javax.xml.rpc.ServiceException jre) {130 if(jre.getLinkedCause()!=null)131 jre.getLinkedCause().printStackTrace();132 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);133 }134 assertNotNull("binding is null", binding);135 // Time out after a minute136 binding.setTimeout(60000);137 // Test operation138 try {139 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteServerInfo value = null;140 value = binding.getServerInfo(new java.lang.String());141 }142 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {143 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);144 }145 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {146 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);147 }148 // TBD - validate results149 }150 public void test6ConfluenceSoapServiceRemoveSpace() throws Exception {151 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;152 try {153 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)154 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();155 }156 catch (javax.xml.rpc.ServiceException jre) {157 if(jre.getLinkedCause()!=null)158 jre.getLinkedCause().printStackTrace();159 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);160 }161 assertNotNull("binding is null", binding);162 // Time out after a minute163 binding.setTimeout(60000);164 // Test operation165 try {166 java.lang.Boolean value = null;167 value = binding.removeSpace(new java.lang.String(), new java.lang.String());168 }169 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {170 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);171 }172 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {173 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);174 }175 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {176 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);177 }178 // TBD - validate results179 }180 public void test7ConfluenceSoapServiceGetSpace() throws Exception {181 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;182 try {183 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)184 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();185 }186 catch (javax.xml.rpc.ServiceException jre) {187 if(jre.getLinkedCause()!=null)188 jre.getLinkedCause().printStackTrace();189 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);190 }191 assertNotNull("binding is null", binding);192 // Time out after a minute193 binding.setTimeout(60000);194 // Test operation195 try {196 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpace value = null;197 value = binding.getSpace(new java.lang.String(), new java.lang.String());198 }199 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {200 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);201 }202 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {203 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);204 }205 // TBD - validate results206 }207 public void test8ConfluenceSoapServiceGetSpaces() throws Exception {208 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;209 try {210 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)211 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();212 }213 catch (javax.xml.rpc.ServiceException jre) {214 if(jre.getLinkedCause()!=null)215 jre.getLinkedCause().printStackTrace();216 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);217 }218 assertNotNull("binding is null", binding);219 // Time out after a minute220 binding.setTimeout(60000);221 // Test operation222 try {223 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpaceSummary[] value = null;224 value = binding.getSpaces(new java.lang.String());225 }226 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {227 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);228 }229 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {230 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);231 }232 // TBD - validate results233 }234 public void test9ConfluenceSoapServiceGetPages() throws Exception {235 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;236 try {237 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)238 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();239 }240 catch (javax.xml.rpc.ServiceException jre) {241 if(jre.getLinkedCause()!=null)242 jre.getLinkedCause().printStackTrace();243 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);244 }245 assertNotNull("binding is null", binding);246 // Time out after a minute247 binding.setTimeout(60000);248 // Test operation249 try {250 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePageSummary[] value = null;251 value = binding.getPages(new java.lang.String(), new java.lang.String());252 }253 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {254 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);255 }256 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {257 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);258 }259 // TBD - validate results260 }261 public void test10ConfluenceSoapServiceAddComment() throws Exception {262 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;263 try {264 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)265 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();266 }267 catch (javax.xml.rpc.ServiceException jre) {268 if(jre.getLinkedCause()!=null)269 jre.getLinkedCause().printStackTrace();270 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);271 }272 assertNotNull("binding is null", binding);273 // Time out after a minute274 binding.setTimeout(60000);275 // Test operation276 try {277 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteComment value = null;278 value = binding.addComment(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteComment());279 }280 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {281 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);282 }283 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {284 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);285 }286 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {287 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);288 }289 // TBD - validate results290 }291 public void test11ConfluenceSoapServiceGetUser() throws Exception {292 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;293 try {294 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)295 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();296 }297 catch (javax.xml.rpc.ServiceException jre) {298 if(jre.getLinkedCause()!=null)299 jre.getLinkedCause().printStackTrace();300 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);301 }302 assertNotNull("binding is null", binding);303 // Time out after a minute304 binding.setTimeout(60000);305 // Test operation306 try {307 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteUser value = null;308 value = binding.getUser(new java.lang.String(), new java.lang.String());309 }310 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {311 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);312 }313 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {314 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);315 }316 // TBD - validate results317 }318 public void test12ConfluenceSoapServiceRemoveGroup() throws Exception {319 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;320 try {321 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)322 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();323 }324 catch (javax.xml.rpc.ServiceException jre) {325 if(jre.getLinkedCause()!=null)326 jre.getLinkedCause().printStackTrace();327 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);328 }329 assertNotNull("binding is null", binding);330 // Time out after a minute331 binding.setTimeout(60000);332 // Test operation333 try {334 boolean value = false;335 value = binding.removeGroup(new java.lang.String(), new java.lang.String(), new java.lang.String());336 }337 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {338 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);339 }340 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {341 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);342 }343 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {344 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);345 }346 // TBD - validate results347 }348 public void test13ConfluenceSoapServiceGetPage() throws Exception {349 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;350 try {351 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)352 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();353 }354 catch (javax.xml.rpc.ServiceException jre) {355 if(jre.getLinkedCause()!=null)356 jre.getLinkedCause().printStackTrace();357 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);358 }359 assertNotNull("binding is null", binding);360 // Time out after a minute361 binding.setTimeout(60000);362 // Test operation363 try {364 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePage value = null;365 value = binding.getPage(new java.lang.String(), 0);366 }367 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {368 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);369 }370 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {371 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);372 }373 // TBD - validate results374 }375 public void test14ConfluenceSoapServiceGetPage() throws Exception {376 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;377 try {378 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)379 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();380 }381 catch (javax.xml.rpc.ServiceException jre) {382 if(jre.getLinkedCause()!=null)383 jre.getLinkedCause().printStackTrace();384 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);385 }386 assertNotNull("binding is null", binding);387 // Time out after a minute388 binding.setTimeout(60000);389 // Test operation390 try {391 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePage value = null;392 value = binding.getPage(new java.lang.String(), new java.lang.String(), new java.lang.String());393 }394 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {395 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);396 }397 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {398 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);399 }400 // TBD - validate results401 }402 public void test15ConfluenceSoapServiceGetDescendents() throws Exception {403 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;404 try {405 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)406 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();407 }408 catch (javax.xml.rpc.ServiceException jre) {409 if(jre.getLinkedCause()!=null)410 jre.getLinkedCause().printStackTrace();411 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);412 }413 assertNotNull("binding is null", binding);414 // Time out after a minute415 binding.setTimeout(60000);416 // Test operation417 try {418 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePageSummary[] value = null;419 value = binding.getDescendents(new java.lang.String(), 0);420 }421 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {422 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);423 }424 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {425 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);426 }427 // TBD - validate results428 }429 public void test16ConfluenceSoapServiceGetAttachments() throws Exception {430 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;431 try {432 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)433 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();434 }435 catch (javax.xml.rpc.ServiceException jre) {436 if(jre.getLinkedCause()!=null)437 jre.getLinkedCause().printStackTrace();438 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);439 }440 assertNotNull("binding is null", binding);441 // Time out after a minute442 binding.setTimeout(60000);443 // Test operation444 try {445 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment[] value = null;446 value = binding.getAttachments(new java.lang.String(), 0);447 }448 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {449 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);450 }451 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {452 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);453 }454 // TBD - validate results455 }456 public void test17ConfluenceSoapServiceAddAttachment() throws Exception {457 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;458 try {459 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)460 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();461 }462 catch (javax.xml.rpc.ServiceException jre) {463 if(jre.getLinkedCause()!=null)464 jre.getLinkedCause().printStackTrace();465 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);466 }467 assertNotNull("binding is null", binding);468 // Time out after a minute469 binding.setTimeout(60000);470 // Test operation471 try {472 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment value = null;473 value = binding.addAttachment(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment(), new byte[0]);474 }475 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {476 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);477 }478 // TBD - validate results479 }480 public void test18ConfluenceSoapServiceAddAttachment() throws Exception {481 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;482 try {483 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)484 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();485 }486 catch (javax.xml.rpc.ServiceException jre) {487 if(jre.getLinkedCause()!=null)488 jre.getLinkedCause().printStackTrace();489 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);490 }491 assertNotNull("binding is null", binding);492 // Time out after a minute493 binding.setTimeout(60000);494 // Test operation495 try {496 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment value = null;497 value = binding.addAttachment(new java.lang.String(), 0, new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment(), new byte[0]);498 }499 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {500 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);501 }502 // TBD - validate results503 }504 public void test19ConfluenceSoapServiceRemoveAttachment() throws Exception {505 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;506 try {507 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)508 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();509 }510 catch (javax.xml.rpc.ServiceException jre) {511 if(jre.getLinkedCause()!=null)512 jre.getLinkedCause().printStackTrace();513 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);514 }515 assertNotNull("binding is null", binding);516 // Time out after a minute517 binding.setTimeout(60000);518 // Test operation519 try {520 boolean value = false;521 value = binding.removeAttachment(new java.lang.String(), 0, new java.lang.String());522 }523 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {524 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);525 }526 // TBD - validate results527 }528 public void test20ConfluenceSoapServiceGetChildren() throws Exception {529 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;530 try {531 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)532 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();533 }534 catch (javax.xml.rpc.ServiceException jre) {535 if(jre.getLinkedCause()!=null)536 jre.getLinkedCause().printStackTrace();537 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);538 }539 assertNotNull("binding is null", binding);540 // Time out after a minute541 binding.setTimeout(60000);542 // Test operation543 try {544 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePageSummary[] value = null;545 value = binding.getChildren(new java.lang.String(), 0);546 }547 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {548 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);549 }550 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {551 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);552 }553 // TBD - validate results554 }555 public void test21ConfluenceSoapServiceGetAncestors() throws Exception {556 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;557 try {558 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)559 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();560 }561 catch (javax.xml.rpc.ServiceException jre) {562 if(jre.getLinkedCause()!=null)563 jre.getLinkedCause().printStackTrace();564 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);565 }566 assertNotNull("binding is null", binding);567 // Time out after a minute568 binding.setTimeout(60000);569 // Test operation570 try {571 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePageSummary[] value = null;572 value = binding.getAncestors(new java.lang.String(), 0);573 }574 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {575 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);576 }577 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {578 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);579 }580 // TBD - validate results581 }582 public void test22ConfluenceSoapServiceGetComments() throws Exception {583 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;584 try {585 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)586 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();587 }588 catch (javax.xml.rpc.ServiceException jre) {589 if(jre.getLinkedCause()!=null)590 jre.getLinkedCause().printStackTrace();591 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);592 }593 assertNotNull("binding is null", binding);594 // Time out after a minute595 binding.setTimeout(60000);596 // Test operation597 try {598 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteComment[] value = null;599 value = binding.getComments(new java.lang.String(), 0);600 }601 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {602 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);603 }604 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {605 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);606 }607 // TBD - validate results608 }609 public void test23ConfluenceSoapServiceRemoveComment() throws Exception {610 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;611 try {612 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)613 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();614 }615 catch (javax.xml.rpc.ServiceException jre) {616 if(jre.getLinkedCause()!=null)617 jre.getLinkedCause().printStackTrace();618 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);619 }620 assertNotNull("binding is null", binding);621 // Time out after a minute622 binding.setTimeout(60000);623 // Test operation624 try {625 boolean value = false;626 value = binding.removeComment(new java.lang.String(), 0);627 }628 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {629 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);630 }631 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {632 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);633 }634 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {635 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);636 }637 // TBD - validate results638 }639 public void test24ConfluenceSoapServiceAddUser() throws Exception {640 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;641 try {642 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)643 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();644 }645 catch (javax.xml.rpc.ServiceException jre) {646 if(jre.getLinkedCause()!=null)647 jre.getLinkedCause().printStackTrace();648 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);649 }650 assertNotNull("binding is null", binding);651 // Time out after a minute652 binding.setTimeout(60000);653 // Test operation654 try {655 binding.addUser(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteUser(), new java.lang.String());656 }657 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {658 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);659 }660 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {661 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);662 }663 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {664 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);665 }666 // TBD - validate results667 }668 public void test25ConfluenceSoapServiceAddGroup() throws Exception {669 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;670 try {671 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)672 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();673 }674 catch (javax.xml.rpc.ServiceException jre) {675 if(jre.getLinkedCause()!=null)676 jre.getLinkedCause().printStackTrace();677 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);678 }679 assertNotNull("binding is null", binding);680 // Time out after a minute681 binding.setTimeout(60000);682 // Test operation683 try {684 boolean value = false;685 value = binding.addGroup(new java.lang.String(), new java.lang.String());686 }687 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {688 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);689 }690 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {691 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);692 }693 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {694 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);695 }696 // TBD - validate results697 }698 public void test26ConfluenceSoapServiceRemoveUser() throws Exception {699 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;700 try {701 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)702 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();703 }704 catch (javax.xml.rpc.ServiceException jre) {705 if(jre.getLinkedCause()!=null)706 jre.getLinkedCause().printStackTrace();707 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);708 }709 assertNotNull("binding is null", binding);710 // Time out after a minute711 binding.setTimeout(60000);712 // Test operation713 try {714 boolean value = false;715 value = binding.removeUser(new java.lang.String(), new java.lang.String());716 }717 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {718 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);719 }720 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {721 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);722 }723 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {724 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);725 }726 // TBD - validate results727 }728 public void test27ConfluenceSoapServiceDeactivateUser() throws Exception {729 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;730 try {731 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)732 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();733 }734 catch (javax.xml.rpc.ServiceException jre) {735 if(jre.getLinkedCause()!=null)736 jre.getLinkedCause().printStackTrace();737 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);738 }739 assertNotNull("binding is null", binding);740 // Time out after a minute741 binding.setTimeout(60000);742 // Test operation743 try {744 boolean value = false;745 value = binding.deactivateUser(new java.lang.String(), new java.lang.String());746 }747 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {748 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);749 }750 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {751 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);752 }753 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {754 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);755 }756 // TBD - validate results757 }758 public void test28ConfluenceSoapServiceReactivateUser() throws Exception {759 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;760 try {761 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)762 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();763 }764 catch (javax.xml.rpc.ServiceException jre) {765 if(jre.getLinkedCause()!=null)766 jre.getLinkedCause().printStackTrace();767 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);768 }769 assertNotNull("binding is null", binding);770 // Time out after a minute771 binding.setTimeout(60000);772 // Test operation773 try {774 boolean value = false;775 value = binding.reactivateUser(new java.lang.String(), new java.lang.String());776 }777 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {778 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);779 }780 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {781 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);782 }783 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {784 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);785 }786 // TBD - validate results787 }788 public void test29ConfluenceSoapServiceGetGroups() throws Exception {789 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;790 try {791 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)792 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();793 }794 catch (javax.xml.rpc.ServiceException jre) {795 if(jre.getLinkedCause()!=null)796 jre.getLinkedCause().printStackTrace();797 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);798 }799 assertNotNull("binding is null", binding);800 // Time out after a minute801 binding.setTimeout(60000);802 // Test operation803 try {804 java.lang.String[] value = null;805 value = binding.getGroups(new java.lang.String());806 }807 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {808 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);809 }810 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {811 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);812 }813 // TBD - validate results814 }815 public void test30ConfluenceSoapServiceGetRelatedLabels() throws Exception {816 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;817 try {818 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)819 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();820 }821 catch (javax.xml.rpc.ServiceException jre) {822 if(jre.getLinkedCause()!=null)823 jre.getLinkedCause().printStackTrace();824 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);825 }826 assertNotNull("binding is null", binding);827 // Time out after a minute828 binding.setTimeout(60000);829 // Test operation830 try {831 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;832 value = binding.getRelatedLabels(new java.lang.String(), new java.lang.String(), 0);833 }834 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {835 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);836 }837 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {838 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);839 }840 // TBD - validate results841 }842 public void test31ConfluenceSoapServiceGetRelatedLabelsInSpace() throws Exception {843 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;844 try {845 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)846 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();847 }848 catch (javax.xml.rpc.ServiceException jre) {849 if(jre.getLinkedCause()!=null)850 jre.getLinkedCause().printStackTrace();851 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);852 }853 assertNotNull("binding is null", binding);854 // Time out after a minute855 binding.setTimeout(60000);856 // Test operation857 try {858 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;859 value = binding.getRelatedLabelsInSpace(new java.lang.String(), new java.lang.String(), new java.lang.String(), 0);860 }861 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {862 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);863 }864 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {865 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);866 }867 // TBD - validate results868 }869 public void test32ConfluenceSoapServiceGetSpacesContainingContentWithLabel() throws Exception {870 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;871 try {872 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)873 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();874 }875 catch (javax.xml.rpc.ServiceException jre) {876 if(jre.getLinkedCause()!=null)877 jre.getLinkedCause().printStackTrace();878 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);879 }880 assertNotNull("binding is null", binding);881 // Time out after a minute882 binding.setTimeout(60000);883 // Test operation884 try {885 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpace[] value = null;886 value = binding.getSpacesContainingContentWithLabel(new java.lang.String(), new java.lang.String());887 }888 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {889 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);890 }891 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {892 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);893 }894 // TBD - validate results895 }896 public void test33ConfluenceSoapServiceGetRecentlyUsedLabelsInSpace() throws Exception {897 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;898 try {899 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)900 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();901 }902 catch (javax.xml.rpc.ServiceException jre) {903 if(jre.getLinkedCause()!=null)904 jre.getLinkedCause().printStackTrace();905 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);906 }907 assertNotNull("binding is null", binding);908 // Time out after a minute909 binding.setTimeout(60000);910 // Test operation911 try {912 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;913 value = binding.getRecentlyUsedLabelsInSpace(new java.lang.String(), new java.lang.String(), 0);914 }915 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {916 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);917 }918 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {919 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);920 }921 // TBD - validate results922 }923 public void test34ConfluenceSoapServiceGetRecentlyUsedLabels() throws Exception {924 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;925 try {926 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)927 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();928 }929 catch (javax.xml.rpc.ServiceException jre) {930 if(jre.getLinkedCause()!=null)931 jre.getLinkedCause().printStackTrace();932 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);933 }934 assertNotNull("binding is null", binding);935 // Time out after a minute936 binding.setTimeout(60000);937 // Test operation938 try {939 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;940 value = binding.getRecentlyUsedLabels(new java.lang.String(), 0);941 }942 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {943 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);944 }945 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {946 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);947 }948 // TBD - validate results949 }950 public void test35ConfluenceSoapServiceGetSpacesWithLabel() throws Exception {951 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;952 try {953 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)954 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();955 }956 catch (javax.xml.rpc.ServiceException jre) {957 if(jre.getLinkedCause()!=null)958 jre.getLinkedCause().printStackTrace();959 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);960 }961 assertNotNull("binding is null", binding);962 // Time out after a minute963 binding.setTimeout(60000);964 // Test operation965 try {966 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpace[] value = null;967 value = binding.getSpacesWithLabel(new java.lang.String(), new java.lang.String());968 }969 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {970 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);971 }972 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {973 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);974 }975 // TBD - validate results976 }977 public void test36ConfluenceSoapServiceGetLabelsByDetail() throws Exception {978 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;979 try {980 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)981 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();982 }983 catch (javax.xml.rpc.ServiceException jre) {984 if(jre.getLinkedCause()!=null)985 jre.getLinkedCause().printStackTrace();986 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);987 }988 assertNotNull("binding is null", binding);989 // Time out after a minute990 binding.setTimeout(60000);991 // Test operation992 try {993 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;994 value = binding.getLabelsByDetail(new java.lang.String(), new java.lang.String(), new java.lang.String(), new java.lang.String(), new java.lang.String());995 }996 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {997 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);998 }999 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1000 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1001 }1002 // TBD - validate results1003 }1004 public void test37ConfluenceSoapServiceGetMostPopularLabels() throws Exception {1005 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1006 try {1007 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1008 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1009 }1010 catch (javax.xml.rpc.ServiceException jre) {1011 if(jre.getLinkedCause()!=null)1012 jre.getLinkedCause().printStackTrace();1013 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1014 }1015 assertNotNull("binding is null", binding);1016 // Time out after a minute1017 binding.setTimeout(60000);1018 // Test operation1019 try {1020 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;1021 value = binding.getMostPopularLabels(new java.lang.String(), 0);1022 }1023 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1024 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1025 }1026 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1027 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1028 }1029 // TBD - validate results1030 }1031 public void test38ConfluenceSoapServiceGetMostPopularLabelsInSpace() throws Exception {1032 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1033 try {1034 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1035 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1036 }1037 catch (javax.xml.rpc.ServiceException jre) {1038 if(jre.getLinkedCause()!=null)1039 jre.getLinkedCause().printStackTrace();1040 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1041 }1042 assertNotNull("binding is null", binding);1043 // Time out after a minute1044 binding.setTimeout(60000);1045 // Test operation1046 try {1047 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;1048 value = binding.getMostPopularLabelsInSpace(new java.lang.String(), new java.lang.String(), 0);1049 }1050 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1051 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1052 }1053 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1054 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1055 }1056 // TBD - validate results1057 }1058 public void test39ConfluenceSoapServiceGetAttachment() throws Exception {1059 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1060 try {1061 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1062 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1063 }1064 catch (javax.xml.rpc.ServiceException jre) {1065 if(jre.getLinkedCause()!=null)1066 jre.getLinkedCause().printStackTrace();1067 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1068 }1069 assertNotNull("binding is null", binding);1070 // Time out after a minute1071 binding.setTimeout(60000);1072 // Test operation1073 try {1074 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteAttachment value = null;1075 value = binding.getAttachment(new java.lang.String(), 0, new java.lang.String(), 0);1076 }1077 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1078 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1079 }1080 // TBD - validate results1081 }1082 public void test40ConfluenceSoapServiceGetAttachmentData() throws Exception {1083 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1084 try {1085 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1086 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1087 }1088 catch (javax.xml.rpc.ServiceException jre) {1089 if(jre.getLinkedCause()!=null)1090 jre.getLinkedCause().printStackTrace();1091 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1092 }1093 assertNotNull("binding is null", binding);1094 // Time out after a minute1095 binding.setTimeout(60000);1096 // Test operation1097 try {1098 byte[] value = null;1099 value = binding.getAttachmentData(new java.lang.String(), 0, new java.lang.String(), 0);1100 }1101 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1102 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1103 }1104 // TBD - validate results1105 }1106 public void test41ConfluenceSoapServiceMoveAttachment() throws Exception {1107 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1108 try {1109 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1110 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1111 }1112 catch (javax.xml.rpc.ServiceException jre) {1113 if(jre.getLinkedCause()!=null)1114 jre.getLinkedCause().printStackTrace();1115 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1116 }1117 assertNotNull("binding is null", binding);1118 // Time out after a minute1119 binding.setTimeout(60000);1120 // Test operation1121 try {1122 boolean value = false;1123 value = binding.moveAttachment(new java.lang.String(), 0, new java.lang.String(), 0, new java.lang.String());1124 }1125 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1126 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1127 }1128 // TBD - validate results1129 }1130 public void test42ConfluenceSoapServiceRemoveAllPermissionsForGroup() throws Exception {1131 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1132 try {1133 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1134 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1135 }1136 catch (javax.xml.rpc.ServiceException jre) {1137 if(jre.getLinkedCause()!=null)1138 jre.getLinkedCause().printStackTrace();1139 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1140 }1141 assertNotNull("binding is null", binding);1142 // Time out after a minute1143 binding.setTimeout(60000);1144 // Test operation1145 try {1146 boolean value = false;1147 value = binding.removeAllPermissionsForGroup(new java.lang.String(), new java.lang.String());1148 }1149 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1150 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1151 }1152 // TBD - validate results1153 }1154 public void test43ConfluenceSoapServiceLogin() throws Exception {1155 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1156 try {1157 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1158 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1159 }1160 catch (javax.xml.rpc.ServiceException jre) {1161 if(jre.getLinkedCause()!=null)1162 jre.getLinkedCause().printStackTrace();1163 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1164 }1165 assertNotNull("binding is null", binding);1166 // Time out after a minute1167 binding.setTimeout(60000);1168 // Test operation1169 try {1170 java.lang.String value = null;1171 value = binding.login(new java.lang.String(), new java.lang.String());1172 }1173 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1174 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1175 }1176 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.AuthenticationFailedException e2) {1177 throw new junit.framework.AssertionFailedError("AuthenticationFailedException Exception caught: " + e2);1178 }1179 // TBD - validate results1180 }1181 public void test44ConfluenceSoapServiceLogout() throws Exception {1182 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1183 try {1184 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1185 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1186 }1187 catch (javax.xml.rpc.ServiceException jre) {1188 if(jre.getLinkedCause()!=null)1189 jre.getLinkedCause().printStackTrace();1190 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1191 }1192 assertNotNull("binding is null", binding);1193 // Time out after a minute1194 binding.setTimeout(60000);1195 // Test operation1196 try {1197 boolean value = false;1198 value = binding.logout(new java.lang.String());1199 }1200 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1201 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1202 }1203 // TBD - validate results1204 }1205 public void test45ConfluenceSoapServiceExportSpace() throws Exception {1206 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1207 try {1208 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1209 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1210 }1211 catch (javax.xml.rpc.ServiceException jre) {1212 if(jre.getLinkedCause()!=null)1213 jre.getLinkedCause().printStackTrace();1214 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1215 }1216 assertNotNull("binding is null", binding);1217 // Time out after a minute1218 binding.setTimeout(60000);1219 // Test operation1220 try {1221 java.lang.String value = null;1222 value = binding.exportSpace(new java.lang.String(), new java.lang.String(), new java.lang.String());1223 }1224 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1225 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1226 }1227 // TBD - validate results1228 }1229 public void test46ConfluenceSoapServiceAddSpace() throws Exception {1230 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1231 try {1232 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1233 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1234 }1235 catch (javax.xml.rpc.ServiceException jre) {1236 if(jre.getLinkedCause()!=null)1237 jre.getLinkedCause().printStackTrace();1238 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1239 }1240 assertNotNull("binding is null", binding);1241 // Time out after a minute1242 binding.setTimeout(60000);1243 // Test operation1244 try {1245 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpace value = null;1246 value = binding.addSpace(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSpace());1247 }1248 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1249 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1250 }1251 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1252 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1253 }1254 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1255 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1256 }1257 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.AlreadyExistsException e4) {1258 throw new junit.framework.AssertionFailedError("AlreadyExistsException Exception caught: " + e4);1259 }1260 // TBD - validate results1261 }1262 public void test47ConfluenceSoapServiceGetActiveUsers() throws Exception {1263 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1264 try {1265 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1266 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1267 }1268 catch (javax.xml.rpc.ServiceException jre) {1269 if(jre.getLinkedCause()!=null)1270 jre.getLinkedCause().printStackTrace();1271 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1272 }1273 assertNotNull("binding is null", binding);1274 // Time out after a minute1275 binding.setTimeout(60000);1276 // Test operation1277 try {1278 java.lang.String[] value = null;1279 value = binding.getActiveUsers(new java.lang.String(), true);1280 }1281 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1282 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1283 }1284 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1285 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1286 }1287 // TBD - validate results1288 }1289 public void test48ConfluenceSoapServiceGetPageHistory() throws Exception {1290 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1291 try {1292 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1293 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1294 }1295 catch (javax.xml.rpc.ServiceException jre) {1296 if(jre.getLinkedCause()!=null)1297 jre.getLinkedCause().printStackTrace();1298 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1299 }1300 assertNotNull("binding is null", binding);1301 // Time out after a minute1302 binding.setTimeout(60000);1303 // Test operation1304 try {1305 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePageHistory[] value = null;1306 value = binding.getPageHistory(new java.lang.String(), 0);1307 }1308 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1309 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1310 }1311 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1312 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1313 }1314 // TBD - validate results1315 }1316 public void test49ConfluenceSoapServiceRemovePage() throws Exception {1317 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1318 try {1319 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1320 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1321 }1322 catch (javax.xml.rpc.ServiceException jre) {1323 if(jre.getLinkedCause()!=null)1324 jre.getLinkedCause().printStackTrace();1325 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1326 }1327 assertNotNull("binding is null", binding);1328 // Time out after a minute1329 binding.setTimeout(60000);1330 // Test operation1331 try {1332 java.lang.Boolean value = null;1333 value = binding.removePage(new java.lang.String(), 0);1334 }1335 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1336 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1337 }1338 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1339 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1340 }1341 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1342 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1343 }1344 // TBD - validate results1345 }1346 public void test50ConfluenceSoapServiceRenderContent() throws Exception {1347 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1348 try {1349 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1350 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1351 }1352 catch (javax.xml.rpc.ServiceException jre) {1353 if(jre.getLinkedCause()!=null)1354 jre.getLinkedCause().printStackTrace();1355 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1356 }1357 assertNotNull("binding is null", binding);1358 // Time out after a minute1359 binding.setTimeout(60000);1360 // Test operation1361 try {1362 java.lang.String value = null;1363 value = binding.renderContent(new java.lang.String(), new java.lang.String(), 0, new java.lang.String());1364 }1365 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1366 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1367 }1368 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1369 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1370 }1371 // TBD - validate results1372 }1373 public void test51ConfluenceSoapServiceRenderContent() throws Exception {1374 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1375 try {1376 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1377 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1378 }1379 catch (javax.xml.rpc.ServiceException jre) {1380 if(jre.getLinkedCause()!=null)1381 jre.getLinkedCause().printStackTrace();1382 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1383 }1384 assertNotNull("binding is null", binding);1385 // Time out after a minute1386 binding.setTimeout(60000);1387 // Test operation1388 try {1389 java.lang.String value = null;1390 value = binding.renderContent(new java.lang.String(), new java.lang.String(), 0, new java.lang.String(), new com.atlassian.www._package.java_util.Map());1391 }1392 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1393 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1394 }1395 // TBD - validate results1396 }1397 public void test52ConfluenceSoapServiceStorePage() throws Exception {1398 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1399 try {1400 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1401 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1402 }1403 catch (javax.xml.rpc.ServiceException jre) {1404 if(jre.getLinkedCause()!=null)1405 jre.getLinkedCause().printStackTrace();1406 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1407 }1408 assertNotNull("binding is null", binding);1409 // Time out after a minute1410 binding.setTimeout(60000);1411 // Test operation1412 try {1413 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePage value = null;1414 value = binding.storePage(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePage());1415 }1416 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1417 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1418 }1419 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1420 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1421 }1422 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1423 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1424 }1425 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.VersionMismatchException e4) {1426 throw new junit.framework.AssertionFailedError("VersionMismatchException Exception caught: " + e4);1427 }1428 // TBD - validate results1429 }1430 public void test53ConfluenceSoapServiceGetSpaceLevelPermissions() throws Exception {1431 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1432 try {1433 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1434 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1435 }1436 catch (javax.xml.rpc.ServiceException jre) {1437 if(jre.getLinkedCause()!=null)1438 jre.getLinkedCause().printStackTrace();1439 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1440 }1441 assertNotNull("binding is null", binding);1442 // Time out after a minute1443 binding.setTimeout(60000);1444 // Test operation1445 try {1446 java.lang.String[] value = null;1447 value = binding.getSpaceLevelPermissions(new java.lang.String());1448 }1449 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1450 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1451 }1452 // TBD - validate results1453 }1454 public void test54ConfluenceSoapServiceAddPermissionToSpace() throws Exception {1455 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1456 try {1457 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1458 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1459 }1460 catch (javax.xml.rpc.ServiceException jre) {1461 if(jre.getLinkedCause()!=null)1462 jre.getLinkedCause().printStackTrace();1463 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1464 }1465 assertNotNull("binding is null", binding);1466 // Time out after a minute1467 binding.setTimeout(60000);1468 // Test operation1469 try {1470 boolean value = false;1471 value = binding.addPermissionToSpace(new java.lang.String(), new java.lang.String(), new java.lang.String(), new java.lang.String());1472 }1473 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1474 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1475 }1476 // TBD - validate results1477 }1478 public void test55ConfluenceSoapServiceAddPermissionsToSpace() throws Exception {1479 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1480 try {1481 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1482 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1483 }1484 catch (javax.xml.rpc.ServiceException jre) {1485 if(jre.getLinkedCause()!=null)1486 jre.getLinkedCause().printStackTrace();1487 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1488 }1489 assertNotNull("binding is null", binding);1490 // Time out after a minute1491 binding.setTimeout(60000);1492 // Test operation1493 try {1494 boolean value = false;1495 value = binding.addPermissionsToSpace(new java.lang.String(), new java.lang.String[0], new java.lang.String(), new java.lang.String());1496 }1497 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1498 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1499 }1500 // TBD - validate results1501 }1502 public void test56ConfluenceSoapServiceRemovePermissionFromSpace() throws Exception {1503 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1504 try {1505 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1506 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1507 }1508 catch (javax.xml.rpc.ServiceException jre) {1509 if(jre.getLinkedCause()!=null)1510 jre.getLinkedCause().printStackTrace();1511 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1512 }1513 assertNotNull("binding is null", binding);1514 // Time out after a minute1515 binding.setTimeout(60000);1516 // Test operation1517 try {1518 boolean value = false;1519 value = binding.removePermissionFromSpace(new java.lang.String(), new java.lang.String(), new java.lang.String(), new java.lang.String());1520 }1521 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1522 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1523 }1524 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1525 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1526 }1527 // TBD - validate results1528 }1529 public void test57ConfluenceSoapServiceEditUser() throws Exception {1530 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1531 try {1532 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1533 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1534 }1535 catch (javax.xml.rpc.ServiceException jre) {1536 if(jre.getLinkedCause()!=null)1537 jre.getLinkedCause().printStackTrace();1538 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1539 }1540 assertNotNull("binding is null", binding);1541 // Time out after a minute1542 binding.setTimeout(60000);1543 // Test operation1544 try {1545 boolean value = false;1546 value = binding.editUser(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteUser());1547 }1548 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1549 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1550 }1551 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1552 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1553 }1554 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1555 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1556 }1557 // TBD - validate results1558 }1559 public void test58ConfluenceSoapServiceGetUserGroups() throws Exception {1560 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1561 try {1562 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1563 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1564 }1565 catch (javax.xml.rpc.ServiceException jre) {1566 if(jre.getLinkedCause()!=null)1567 jre.getLinkedCause().printStackTrace();1568 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1569 }1570 assertNotNull("binding is null", binding);1571 // Time out after a minute1572 binding.setTimeout(60000);1573 // Test operation1574 try {1575 java.lang.String[] value = null;1576 value = binding.getUserGroups(new java.lang.String(), new java.lang.String());1577 }1578 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1579 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1580 }1581 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1582 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1583 }1584 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1585 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1586 }1587 // TBD - validate results1588 }1589 public void test59ConfluenceSoapServiceAddUserToGroup() throws Exception {1590 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1591 try {1592 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1593 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1594 }1595 catch (javax.xml.rpc.ServiceException jre) {1596 if(jre.getLinkedCause()!=null)1597 jre.getLinkedCause().printStackTrace();1598 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1599 }1600 assertNotNull("binding is null", binding);1601 // Time out after a minute1602 binding.setTimeout(60000);1603 // Test operation1604 try {1605 boolean value = false;1606 value = binding.addUserToGroup(new java.lang.String(), new java.lang.String(), new java.lang.String());1607 }1608 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1609 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1610 }1611 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1612 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1613 }1614 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1615 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1616 }1617 // TBD - validate results1618 }1619 public void test60ConfluenceSoapServiceRemoveUserFromGroup() throws Exception {1620 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1621 try {1622 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1623 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1624 }1625 catch (javax.xml.rpc.ServiceException jre) {1626 if(jre.getLinkedCause()!=null)1627 jre.getLinkedCause().printStackTrace();1628 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1629 }1630 assertNotNull("binding is null", binding);1631 // Time out after a minute1632 binding.setTimeout(60000);1633 // Test operation1634 try {1635 boolean value = false;1636 value = binding.removeUserFromGroup(new java.lang.String(), new java.lang.String(), new java.lang.String());1637 }1638 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1639 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1640 }1641 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1642 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1643 }1644 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1645 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1646 }1647 // TBD - validate results1648 }1649 public void test61ConfluenceSoapServiceChangeMyPassword() throws Exception {1650 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1651 try {1652 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1653 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1654 }1655 catch (javax.xml.rpc.ServiceException jre) {1656 if(jre.getLinkedCause()!=null)1657 jre.getLinkedCause().printStackTrace();1658 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1659 }1660 assertNotNull("binding is null", binding);1661 // Time out after a minute1662 binding.setTimeout(60000);1663 // Test operation1664 try {1665 boolean value = false;1666 value = binding.changeMyPassword(new java.lang.String(), new java.lang.String(), new java.lang.String());1667 }1668 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1669 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1670 }1671 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1672 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1673 }1674 // TBD - validate results1675 }1676 public void test62ConfluenceSoapServiceChangeUserPassword() throws Exception {1677 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1678 try {1679 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1680 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1681 }1682 catch (javax.xml.rpc.ServiceException jre) {1683 if(jre.getLinkedCause()!=null)1684 jre.getLinkedCause().printStackTrace();1685 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1686 }1687 assertNotNull("binding is null", binding);1688 // Time out after a minute1689 binding.setTimeout(60000);1690 // Test operation1691 try {1692 boolean value = false;1693 value = binding.changeUserPassword(new java.lang.String(), new java.lang.String(), new java.lang.String());1694 }1695 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1696 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1697 }1698 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1699 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1700 }1701 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1702 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1703 }1704 // TBD - validate results1705 }1706 public void test63ConfluenceSoapServiceSetUserInformation() throws Exception {1707 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1708 try {1709 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1710 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1711 }1712 catch (javax.xml.rpc.ServiceException jre) {1713 if(jre.getLinkedCause()!=null)1714 jre.getLinkedCause().printStackTrace();1715 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1716 }1717 assertNotNull("binding is null", binding);1718 // Time out after a minute1719 binding.setTimeout(60000);1720 // Test operation1721 try {1722 boolean value = false;1723 value = binding.setUserInformation(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteUserInformation());1724 }1725 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1726 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1727 }1728 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1729 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1730 }1731 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1732 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1733 }1734 // TBD - validate results1735 }1736 public void test64ConfluenceSoapServiceGetUserInformation() throws Exception {1737 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1738 try {1739 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1740 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1741 }1742 catch (javax.xml.rpc.ServiceException jre) {1743 if(jre.getLinkedCause()!=null)1744 jre.getLinkedCause().printStackTrace();1745 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1746 }1747 assertNotNull("binding is null", binding);1748 // Time out after a minute1749 binding.setTimeout(60000);1750 // Test operation1751 try {1752 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteUserInformation value = null;1753 value = binding.getUserInformation(new java.lang.String(), new java.lang.String());1754 }1755 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1756 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1757 }1758 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1759 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1760 }1761 // TBD - validate results1762 }1763 public void test65ConfluenceSoapServiceHasUser() throws Exception {1764 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1765 try {1766 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1767 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1768 }1769 catch (javax.xml.rpc.ServiceException jre) {1770 if(jre.getLinkedCause()!=null)1771 jre.getLinkedCause().printStackTrace();1772 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1773 }1774 assertNotNull("binding is null", binding);1775 // Time out after a minute1776 binding.setTimeout(60000);1777 // Test operation1778 try {1779 boolean value = false;1780 value = binding.hasUser(new java.lang.String(), new java.lang.String());1781 }1782 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1783 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1784 }1785 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1786 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1787 }1788 // TBD - validate results1789 }1790 public void test66ConfluenceSoapServiceHasGroup() throws Exception {1791 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1792 try {1793 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1794 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1795 }1796 catch (javax.xml.rpc.ServiceException jre) {1797 if(jre.getLinkedCause()!=null)1798 jre.getLinkedCause().printStackTrace();1799 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1800 }1801 assertNotNull("binding is null", binding);1802 // Time out after a minute1803 binding.setTimeout(60000);1804 // Test operation1805 try {1806 boolean value = false;1807 value = binding.hasGroup(new java.lang.String(), new java.lang.String());1808 }1809 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1810 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1811 }1812 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1813 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1814 }1815 // TBD - validate results1816 }1817 public void test67ConfluenceSoapServiceGetBlogEntryByDayAndTitle() throws Exception {1818 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1819 try {1820 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1821 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1822 }1823 catch (javax.xml.rpc.ServiceException jre) {1824 if(jre.getLinkedCause()!=null)1825 jre.getLinkedCause().printStackTrace();1826 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1827 }1828 assertNotNull("binding is null", binding);1829 // Time out after a minute1830 binding.setTimeout(60000);1831 // Test operation1832 try {1833 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteBlogEntry value = null;1834 value = binding.getBlogEntryByDayAndTitle(new java.lang.String(), new java.lang.String(), 0, new java.lang.String());1835 }1836 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1837 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1838 }1839 // TBD - validate results1840 }1841 public void test68ConfluenceSoapServiceGetBlogEntry() throws Exception {1842 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1843 try {1844 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1845 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1846 }1847 catch (javax.xml.rpc.ServiceException jre) {1848 if(jre.getLinkedCause()!=null)1849 jre.getLinkedCause().printStackTrace();1850 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1851 }1852 assertNotNull("binding is null", binding);1853 // Time out after a minute1854 binding.setTimeout(60000);1855 // Test operation1856 try {1857 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteBlogEntry value = null;1858 value = binding.getBlogEntry(new java.lang.String(), 0);1859 }1860 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1861 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1862 }1863 // TBD - validate results1864 }1865 public void test69ConfluenceSoapServiceGetBlogEntries() throws Exception {1866 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1867 try {1868 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1869 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1870 }1871 catch (javax.xml.rpc.ServiceException jre) {1872 if(jre.getLinkedCause()!=null)1873 jre.getLinkedCause().printStackTrace();1874 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1875 }1876 assertNotNull("binding is null", binding);1877 // Time out after a minute1878 binding.setTimeout(60000);1879 // Test operation1880 try {1881 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteBlogEntrySummary[] value = null;1882 value = binding.getBlogEntries(new java.lang.String(), new java.lang.String());1883 }1884 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1885 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1886 }1887 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1888 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1889 }1890 // TBD - validate results1891 }1892 public void test70ConfluenceSoapServiceStoreBlogEntry() throws Exception {1893 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1894 try {1895 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1896 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1897 }1898 catch (javax.xml.rpc.ServiceException jre) {1899 if(jre.getLinkedCause()!=null)1900 jre.getLinkedCause().printStackTrace();1901 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1902 }1903 assertNotNull("binding is null", binding);1904 // Time out after a minute1905 binding.setTimeout(60000);1906 // Test operation1907 try {1908 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteBlogEntry value = null;1909 value = binding.storeBlogEntry(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteBlogEntry());1910 }1911 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {1912 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);1913 }1914 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {1915 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);1916 }1917 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {1918 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);1919 }1920 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.VersionMismatchException e4) {1921 throw new junit.framework.AssertionFailedError("VersionMismatchException Exception caught: " + e4);1922 }1923 // TBD - validate results1924 }1925 public void test71ConfluenceSoapServiceExportSite() throws Exception {1926 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1927 try {1928 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1929 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1930 }1931 catch (javax.xml.rpc.ServiceException jre) {1932 if(jre.getLinkedCause()!=null)1933 jre.getLinkedCause().printStackTrace();1934 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1935 }1936 assertNotNull("binding is null", binding);1937 // Time out after a minute1938 binding.setTimeout(60000);1939 // Test operation1940 try {1941 java.lang.String value = null;1942 value = binding.exportSite(new java.lang.String(), true);1943 }1944 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {1945 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);1946 }1947 // TBD - validate results1948 }1949 public void test72ConfluenceSoapServiceGetLabelsById() throws Exception {1950 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1951 try {1952 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1953 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1954 }1955 catch (javax.xml.rpc.ServiceException jre) {1956 if(jre.getLinkedCause()!=null)1957 jre.getLinkedCause().printStackTrace();1958 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1959 }1960 assertNotNull("binding is null", binding);1961 // Time out after a minute1962 binding.setTimeout(60000);1963 // Test operation1964 try {1965 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel[] value = null;1966 value = binding.getLabelsById(new java.lang.String(), 0);1967 }1968 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1969 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1970 }1971 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1972 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);1973 }1974 // TBD - validate results1975 }1976 public void test73ConfluenceSoapServiceGetLabelContentById() throws Exception {1977 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;1978 try {1979 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)1980 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();1981 }1982 catch (javax.xml.rpc.ServiceException jre) {1983 if(jre.getLinkedCause()!=null)1984 jre.getLinkedCause().printStackTrace();1985 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1986 }1987 assertNotNull("binding is null", binding);1988 // Time out after a minute1989 binding.setTimeout(60000);1990 // Test operation1991 try {1992 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSearchResult[] value = null;1993 value = binding.getLabelContentById(new java.lang.String(), 0);1994 }1995 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {1996 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);1997 }1998 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {1999 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);2000 }2001 // TBD - validate results2002 }2003 public void test74ConfluenceSoapServiceGetLabelContentByName() throws Exception {2004 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2005 try {2006 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2007 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2008 }2009 catch (javax.xml.rpc.ServiceException jre) {2010 if(jre.getLinkedCause()!=null)2011 jre.getLinkedCause().printStackTrace();2012 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2013 }2014 assertNotNull("binding is null", binding);2015 // Time out after a minute2016 binding.setTimeout(60000);2017 // Test operation2018 try {2019 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSearchResult[] value = null;2020 value = binding.getLabelContentByName(new java.lang.String(), new java.lang.String());2021 }2022 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {2023 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);2024 }2025 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {2026 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);2027 }2028 // TBD - validate results2029 }2030 public void test75ConfluenceSoapServiceGetLabelContentByObject() throws Exception {2031 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2032 try {2033 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2034 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2035 }2036 catch (javax.xml.rpc.ServiceException jre) {2037 if(jre.getLinkedCause()!=null)2038 jre.getLinkedCause().printStackTrace();2039 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2040 }2041 assertNotNull("binding is null", binding);2042 // Time out after a minute2043 binding.setTimeout(60000);2044 // Test operation2045 try {2046 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteSearchResult[] value = null;2047 value = binding.getLabelContentByObject(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel());2048 }2049 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {2050 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);2051 }2052 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {2053 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);2054 }2055 // TBD - validate results2056 }2057 public void test76ConfluenceSoapServiceAddLabelByName() throws Exception {2058 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2059 try {2060 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2061 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2062 }2063 catch (javax.xml.rpc.ServiceException jre) {2064 if(jre.getLinkedCause()!=null)2065 jre.getLinkedCause().printStackTrace();2066 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2067 }2068 assertNotNull("binding is null", binding);2069 // Time out after a minute2070 binding.setTimeout(60000);2071 // Test operation2072 try {2073 boolean value = false;2074 value = binding.addLabelByName(new java.lang.String(), new java.lang.String(), 0);2075 }2076 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2077 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2078 }2079 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2080 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2081 }2082 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2083 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2084 }2085 // TBD - validate results2086 }2087 public void test77ConfluenceSoapServiceAddLabelById() throws Exception {2088 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2089 try {2090 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2091 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2092 }2093 catch (javax.xml.rpc.ServiceException jre) {2094 if(jre.getLinkedCause()!=null)2095 jre.getLinkedCause().printStackTrace();2096 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2097 }2098 assertNotNull("binding is null", binding);2099 // Time out after a minute2100 binding.setTimeout(60000);2101 // Test operation2102 try {2103 boolean value = false;2104 value = binding.addLabelById(new java.lang.String(), 0, 0);2105 }2106 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2107 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2108 }2109 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2110 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2111 }2112 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2113 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2114 }2115 // TBD - validate results2116 }2117 public void test78ConfluenceSoapServiceAddLabelByObject() throws Exception {2118 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2119 try {2120 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2121 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2122 }2123 catch (javax.xml.rpc.ServiceException jre) {2124 if(jre.getLinkedCause()!=null)2125 jre.getLinkedCause().printStackTrace();2126 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2127 }2128 assertNotNull("binding is null", binding);2129 // Time out after a minute2130 binding.setTimeout(60000);2131 // Test operation2132 try {2133 boolean value = false;2134 value = binding.addLabelByObject(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel(), 0);2135 }2136 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2137 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2138 }2139 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2140 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2141 }2142 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2143 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2144 }2145 // TBD - validate results2146 }2147 public void test79ConfluenceSoapServiceAddLabelByNameToSpace() throws Exception {2148 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2149 try {2150 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2151 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2152 }2153 catch (javax.xml.rpc.ServiceException jre) {2154 if(jre.getLinkedCause()!=null)2155 jre.getLinkedCause().printStackTrace();2156 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2157 }2158 assertNotNull("binding is null", binding);2159 // Time out after a minute2160 binding.setTimeout(60000);2161 // Test operation2162 try {2163 boolean value = false;2164 value = binding.addLabelByNameToSpace(new java.lang.String(), new java.lang.String(), new java.lang.String());2165 }2166 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2167 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2168 }2169 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2170 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2171 }2172 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2173 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2174 }2175 // TBD - validate results2176 }2177 public void test80ConfluenceSoapServiceRemoveLabelByName() throws Exception {2178 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2179 try {2180 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2181 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2182 }2183 catch (javax.xml.rpc.ServiceException jre) {2184 if(jre.getLinkedCause()!=null)2185 jre.getLinkedCause().printStackTrace();2186 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2187 }2188 assertNotNull("binding is null", binding);2189 // Time out after a minute2190 binding.setTimeout(60000);2191 // Test operation2192 try {2193 boolean value = false;2194 value = binding.removeLabelByName(new java.lang.String(), new java.lang.String(), 0);2195 }2196 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2197 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2198 }2199 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2200 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2201 }2202 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2203 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2204 }2205 // TBD - validate results2206 }2207 public void test81ConfluenceSoapServiceRemoveLabelById() throws Exception {2208 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2209 try {2210 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2211 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2212 }2213 catch (javax.xml.rpc.ServiceException jre) {2214 if(jre.getLinkedCause()!=null)2215 jre.getLinkedCause().printStackTrace();2216 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2217 }2218 assertNotNull("binding is null", binding);2219 // Time out after a minute2220 binding.setTimeout(60000);2221 // Test operation2222 try {2223 boolean value = false;2224 value = binding.removeLabelById(new java.lang.String(), 0, 0);2225 }2226 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2227 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2228 }2229 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2230 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2231 }2232 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2233 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2234 }2235 // TBD - validate results2236 }2237 public void test82ConfluenceSoapServiceRemoveLabelByObject() throws Exception {2238 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2239 try {2240 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2241 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2242 }2243 catch (javax.xml.rpc.ServiceException jre) {2244 if(jre.getLinkedCause()!=null)2245 jre.getLinkedCause().printStackTrace();2246 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2247 }2248 assertNotNull("binding is null", binding);2249 // Time out after a minute2250 binding.setTimeout(60000);2251 // Test operation2252 try {2253 boolean value = false;2254 value = binding.removeLabelByObject(new java.lang.String(), new com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemoteLabel(), 0);2255 }2256 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2257 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2258 }2259 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2260 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2261 }2262 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2263 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2264 }2265 // TBD - validate results2266 }2267 public void test83ConfluenceSoapServiceRemoveLabelByNameFromSpace() throws Exception {2268 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2269 try {2270 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2271 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2272 }2273 catch (javax.xml.rpc.ServiceException jre) {2274 if(jre.getLinkedCause()!=null)2275 jre.getLinkedCause().printStackTrace();2276 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2277 }2278 assertNotNull("binding is null", binding);2279 // Time out after a minute2280 binding.setTimeout(60000);2281 // Test operation2282 try {2283 boolean value = false;2284 value = binding.removeLabelByNameFromSpace(new java.lang.String(), new java.lang.String(), new java.lang.String());2285 }2286 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2287 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2288 }2289 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2290 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2291 }2292 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2293 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2294 }2295 // TBD - validate results2296 }2297 public void test84ConfluenceSoapServiceGetPermissionsForUser() throws Exception {2298 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2299 try {2300 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2301 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2302 }2303 catch (javax.xml.rpc.ServiceException jre) {2304 if(jre.getLinkedCause()!=null)2305 jre.getLinkedCause().printStackTrace();2306 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2307 }2308 assertNotNull("binding is null", binding);2309 // Time out after a minute2310 binding.setTimeout(60000);2311 // Test operation2312 try {2313 java.lang.String[] value = null;2314 value = binding.getPermissionsForUser(new java.lang.String(), new java.lang.String(), new java.lang.String());2315 }2316 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2317 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2318 }2319 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e2) {2320 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e2);2321 }2322 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e3) {2323 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e3);2324 }2325 // TBD - validate results2326 }2327 public void test85ConfluenceSoapServiceAddAnonymousPermissionToSpace() throws Exception {2328 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2329 try {2330 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2331 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2332 }2333 catch (javax.xml.rpc.ServiceException jre) {2334 if(jre.getLinkedCause()!=null)2335 jre.getLinkedCause().printStackTrace();2336 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2337 }2338 assertNotNull("binding is null", binding);2339 // Time out after a minute2340 binding.setTimeout(60000);2341 // Test operation2342 try {2343 boolean value = false;2344 value = binding.addAnonymousPermissionToSpace(new java.lang.String(), new java.lang.String(), new java.lang.String());2345 }2346 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {2347 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);2348 }2349 // TBD - validate results2350 }2351 public void test86ConfluenceSoapServiceAddAnonymousPermissionsToSpace() throws Exception {2352 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2353 try {2354 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2355 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2356 }2357 catch (javax.xml.rpc.ServiceException jre) {2358 if(jre.getLinkedCause()!=null)2359 jre.getLinkedCause().printStackTrace();2360 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2361 }2362 assertNotNull("binding is null", binding);2363 // Time out after a minute2364 binding.setTimeout(60000);2365 // Test operation2366 try {2367 boolean value = false;2368 value = binding.addAnonymousPermissionsToSpace(new java.lang.String(), new java.lang.String[0], new java.lang.String());2369 }2370 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e1) {2371 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e1);2372 }2373 // TBD - validate results2374 }2375 public void test87ConfluenceSoapServiceRemoveAnonymousPermissionFromSpace() throws Exception {2376 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2377 try {2378 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2379 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2380 }2381 catch (javax.xml.rpc.ServiceException jre) {2382 if(jre.getLinkedCause()!=null)2383 jre.getLinkedCause().printStackTrace();2384 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2385 }2386 assertNotNull("binding is null", binding);2387 // Time out after a minute2388 binding.setTimeout(60000);2389 // Test operation2390 try {2391 boolean value = false;2392 value = binding.removeAnonymousPermissionFromSpace(new java.lang.String(), new java.lang.String(), new java.lang.String());2393 }2394 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.NotPermittedException e1) {2395 throw new junit.framework.AssertionFailedError("NotPermittedException Exception caught: " + e1);2396 }2397 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {2398 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);2399 }2400 // TBD - validate results2401 }2402 public void test88ConfluenceSoapServiceGetPagePermissions() throws Exception {2403 com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub binding;2404 try {2405 binding = (com.atlassian.www.software.confluence.$Proxy42.ConfluenceSoapServiceStub)2406 new com.atlassian.www.software.confluence.$Proxy42.ConfluenceServiceLocator().getConfluenceSoapService();2407 }2408 catch (javax.xml.rpc.ServiceException jre) {2409 if(jre.getLinkedCause()!=null)2410 jre.getLinkedCause().printStackTrace();2411 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);2412 }2413 assertNotNull("binding is null", binding);2414 // Time out after a minute2415 binding.setTimeout(60000);2416 // Test operation2417 try {2418 com.atlassian.www._package.com_atlassian_confluence_rpc_soap_beans.RemotePermission[] value = null;2419 value = binding.getPagePermissions(new java.lang.String(), 0);2420 }2421 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.InvalidSessionException e1) {2422 throw new junit.framework.AssertionFailedError("InvalidSessionException Exception caught: " + e1);2423 }2424 catch (com.atlassian.www._package.com_atlassian_confluence_rpc.RemoteException e2) {2425 throw new junit.framework.AssertionFailedError("RemoteException Exception caught: " + e2);2426 }2427 // TBD - validate results2428 }2429}...

Full Screen

Full Screen

Source:TestOdbcTypes.java Github

copy

Full Screen

...148 assertTrue("Got only one row with id in (1, 2)", rs.next());149 assertEquals(5, rs.getInt("i"));150 assertFalse("Got too many rows with id in (1, 2)", rs.next());151 } catch (SQLException se) {152 junit.framework.AssertionFailedError ase =153 new junit.framework.AssertionFailedError(se.getMessage());154 ase.initCause(se);155 throw ase;156 } finally {157 try {158 if (rs != null) {159 rs.close();160 }161 if (st != null) {162 st.close();163 }164 } catch (Exception ignored) {}165 }166 }167 @Test168 public void testTinyIntSimpleRead() {169 ResultSet rs = null;170 Statement st = null;171 try {172 st = netConn.createStatement();173 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");174 assertTrue("Got no rows with id in (1, 2)", rs.next());175 Object o = rs.getObject("ti"); // todo - returns string176 // assertEquals(Integer.class, rs.getObject("ti").getClass());177 // Nb. HyperSQL purposefully returns an Integer for this type178 assertTrue("Got only one row with id in (1, 2)", rs.next());179 assertEquals((byte) 3, rs.getByte("ti"));180 assertFalse("Got too many rows with id in (1, 2)", rs.next());181 } catch (SQLException se) {182 junit.framework.AssertionFailedError ase =183 new junit.framework.AssertionFailedError(se.getMessage());184 ase.initCause(se);185 throw ase;186 } finally {187 try {188 if (rs != null) {189 rs.close();190 }191 if (st != null) {192 st.close();193 }194 } catch (Exception ignored) {}195 }196 }197 @Test198 public void testSmallIntSimpleRead() {199 ResultSet rs = null;200 Statement st = null;201 try {202 st = netConn.createStatement();203 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");204 assertTrue("Got no rows with id in (1, 2)", rs.next());205 assertEquals(Integer.class, rs.getObject("si").getClass());206 // Nb. HyperSQL purposefully returns an Integer for this type207 assertTrue("Got only one row with id in (1, 2)", rs.next());208 assertEquals((short) 4, rs.getShort("si"));209 assertFalse("Got too many rows with id in (1, 2)", rs.next());210 } catch (SQLException se) {211 junit.framework.AssertionFailedError ase =212 new junit.framework.AssertionFailedError(se.getMessage());213 ase.initCause(se);214 throw ase;215 } finally {216 try {217 if (rs != null) {218 rs.close();219 }220 if (st != null) {221 st.close();222 }223 } catch (Exception ignored) {}224 }225 }226 @Test227 public void testBigIntSimpleRead() {228 ResultSet rs = null;229 Statement st = null;230 try {231 st = netConn.createStatement();232 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");233 assertTrue("Got no rows with id in (1, 2)", rs.next());234 assertEquals(Long.class, rs.getObject("bi").getClass());235 assertTrue("Got only one row with id in (1, 2)", rs.next());236 assertEquals(6, rs.getLong("bi"));237 assertFalse("Got too many rows with id in (1, 2)", rs.next());238 } catch (SQLException se) {239 junit.framework.AssertionFailedError ase =240 new junit.framework.AssertionFailedError(se.getMessage());241 ase.initCause(se);242 throw ase;243 } finally {244 try {245 if (rs != null) {246 rs.close();247 }248 if (st != null) {249 st.close();250 }251 } catch (Exception ignored) {}252 }253 }254 @Test255 public void testNumericSimpleRead() {256 // This is failing.257 // Looks like we inherited a real bug with numerics from psqlodbc,258 // because the problem exists with Postresql-supplied psqlodbc259 // connecting to a Postgresql server.260 ResultSet rs = null;261 Statement st = null;262 try {263 st = netConn.createStatement();264 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");265 assertTrue("Got no rows with id in (1, 2)", rs.next());266 Object o = rs.getObject("n");267 assertEquals(BigDecimal.class, o.getClass());268 assertTrue("Got only one row with id in (1, 2)", rs.next());269 o = rs.getBigDecimal("n"); // todo - wrong result270 BigDecimal expected = new BigDecimal("7.80");271 assertEquals(expected, o);272 assertFalse("Got too many rows with id in (1, 2)", rs.next());273 } catch (SQLException se) {274 junit.framework.AssertionFailedError ase275 = new junit.framework.AssertionFailedError(se.getMessage());276 ase.initCause(se);277 throw ase;278 } finally {279 try {280 if (rs != null) {281 rs.close();282 }283 if (st != null) {284 st.close();285 }286 } catch(Exception ignored) {287 }288 }289 }290 @Test291 public void testFloatSimpleRead() {292 ResultSet rs = null;293 Statement st = null;294 try {295 st = netConn.createStatement();296 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");297 assertTrue("Got no rows with id in (1, 2)", rs.next());298 assertEquals(Double.class, rs.getObject("f").getClass());299 assertTrue("Got only one row with id in (1, 2)", rs.next());300 assertEquals(8.9D, rs.getDouble("f"), 0D);301 assertFalse("Got too many rows with id in (1, 2)", rs.next());302 } catch (SQLException se) {303 junit.framework.AssertionFailedError ase =304 new junit.framework.AssertionFailedError(se.getMessage());305 ase.initCause(se);306 throw ase;307 } finally {308 try {309 if (rs != null) {310 rs.close();311 }312 if (st != null) {313 st.close();314 }315 } catch (Exception ignored) {}316 }317 }318 @Test319 public void testDoubleSimpleRead() {320 ResultSet rs = null;321 Statement st = null;322 try {323 st = netConn.createStatement();324 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");325 assertTrue("Got no rows with id in (1, 2)", rs.next());326 assertEquals(Double.class, rs.getObject("r").getClass());327 assertTrue("Got only one row with id in (1, 2)", rs.next());328 assertEquals(9.7D, rs.getDouble("r"), 0D);329 assertFalse("Got too many rows with id in (1, 2)", rs.next());330 } catch (SQLException se) {331 junit.framework.AssertionFailedError ase =332 new junit.framework.AssertionFailedError(se.getMessage());333 ase.initCause(se);334 throw ase;335 } finally {336 try {337 if (rs != null) {338 rs.close();339 }340 if (st != null) {341 st.close();342 }343 } catch (Exception ignored) {}344 }345 }346 // todo347 @Test348 public void testBooleanSimpleRead() {349 ResultSet rs = null;350 Statement st = null;351 try {352 st = netConn.createStatement();353 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");354 assertTrue("Got no rows with id in (1, 2)", rs.next());355 Object o = rs.getObject("b"); // todo - returns string356 // assertEquals(Boolean.class, o.getClass());357 assertTrue("Got only one row with id in (1, 2)", rs.next());358 assertTrue(rs.getBoolean("b"));359 assertFalse("Got too many rows with id in (1, 2)", rs.next());360 } catch (SQLException se) {361 junit.framework.AssertionFailedError ase =362 new junit.framework.AssertionFailedError(se.getMessage());363 ase.initCause(se);364 throw ase;365 } finally {366 try {367 if (rs != null) {368 rs.close();369 }370 if (st != null) {371 st.close();372 }373 } catch (Exception ignored) {}374 }375 }376 @Test377 public void testCharSimpleRead() {378 ResultSet rs = null;379 Statement st = null;380 try {381 st = netConn.createStatement();382 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");383 assertTrue("Got no rows with id in (1, 2)", rs.next());384 assertEquals(String.class, rs.getObject("c").getClass());385 assertTrue("Got only one row with id in (1, 2)", rs.next());386 assertEquals("ab ", rs.getString("c"));387 assertFalse("Got too many rows with id in (1, 2)", rs.next());388 } catch (SQLException se) {389 junit.framework.AssertionFailedError ase =390 new junit.framework.AssertionFailedError(se.getMessage());391 ase.initCause(se);392 throw ase;393 } finally {394 try {395 if (rs != null) {396 rs.close();397 }398 if (st != null) {399 st.close();400 }401 } catch (Exception ignored) {}402 }403 }404 @Test405 public void testVarCharSimpleRead() {406 ResultSet rs = null;407 Statement st = null;408 try {409 st = netConn.createStatement();410 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");411 assertTrue("Got no rows with id in (1, 2)", rs.next());412 assertEquals(String.class, rs.getObject("cv").getClass());413 assertTrue("Got only one row with id in (1, 2)", rs.next());414 assertEquals("cd", rs.getString("cv"));415 assertFalse("Got too many rows with id in (1, 2)", rs.next());416 } catch (SQLException se) {417 junit.framework.AssertionFailedError ase =418 new junit.framework.AssertionFailedError(se.getMessage());419 ase.initCause(se);420 throw ase;421 } finally {422 try {423 if (rs != null) {424 rs.close();425 }426 if (st != null) {427 st.close();428 }429 } catch (Exception ignored) {}430 }431 }432 @Test433 public void testFixedStringSimpleRead() {434 ResultSet rs = null;435 Statement st = null;436 try {437 st = netConn.createStatement();438 rs = st.executeQuery("SELECT i, 'fixed str' fs, cv\n"439 + "FROM alltypes WHERE id in (1, 2)");440 assertTrue("Got no rows with id in (1, 2)", rs.next());441 assertEquals(String.class, rs.getObject("fs").getClass());442 assertTrue("Got only one row with id in (1, 2)", rs.next());443 assertEquals("fixed str", rs.getString("fs"));444 assertFalse("Got too many rows with id in (1, 2)", rs.next());445 } catch (SQLException se) {446 junit.framework.AssertionFailedError ase =447 new junit.framework.AssertionFailedError(se.getMessage());448 ase.initCause(se);449 throw ase;450 } finally {451 try {452 if (rs != null) {453 rs.close();454 }455 if (st != null) {456 st.close();457 }458 } catch (Exception ignored) {}459 }460 }461 @Test462 public void testDerivedStringSimpleRead() {463 ResultSet rs = null;464 Statement st = null;465 try {466 st = netConn.createStatement();467 rs = st.executeQuery("SELECT i, cv || 'appendage' app, 4\n"468 + "FROM alltypes WHERE id in (1, 2)");469 assertTrue("Got no rows with id in (1, 2)", rs.next());470 assertEquals(String.class, rs.getObject("app").getClass());471 assertTrue("Got only one row with id in (1, 2)", rs.next());472 assertEquals("cdappendage", rs.getString("app"));473 assertFalse("Got too many rows with id in (1, 2)", rs.next());474 } catch (SQLException se) {475 junit.framework.AssertionFailedError ase =476 new junit.framework.AssertionFailedError(se.getMessage());477 ase.initCause(se);478 throw ase;479 } finally {480 try {481 if (rs != null) {482 rs.close();483 }484 if (st != null) {485 st.close();486 }487 } catch (Exception ignored) {}488 }489 }490 @Test491 public void testDateSimpleRead() {492 ResultSet rs = null;493 Statement st = null;494 try {495 st = netConn.createStatement();496 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");497 assertTrue("Got no rows with id in (1, 2)", rs.next());498 assertEquals(java.sql.Date.class, rs.getObject("d").getClass());499 assertTrue("Got only one row with id in (1, 2)", rs.next());500 assertEquals(501 new java.sql.Date(new java.util.Date().getTime()).toString(),502 rs.getDate("d").toString());503 assertFalse("Got too many rows with id in (1, 2)", rs.next());504 } catch (SQLException se) {505 junit.framework.AssertionFailedError ase =506 new junit.framework.AssertionFailedError(se.getMessage());507 ase.initCause(se);508 throw ase;509 } finally {510 try {511 if (rs != null) {512 rs.close();513 }514 if (st != null) {515 st.close();516 }517 } catch (Exception ignored) {}518 }519 }520 @Test521 public void testTimeSimpleRead() {522 ResultSet rs = null;523 Statement st = null;524 try {525 st = netConn.createStatement();526 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");527 assertTrue("Got no rows with id in (1, 2)", rs.next());528 assertEquals(java.sql.Time.class, rs.getObject("t").getClass());529 assertTrue("Got only one row with id in (1, 2)", rs.next());530 assertEquals(Time.valueOf("13:14:00"), rs.getTime("t"));531 assertFalse("Got too many rows with id in (1, 2)", rs.next());532 } catch (SQLException se) {533 junit.framework.AssertionFailedError ase =534 new junit.framework.AssertionFailedError(se.getMessage());535 ase.initCause(se);536 throw ase;537 } finally {538 try {539 if (rs != null) {540 rs.close();541 }542 if (st != null) {543 st.close();544 }545 } catch (Exception ignored) {}546 }547 }548 @Test549 public void testTimeWSimpleRead() {550 // This test is failing because the JDBC Driver is returning a551 // String instead of a Time oject for rs.getTime().552 ResultSet rs = null;553 Statement st = null;554 try {555 st = netConn.createStatement();556 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");557 assertTrue("Got no rows with id in (1, 2)", rs.next());558 Object o = rs.getObject("tw"); // todo - returns string 15:16:00.00+1:00559 // assertEquals(java.sql.Time.class, o.getClass());560 assertTrue("Got only one row with id in (1, 2)", rs.next());561 o = rs.getTime("tw"); // todo - wrong result - returns 1 hour562 // assertEquals(Time.valueOf("15:16:00"), o);563 assertFalse("Got too many rows with id in (1, 2)", rs.next());564 } catch (SQLException se) {565 junit.framework.AssertionFailedError ase566 = new junit.framework.AssertionFailedError(se.getMessage());567 ase.initCause(se);568 throw ase;569 } finally {570 try {571 if (rs != null) {572 rs.close();573 }574 if (st != null) {575 st.close();576 }577 } catch(Exception ignored) {578 }579 }580 }581 @Test582 public void testTimestampSimpleRead() {583 ResultSet rs = null;584 Statement st = null;585 try {586 st = netConn.createStatement();587 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");588 assertTrue("Got no rows with id in (1, 2)", rs.next());589 assertEquals(Timestamp.class, rs.getObject("ts").getClass());590 assertTrue("Got only one row with id in (1, 2)", rs.next());591 assertEquals(Timestamp.valueOf("2009-02-09 16:17:18"),592 rs.getTimestamp("ts"));593 assertFalse("Got too many rows with id in (1, 2)", rs.next());594 } catch (SQLException se) {595 junit.framework.AssertionFailedError ase =596 new junit.framework.AssertionFailedError(se.getMessage());597 ase.initCause(se);598 throw ase;599 } finally {600 try {601 if (rs != null) {602 rs.close();603 }604 if (st != null) {605 st.close();606 }607 } catch (Exception ignored) {}608 }609 }610 @Test611 public void testTimestampWSimpleRead() {612 ResultSet rs = null;613 Statement st = null;614 try {615 st = netConn.createStatement();616 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");617 assertTrue("Got no rows with id in (1, 2)", rs.next());618 assertEquals(Timestamp.class, rs.getObject("tsw").getClass());619 assertTrue("Got only one row with id in (1, 2)", rs.next());620 assertEquals(Timestamp.valueOf("2009-02-09 17:18:19"),621 rs.getTimestamp("tsw"));622 assertFalse("Got too many rows with id in (1, 2)", rs.next());623 } catch (SQLException se) {624 junit.framework.AssertionFailedError ase =625 new junit.framework.AssertionFailedError(se.getMessage());626 ase.initCause(se);627 throw ase;628 } finally {629 try {630 if (rs != null) {631 rs.close();632 }633 if (st != null) {634 st.close();635 }636 } catch (Exception ignored) {}637 }638 }639 @Test640 public void testBitSimpleRead() {641 // This test is failing because of a BIT padding bug in the engine.642 ResultSet rs = null;643 Statement st = null;644 try {645 st = netConn.createStatement();646 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");647 assertTrue("Got no rows with id in (1, 2)", rs.next());648 assertTrue("Got only one row with id in (1, 2)", rs.next());649 assertEquals("100000000", rs.getString("bt"));650 assertFalse("Got too many rows with id in (1, 2)", rs.next());651 } catch (SQLException se) {652 junit.framework.AssertionFailedError ase =653 new junit.framework.AssertionFailedError(se.getMessage());654 ase.initCause(se);655 throw ase;656 } finally {657 try {658 if (rs != null) {659 rs.close();660 }661 if (st != null) {662 st.close();663 }664 } catch (Exception ignored) {}665 }666 }667 @Test668 public void testBitVaryingSimpleRead() {669 ResultSet rs = null;670 Statement st = null;671 try {672 st = netConn.createStatement();673 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");674 assertTrue("Got no rows with id in (1, 2)", rs.next());675 assertTrue("Got only one row with id in (1, 2)", rs.next());676 assertEquals("10", rs.getString("btv"));677 assertFalse("Got too many rows with id in (1, 2)", rs.next());678 } catch (SQLException se) {679 junit.framework.AssertionFailedError ase =680 new junit.framework.AssertionFailedError(se.getMessage());681 ase.initCause(se);682 throw ase;683 } finally {684 try {685 if (rs != null) {686 rs.close();687 }688 if (st != null) {689 st.close();690 }691 } catch (Exception ignored) {}692 }693 }694 @Test695 public void testBinarySimpleRead() {696 ResultSet rs = null;697 Statement st = null;698 byte[] expectedBytes = new byte[] {699 (byte) 0xa1, (byte) 0x03, (byte) 0, (byte) 0700 };701 byte[] ba;702 try {703 st = netConn.createStatement();704 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");705 assertTrue("Got no rows with id in (1, 2)", rs.next());706 assertEquals("A1030000", rs.getString("bin"));707 assertTrue("Got only one row with id in (1, 2)", rs.next());708 ba = rs.getBytes("bin");709 assertFalse("Got too many rows with id in (1, 2)", rs.next());710 } catch (SQLException se) {711 junit.framework.AssertionFailedError ase =712 new junit.framework.AssertionFailedError(se.getMessage());713 ase.initCause(se);714 throw ase;715 } finally {716 try {717 if (rs != null) {718 rs.close();719 }720 if (st != null) {721 st.close();722 }723 } catch (Exception ignored) {}724 }725 assertEquals("Retrieved bye array length wrong", expectedBytes.length,726 ba.length);727 for (int i = 0; i < ba.length; i++) {728 assertEquals("Byte " + i + " wrong", expectedBytes[i], ba[i]);729 }730 }731 @Test732 public void testVarBinarySimpleRead() {733 ResultSet rs = null;734 Statement st = null;735 byte[] expectedBytes = new byte[] {736 (byte) 0xa1, (byte) 0x03737 };738 byte[] ba;739 try {740 st = netConn.createStatement();741 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");742 assertTrue("Got no rows with id in (1, 2)", rs.next());743 assertEquals("A103", rs.getString("vb"));744 assertTrue("Got only one row with id in (1, 2)", rs.next());745 ba = rs.getBytes("vb");746 assertFalse("Got too many rows with id in (1, 2)", rs.next());747 } catch (SQLException se) {748 junit.framework.AssertionFailedError ase =749 new junit.framework.AssertionFailedError(se.getMessage());750 ase.initCause(se);751 throw ase;752 } finally {753 try {754 if (rs != null) {755 rs.close();756 }757 if (st != null) {758 st.close();759 }760 } catch (Exception ignored) {}761 }762 assertEquals("Retrieved bye array length wrong", expectedBytes.length,763 ba.length);764 for (int i = 0; i < ba.length; i++) {765 assertEquals("Byte " + i + " wrong", expectedBytes[i], ba[i]);766 }767 }768 @Test769 public void testDaySecIntervalSimpleRead() {770 /* Since our client does not support the INTERVAL precision771 * constraints, the returned value will always be toString()'d to772 * precision of microseconds. */773 ResultSet rs = null;774 Statement st = null;775 try {776 st = netConn.createStatement();777 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");778 assertTrue("Got no rows with id in (1, 2)", rs.next());779 assertEquals("145 23:12:19.345000", rs.getString("dsival"));780 assertTrue("Got only one row with id in (1, 2)", rs.next());781 // Can't test the class, because jdbc:odbc or the driver returns782 // a String for getObject() for interval values.783 assertFalse("Got too many rows with id in (1, 2)", rs.next());784 } catch (SQLException se) {785 junit.framework.AssertionFailedError ase =786 new junit.framework.AssertionFailedError(se.getMessage());787 ase.initCause(se);788 throw ase;789 } finally {790 try {791 if (rs != null) {792 rs.close();793 }794 if (st != null) {795 st.close();796 }797 } catch (Exception ignored) {}798 }799 }800 @Test801 public void testSecIntervalSimpleRead() {802 /* Since our client does not support the INTERVAL precision803 * constraints, the returned value will always be toString()'d to804 * precision of microseconds. */805 ResultSet rs = null;806 Statement st = null;807 try {808 st = netConn.createStatement();809 rs = st.executeQuery("SELECT * FROM alltypes WHERE id in (1, 2)");810 assertTrue("Got no rows with id in (1, 2)", rs.next());811 assertEquals("1000.345000", rs.getString("sival"));812 assertTrue("Got only one row with id in (1, 2)", rs.next());813 // Can't test the class, because jdbc:odbc or the driver returns814 // a String for getObject() for interval values.815 assertFalse("Got too many rows with id in (1, 2)", rs.next());816 } catch (SQLException se) {817 junit.framework.AssertionFailedError ase =818 new junit.framework.AssertionFailedError(se.getMessage());819 ase.initCause(se);820 throw ase;821 } finally {822 try {823 if (rs != null) {824 rs.close();825 }826 if (st != null) {827 st.close();828 }829 } catch (Exception ignored) {}830 }831 }832 @Test833 public void testIntegerComplex() {834 PreparedStatement ps = null;835 ResultSet rs = null;836 try {837 ps = netConn.prepareStatement(838 "INSERT INTO alltypes(id, i) VALUES(?, ?)");839 ps.setInt(1, 3);840 ps.setInt(2, 495);841 assertEquals(1, ps.executeUpdate());842 ps.setInt(1, 4);843 assertEquals(1, ps.executeUpdate());844 ps.close();845 netConn.commit();846 ps = netConn.prepareStatement(847 "SELECT * FROM alltypes WHERE i = ?");848 ps.setInt(1, 495);849 rs = ps.executeQuery();850 assertTrue("Got no rows with i = 495", rs.next());851 assertEquals(Integer.class, rs.getObject("i").getClass());852 assertTrue("Got only one row with i = 495", rs.next());853 assertEquals(495, rs.getInt("i"));854 assertFalse("Got too many rows with i = 495", rs.next());855 } catch (SQLException se) {856 junit.framework.AssertionFailedError ase =857 new junit.framework.AssertionFailedError(se.getMessage());858 ase.initCause(se);859 throw ase;860 } finally {861 try {862 if (rs != null) {863 rs.close();864 }865 if (ps != null) {866 ps.close();867 }868 } catch (Exception ignored) {}869 }870 }871 @Test872 public void testTinyIntComplex() {873 PreparedStatement ps = null;874 ResultSet rs = null;875 try {876 ps = netConn.prepareStatement(877 "INSERT INTO alltypes(id, ti) VALUES(?, ?)");878 ps.setInt(1, 3);879 ps.setByte(2, (byte) 200);880 assertEquals(1, ps.executeUpdate());881 ps.setInt(1, 4);882 assertEquals(1, ps.executeUpdate());883 ps.close();884 netConn.commit();885 ps = netConn.prepareStatement(886 "SELECT * FROM alltypes WHERE ti = ?");887 ps.setByte(1, (byte) 200);888 rs = ps.executeQuery();889 assertTrue("Got no rows with ti = 200", rs.next());890 Object o = rs.getObject("ti"); // todo - returns string891 // assertEquals(Integer.class, o.getClass());892 assertTrue("Got only one row with ti = 200", rs.next());893 assertEquals((byte) 200, rs.getByte("ti"));894 assertFalse("Got too many rows with ti = 200", rs.next());895 assertFalse(false);896 } catch (SQLException se) {897 junit.framework.AssertionFailedError ase =898 new junit.framework.AssertionFailedError(se.getMessage());899 ase.initCause(se);900 throw ase;901 } finally {902 try {903 if (rs != null) {904 rs.close();905 }906 if (ps != null) {907 ps.close();908 }909 } catch (Exception ignored) {}910 }911 }912 @Test913 public void testSmallIntComplex() {914 PreparedStatement ps = null;915 ResultSet rs = null;916 try {917 ps = netConn.prepareStatement(918 "INSERT INTO alltypes(id, si) VALUES(?, ?)");919 ps.setInt(1, 3);920 ps.setShort(2, (short) 395);921 assertEquals(1, ps.executeUpdate());922 ps.setInt(1, 4);923 assertEquals(1, ps.executeUpdate());924 ps.close();925 netConn.commit();926 ps = netConn.prepareStatement(927 "SELECT * FROM alltypes WHERE si = ?");928 ps.setShort(1, (short) 395);929 rs = ps.executeQuery();930 assertTrue("Got no rows with si = 395", rs.next());931 assertEquals(Integer.class, rs.getObject("si").getClass());932 // Nb. HyperSQL purposefully returns an Integer for this type933 assertTrue("Got only one row with si = 395", rs.next());934 assertEquals((short) 395, rs.getShort("si"));935 assertFalse("Got too many rows with si = 395", rs.next());936 } catch (SQLException se) {937 junit.framework.AssertionFailedError ase =938 new junit.framework.AssertionFailedError(se.getMessage());939 ase.initCause(se);940 throw ase;941 } finally {942 try {943 if (rs != null) {944 rs.close();945 }946 if (ps != null) {947 ps.close();948 }949 } catch (Exception ignored) {}950 }951 }952 @Test953 public void testBigIntComplex() {954 PreparedStatement ps = null;955 ResultSet rs = null;956 try {957 ps = netConn.prepareStatement(958 "INSERT INTO alltypes(id, bi) VALUES(?, ?)");959 ps.setInt(1, 3);960 ps.setLong(2, 295L);961 assertEquals(1, ps.executeUpdate());962 ps.setInt(1, 4);963 assertEquals(1, ps.executeUpdate());964 ps.close();965 netConn.commit();966 ps = netConn.prepareStatement(967 "SELECT * FROM alltypes WHERE bi = ?");968 ps.setLong(1, 295L);969 rs = ps.executeQuery();970 assertTrue("Got no rows with bi = 295L", rs.next());971 assertEquals(Long.class, rs.getObject("bi").getClass());972 assertTrue("Got only one row with bi = 295L", rs.next());973 assertEquals(295L, rs.getLong("bi"));974 assertFalse("Got too many rows with bi = 295L", rs.next());975 } catch (SQLException se) {976 junit.framework.AssertionFailedError ase =977 new junit.framework.AssertionFailedError(se.getMessage());978 ase.initCause(se);979 throw ase;980 } finally {981 try {982 if (rs != null) {983 rs.close();984 }985 if (ps != null) {986 ps.close();987 }988 } catch (Exception ignored) {}989 }990 }991 /* TODO: Implement this test after get testNumericSimpleRead() working.992 * See that method above.993 public void testNumericComplex() {994 */995 @Test996 public void testFloatComplex() {997 PreparedStatement ps = null;998 ResultSet rs = null;999 try {1000 ps = netConn.prepareStatement(1001 "INSERT INTO alltypes(id, f) VALUES(?, ?)");1002 ps.setInt(1, 3);1003 ps.setFloat(2, 98.765F);1004 assertEquals(1, ps.executeUpdate());1005 ps.setInt(1, 4);1006 assertEquals(1, ps.executeUpdate());1007 ps.close();1008 netConn.commit();1009 ps = netConn.prepareStatement(1010 "SELECT * FROM alltypes WHERE f = ?");1011 ps.setFloat(1, 98.765F);1012 rs = ps.executeQuery();1013 assertTrue("Got no rows with f = 98.765F", rs.next());1014 assertEquals(Double.class, rs.getObject("f").getClass());1015 assertTrue("Got only one row with f = 98.765F", rs.next());1016 assertEquals(98.765D, rs.getDouble("f"), .01D);1017 assertFalse("Got too many rows with f = 98.765F", rs.next());1018 } catch (SQLException se) {1019 junit.framework.AssertionFailedError ase =1020 new junit.framework.AssertionFailedError(se.getMessage());1021 ase.initCause(se);1022 throw ase;1023 } finally {1024 try {1025 if (rs != null) {1026 rs.close();1027 }1028 if (ps != null) {1029 ps.close();1030 }1031 } catch (Exception ignored) {}1032 }1033 }1034 @Test1035 public void testDoubleComplex() {1036 PreparedStatement ps = null;1037 ResultSet rs = null;1038 try {1039 ps = netConn.prepareStatement(1040 "INSERT INTO alltypes(id, r) VALUES(?, ?)");1041 ps.setInt(1, 3);1042 ps.setDouble(2, 876.54D);1043 assertEquals(1, ps.executeUpdate());1044 ps.setInt(1, 4);1045 assertEquals(1, ps.executeUpdate());1046 ps.close();1047 netConn.commit();1048 ps = netConn.prepareStatement(1049 "SELECT * FROM alltypes WHERE r = ?");1050 ps.setDouble(1, 876.54D);1051 rs = ps.executeQuery();1052 assertTrue("Got no rows with r = 876.54D", rs.next());1053 assertEquals(Double.class, rs.getObject("r").getClass());1054 assertTrue("Got only one row with r = 876.54D", rs.next());1055 assertEquals(876.54D, rs.getDouble("r"), 0D);1056 assertFalse("Got too many rows with r = 876.54D", rs.next());1057 } catch (SQLException se) {1058 junit.framework.AssertionFailedError ase =1059 new junit.framework.AssertionFailedError(se.getMessage());1060 ase.initCause(se);1061 throw ase;1062 } finally {1063 try {1064 if (rs != null) {1065 rs.close();1066 }1067 if (ps != null) {1068 ps.close();1069 }1070 } catch (Exception ignored) {}1071 }1072 }1073 @Test1074 public void testBooleanComplex() {1075 PreparedStatement ps = null;1076 ResultSet rs = null;1077 try {1078 ps = netConn.prepareStatement(1079 "INSERT INTO alltypes(id, b) VALUES(?, ?)");1080 ps.setInt(1, 3);1081 ps.setBoolean(2, false);1082 assertEquals(1, ps.executeUpdate());1083 ps.setInt(1, 4);1084 assertEquals(1, ps.executeUpdate());1085 ps.close();1086 netConn.commit();1087 ps = netConn.prepareStatement(1088 "SELECT * FROM alltypes WHERE b = ?");1089 ps.setBoolean(1, false);1090 rs = ps.executeQuery();1091 assertTrue("Got no rows with b = false", rs.next());1092 Object o = rs.getObject("b"); // todo - returns string1093 // assertEquals(Boolean.class, rs.getObject("b").getClass());1094 assertTrue("Got only one row with b = false", rs.next());1095 assertEquals(false, rs.getBoolean("b"));1096 assertFalse("Got too many rows with b = false", rs.next());1097 } catch (SQLException se) {1098 junit.framework.AssertionFailedError ase =1099 new junit.framework.AssertionFailedError(se.getMessage());1100 ase.initCause(se);1101 throw ase;1102 } finally {1103 try {1104 if (rs != null) {1105 rs.close();1106 }1107 if (ps != null) {1108 ps.close();1109 }1110 } catch (Exception ignored) {}1111 }1112 }1113 @Test1114 public void testCharComplex() {1115 PreparedStatement ps = null;1116 ResultSet rs = null;1117 try {1118 ps = netConn.prepareStatement(1119 "INSERT INTO alltypes(id, c) VALUES(?, ?)");1120 ps.setInt(1, 3);1121 ps.setString(2, "xy");1122 assertEquals(1, ps.executeUpdate());1123 ps.setInt(1, 4);1124 assertEquals(1, ps.executeUpdate());1125 ps.close();1126 netConn.commit();1127 ps = netConn.prepareStatement(1128 "SELECT * FROM alltypes WHERE c = ?");1129 ps.setString(1, "xy ");1130 rs = ps.executeQuery();1131 assertTrue("Got no rows with c = 'xy '", rs.next());1132 assertEquals(String.class, rs.getObject("c").getClass());1133 assertTrue("Got only one row with c = 'xy '", rs.next());1134 assertEquals("xy ", rs.getString("c"));1135 assertFalse("Got too many rows with c = 'xy '", rs.next());1136 } catch (SQLException se) {1137 junit.framework.AssertionFailedError ase =1138 new junit.framework.AssertionFailedError(se.getMessage());1139 ase.initCause(se);1140 throw ase;1141 } finally {1142 try {1143 if (rs != null) {1144 rs.close();1145 }1146 if (ps != null) {1147 ps.close();1148 }1149 } catch (Exception ignored) {}1150 }1151 }1152 @Test1153 public void testVarCharComplex() {1154 PreparedStatement ps = null;1155 ResultSet rs = null;1156 try {1157 ps = netConn.prepareStatement(1158 "INSERT INTO alltypes(id, cv) VALUES(?, ?)");1159 ps.setInt(1, 3);1160 ps.setString(2, "xy");1161 assertEquals(1, ps.executeUpdate());1162 ps.setInt(1, 4);1163 assertEquals(1, ps.executeUpdate());1164 ps.close();1165 netConn.commit();1166 ps = netConn.prepareStatement(1167 "SELECT * FROM alltypes WHERE cv = ?");1168 ps.setString(1, "xy");1169 rs = ps.executeQuery();1170 assertTrue("Got no rows with cv = 'xy'", rs.next());1171 assertEquals(String.class, rs.getObject("cv").getClass());1172 assertTrue("Got only one row with cv = 'xy'", rs.next());1173 assertEquals("xy", rs.getString("cv"));1174 assertFalse("Got too many rows with cv = 'xy'", rs.next());1175 } catch (SQLException se) {1176 junit.framework.AssertionFailedError ase =1177 new junit.framework.AssertionFailedError(se.getMessage());1178 ase.initCause(se);1179 throw ase;1180 } finally {1181 try {1182 if (rs != null) {1183 rs.close();1184 }1185 if (ps != null) {1186 ps.close();1187 }1188 } catch (Exception ignored) {}1189 }1190 }1191 /**1192 * TODO: Find out if there is a way to select based on an expression1193 * using a named derived pseudo-column.1194 */1195 @Test1196 public void testDerivedComplex() {1197 PreparedStatement ps = null;1198 ResultSet rs = null;1199 try {1200 ps = netConn.prepareStatement(1201 "SELECT id, cv || 'app' appendage FROM alltypes\n"1202 + "WHERE (cv || 'app') = ?");1203 ps.setString(1, "cvapp");1204 rs = ps.executeQuery();1205 assertTrue("Got no rows appendage = 'cvapp'", rs.next());1206 assertEquals(String.class, rs.getObject("r").getClass());1207 assertTrue("Got only one row with appendage = 'cvapp'", rs.next());1208 assertEquals("cvapp", rs.getString("r"));1209 assertFalse("Got too many rows with appendage = 'cvapp'", rs.next());1210 } catch (SQLException se) {1211 junit.framework.AssertionFailedError ase1212 = new junit.framework.AssertionFailedError(se.getMessage());1213 ase.initCause(se);1214 throw ase;1215 } finally {1216 try {1217 if (rs != null) {1218 rs.close();1219 }1220 if (ps != null) {1221 ps.close();1222 }1223 } catch(Exception ignored) {1224 }1225 }1226 }1227 @Test1228 public void testDateComplex() {1229 PreparedStatement ps = null;1230 ResultSet rs = null;1231 java.sql.Date tomorrow =1232 new java.sql.Date(new java.util.Date().getTime()1233 + 1000 * 60 * 60 * 24);1234 try {1235 ps = netConn.prepareStatement(1236 "INSERT INTO alltypes(id, d) VALUES(?, ?)");1237 ps.setInt(1, 3);1238 ps.setDate(2, tomorrow);1239 assertEquals(1, ps.executeUpdate());1240 ps.setInt(1, 4);1241 assertEquals(1, ps.executeUpdate());1242 ps.close();1243 netConn.commit();1244 ps = netConn.prepareStatement(1245 "SELECT * FROM alltypes WHERE d = ?");1246 ps.setDate(1, tomorrow);1247 rs = ps.executeQuery();1248 assertTrue("Got no rows with d = tomorrow", rs.next());1249 assertEquals(java.sql.Date.class, rs.getObject("d").getClass());1250 assertTrue("Got only one row with d = tomorrow", rs.next());1251 assertEquals(tomorrow.toString(), rs.getDate("d").toString());1252 // Compare the Strings since "tomorrow" has resolution to1253 // millisecond, but getDate() is probably to the day.1254 assertFalse("Got too many rows with d = tomorrow", rs.next());1255 } catch (SQLException se) {1256 junit.framework.AssertionFailedError ase =1257 new junit.framework.AssertionFailedError(se.getMessage());1258 ase.initCause(se);1259 throw ase;1260 } finally {1261 try {1262 if (rs != null) {1263 rs.close();1264 }1265 if (ps != null) {1266 ps.close();1267 }1268 } catch (Exception ignored) {}1269 }1270 }1271 @Test1272 public void testTimeComplex() {1273 PreparedStatement ps = null;1274 ResultSet rs = null;1275 Time aTime = Time.valueOf("21:19:27");1276 try {1277 ps = netConn.prepareStatement(1278 "INSERT INTO alltypes(id, t) VALUES(?, ?)");1279 ps.setInt(1, 3);1280 ps.setTime(2, aTime);1281 assertEquals(1, ps.executeUpdate());1282 ps.setInt(1, 4);1283 assertEquals(1, ps.executeUpdate());1284 ps.close();1285 netConn.commit();1286 ps = netConn.prepareStatement(1287 "SELECT * FROM alltypes WHERE t = ?");1288 ps.setTime(1, aTime);1289 rs = ps.executeQuery();1290 assertTrue("Got no rows with t = aTime", rs.next());1291 assertEquals(Time.class, rs.getObject("t").getClass());1292 assertTrue("Got only one row with t = aTime", rs.next());1293 assertEquals(aTime, rs.getTime("t"));1294 assertFalse("Got too many rows with t = aTime", rs.next());1295 } catch (SQLException se) {1296 junit.framework.AssertionFailedError ase =1297 new junit.framework.AssertionFailedError(se.getMessage());1298 ase.initCause(se);1299 throw ase;1300 } finally {1301 try {1302 if (rs != null) {1303 rs.close();1304 }1305 if (ps != null) {1306 ps.close();1307 }1308 } catch (Exception ignored) {}1309 }1310 }1311 /* TODO: Implement this test after get testTimeWSimpleRead() working.1312 * See that method above.1313 public void testTimeWComplex() {1314 */1315 @Test1316 public void testTimestampComplex() {1317 PreparedStatement ps = null;1318 ResultSet rs = null;1319 Timestamp aTimestamp = Timestamp.valueOf("2009-03-27 17:18:19");1320 try {1321 ps = netConn.prepareStatement(1322 "INSERT INTO alltypes(id, ts) VALUES(?, ?)");1323 ps.setInt(1, 3);1324 ps.setTimestamp(2, aTimestamp);1325 assertEquals(1, ps.executeUpdate());1326 ps.setInt(1, 4);1327 assertEquals(1, ps.executeUpdate());1328 ps.close();1329 netConn.commit();1330 ps = netConn.prepareStatement(1331 "SELECT * FROM alltypes WHERE ts = ?");1332 ps.setTimestamp(1, aTimestamp);1333 rs = ps.executeQuery();1334 assertTrue("Got no rows with ts = aTimestamp", rs.next());1335 assertEquals(Timestamp.class, rs.getObject("ts").getClass());1336 assertTrue("Got only one row with ts = aTimestamp", rs.next());1337 assertEquals(aTimestamp, rs.getTimestamp("ts"));1338 assertFalse("Got too many rows with ts = aTimestamp", rs.next());1339 } catch (SQLException se) {1340 junit.framework.AssertionFailedError ase =1341 new junit.framework.AssertionFailedError(se.getMessage());1342 ase.initCause(se);1343 throw ase;1344 } finally {1345 try {1346 if (rs != null) {1347 rs.close();1348 }1349 if (ps != null) {1350 ps.close();1351 }1352 } catch (Exception ignored) {}1353 }1354 }1355 @Test1356 public void testTimestampWComplex() {1357 PreparedStatement ps = null;1358 ResultSet rs = null;1359 Timestamp aTimestamp = Timestamp.valueOf("2009-03-27 17:18:19");1360 try {1361 ps = netConn.prepareStatement(1362 "INSERT INTO alltypes(id, tsw) VALUES(?, ?)");1363 ps.setInt(1, 3);1364 ps.setTimestamp(2, aTimestamp);1365 assertEquals(1, ps.executeUpdate());1366 ps.setInt(1, 4);1367 assertEquals(1, ps.executeUpdate());1368 ps.close();1369 netConn.commit();1370 ps = netConn.prepareStatement(1371 "SELECT * FROM alltypes WHERE tsw = ?");1372 ps.setTimestamp(1, aTimestamp);1373 rs = ps.executeQuery();1374 assertTrue("Got no rows with tsw = aTimestamp", rs.next());1375 assertEquals(Timestamp.class, rs.getObject("tsw").getClass());1376 assertTrue("Got only one row with tsw = aTimestamp", rs.next());1377 assertEquals(aTimestamp, rs.getTimestamp("tsw"));1378 assertFalse("Got too many rows with tsw = aTimestamp", rs.next());1379 } catch (SQLException se) {1380 junit.framework.AssertionFailedError ase =1381 new junit.framework.AssertionFailedError(se.getMessage());1382 ase.initCause(se);1383 throw ase;1384 } finally {1385 try {1386 if (rs != null) {1387 rs.close();1388 }1389 if (ps != null) {1390 ps.close();1391 }1392 } catch (Exception ignored) {}1393 }1394 }1395 /*1396 * Driver needs to be modified to transfer bits in byte (binary) fashion,1397 * the same as is done for VARBINARY/bytea type.1398 */1399 @Ignore1400 public void testBitComplex() {1401 PreparedStatement ps = null;1402 ResultSet rs = null;1403 try {1404 ps = netConn.prepareStatement(1405 "INSERT INTO alltypes(id, bt) VALUES(?, ?)");1406 ps.setInt(1, 3);1407 ps.setString(2, "101");1408 assertEquals(1, ps.executeUpdate());1409 ps.setInt(1, 4);1410 assertEquals(1, ps.executeUpdate());1411 ps.close();1412 netConn.commit();1413 ps = netConn.prepareStatement(1414 "SELECT * FROM alltypes WHERE bt = ?");1415 ps.setString(1, "101");1416 rs = ps.executeQuery();1417 assertTrue("Got no rows with bt = 101", rs.next());1418 assertEquals(String.class, rs.getObject("bt").getClass());1419 assertTrue("Got only one row with bt = 101", rs.next());1420 assertEquals("101000000", rs.getString("bt"));1421 assertFalse("Got too many rows with bt = 101", rs.next());1422 } catch (SQLException se) {1423 junit.framework.AssertionFailedError ase1424 = new junit.framework.AssertionFailedError(se.getMessage());1425 ase.initCause(se);1426 throw ase;1427 } finally {1428 try {1429 if (rs != null) {1430 rs.close();1431 }1432 if (ps != null) {1433 ps.close();1434 }1435 } catch(Exception ignored) {1436 } }1437 }1438 @Ignore1439 public void testBitVaryingComplex() {1440 PreparedStatement ps = null;1441 ResultSet rs = null;1442 try {1443 ps = netConn.prepareStatement(1444 "INSERT INTO alltypes(id, btv) VALUES(?, ?)");1445 ps.setInt(1, 3);1446 ps.setString(2, "10101"); // toto - throws right truncation1447 assertEquals(1, ps.executeUpdate());1448 ps.setInt(1, 4);1449 assertEquals(1, ps.executeUpdate());1450 ps.close();1451 netConn.commit();1452 ps = netConn.prepareStatement(1453 "SELECT * FROM alltypes WHERE btv = ?");1454 ps.setString(1, "10101");1455 rs = ps.executeQuery();1456 assertTrue("Got no rows with btv = 10101", rs.next());1457 Object o = rs.getObject("btv");1458 assertEquals(String.class, rs.getObject("btv").getClass());1459 assertTrue("Got only one row with btv = 10101", rs.next());1460 assertEquals("10101", rs.getString("btv"));1461 assertFalse("Got too many rows with btv = 10101", rs.next());1462 } catch (SQLException se) {1463 junit.framework.AssertionFailedError ase1464 = new junit.framework.AssertionFailedError(se.getMessage());1465 ase.initCause(se);1466 throw ase;1467 } finally {1468 try {1469 if (rs != null) {1470 rs.close();1471 }1472 if (ps != null) {1473 ps.close();1474 }1475 } catch(Exception ignored) {1476 }1477 }1478 }1479 @Test1480 public void testBinaryComplex() {1481 PreparedStatement ps = null;1482 ResultSet rs = null;1483 byte[] expectedBytes = new byte[] {1484 (byte) 0xaa, (byte) 0x99, (byte) 0, (byte) 01485 };1486 byte[] ba1, ba2;1487 try {1488 ps = netConn.prepareStatement(1489 "INSERT INTO alltypes(id, bin) VALUES(?, ?)");1490 ps.setInt(1, 3);1491 ps.setBytes(2, expectedBytes);1492 assertEquals(1, ps.executeUpdate());1493 ps.setInt(1, 4);1494 assertEquals(1, ps.executeUpdate());1495 ps.close();1496 netConn.commit();1497 ps = netConn.prepareStatement(1498 "SELECT * FROM alltypes WHERE bin = ?");1499 ps.setBytes(1, expectedBytes);1500 rs = ps.executeQuery();1501 assertTrue("Got no rows with bin = b'AA99'", rs.next());1502 ba1 = rs.getBytes("bin");1503 assertTrue("Got only one row with bin = b'AA99'", rs.next());1504 ba2 = rs.getBytes("bin");1505 assertFalse("Got too many rows with bin = b'AA99'", rs.next());1506 } catch (SQLException se) {1507 junit.framework.AssertionFailedError ase =1508 new junit.framework.AssertionFailedError(se.getMessage());1509 ase.initCause(se);1510 throw ase;1511 } finally {1512 try {1513 if (rs != null) {1514 rs.close();1515 }1516 if (ps != null) {1517 ps.close();1518 }1519 } catch (Exception ignored) {}1520 }1521 assertEquals("Retrieved bye array length wrong (1)",1522 expectedBytes.length, ba1.length);1523 for (int i = 0; i < ba1.length; i++) {1524 assertEquals("Byte " + i + " wrong (1)", expectedBytes[i], ba1[i]);1525 }1526 assertEquals("Retrieved bye array length wrong (2)",1527 expectedBytes.length, ba2.length);1528 for (int i = 0; i < ba2.length; i++) {1529 assertEquals("Byte " + i + " wrong (2)", expectedBytes[i], ba2[i]);1530 }1531 }1532 @Test1533 public void testVarBinaryComplex() {1534 PreparedStatement ps = null;1535 ResultSet rs = null;1536 byte[] expectedBytes = new byte[] {1537 (byte) 0xaa, (byte) 0x991538 };1539 byte[] ba1, ba2;1540 try {1541 ps = netConn.prepareStatement(1542 "INSERT INTO alltypes(id, vb) VALUES(?, ?)");1543 ps.setInt(1, 3);1544 ps.setBytes(2, expectedBytes);1545 assertEquals(1, ps.executeUpdate());1546 ps.setInt(1, 4);1547 assertEquals(1, ps.executeUpdate());1548 ps.close();1549 netConn.commit();1550 ps = netConn.prepareStatement(1551 "SELECT * FROM alltypes WHERE vb = ?");1552 ps.setBytes(1, expectedBytes);1553 rs = ps.executeQuery();1554 assertTrue("Got no rows with vb = b'AA99'", rs.next());1555 ba1 = rs.getBytes("vb");1556 assertTrue("Got only one row with vb = b'AA99'", rs.next());1557 ba2 = rs.getBytes("vb");1558 assertFalse("Got too many rows with vb = b'AA99'", rs.next());1559 } catch (SQLException se) {1560 junit.framework.AssertionFailedError ase =1561 new junit.framework.AssertionFailedError(se.getMessage());1562 ase.initCause(se);1563 throw ase;1564 } finally {1565 try {1566 if (rs != null) {1567 rs.close();1568 }1569 if (ps != null) {1570 ps.close();1571 }1572 } catch (Exception ignored) {}1573 }1574 assertEquals("Retrieved bye array length wrong (1)",1575 expectedBytes.length, ba1.length);1576 for (int i = 0; i < ba1.length; i++) {1577 assertEquals("Byte " + i + " wrong (1)", expectedBytes[i], ba1[i]);1578 }1579 assertEquals("Retrieved bye array length wrong (2)",1580 expectedBytes.length, ba2.length);1581 for (int i = 0; i < ba2.length; i++) {1582 assertEquals("Byte " + i + " wrong (2)", expectedBytes[i], ba2[i]);1583 }1584 }1585 /*1586 * TODO: Learn how to set input params for INTERVAL types.1587 * I don't see how I could set the variant1588 * (HOUR, ...TO SECOND, etc.) with setString() or anything else.1589 */1590 @Test1591 public void testDaySecIntervalComplex() {1592 PreparedStatement ps = null;1593 ResultSet rs = null;1594 try {1595 ps = netConn.prepareStatement(1596 "INSERT INTO alltypes(id, dsival) VALUES(?, ?)");1597 ps.setInt(1, 3);1598 ps.setString(2, "45 23:12:19.345000");1599 assertEquals(1, ps.executeUpdate());1600 ps.setInt(1, 4);1601 assertEquals(1, ps.executeUpdate());1602 ps.close();1603 netConn.commit();1604 ps = netConn.prepareStatement(1605 "SELECT * FROM alltypes WHERE dsival = ?");1606 ps.setString(1, "45 23:12:19.345000");1607 rs = ps.executeQuery();1608 assertTrue("Got no rows with dsival = 45 23:12:19.345000", rs.next());1609 assertEquals(String.class, rs.getObject("dsival").getClass());1610 assertTrue("Got only one row with dsival = 45 23:12:19.345000", rs.next());1611 assertEquals("45 23:12:19.345000", rs.getString("dsival"));1612 assertFalse("Got too many rows with dsival = 45 23:12:19.345000", rs.next());1613 } catch (SQLException se) {1614 junit.framework.AssertionFailedError ase1615 = new junit.framework.AssertionFailedError(se.getMessage());1616 ase.initCause(se);1617 throw ase;1618 } finally {1619 try {1620 if (rs != null) {1621 rs.close();1622 }1623 if (ps != null) {1624 ps.close();1625 }1626 } catch(Exception e) {1627 }1628 }1629 }1630 @Test1631 public void testSecIntervalComplex() {1632 PreparedStatement ps = null;1633 ResultSet rs = null;1634 try {1635 ps = netConn.prepareStatement(1636 "INSERT INTO alltypes(id, sival) VALUES(?, ?)");1637 ps.setInt(1, 3);1638 ps.setString(2, "876.54");1639 assertEquals(1, ps.executeUpdate());1640 ps.setInt(1, 4);1641 assertEquals(1, ps.executeUpdate());1642 ps.close();1643 netConn.commit();1644 ps = netConn.prepareStatement(1645 "SELECT * FROM alltypes WHERE sival = ?");1646 ps.setString(1, "876.54");1647 rs = ps.executeQuery();1648 assertTrue("Got no rows with sival = 876.54D", rs.next());1649 assertEquals(String.class, rs.getObject("sival").getClass());1650 assertTrue("Got only one row with sival = 876.54D", rs.next());1651 assertTrue(rs.getString("sival").startsWith("876.54"));1652 assertFalse("Got too many rows with sival = 876.54D", rs.next());1653 } catch (SQLException se) {1654 junit.framework.AssertionFailedError ase1655 = new junit.framework.AssertionFailedError(se.getMessage());1656 ase.initCause(se);1657 throw ase;1658 } finally {1659 try {1660 if (rs != null) {1661 rs.close();1662 }1663 if (ps != null) {1664 ps.close();1665 }1666 } catch(Exception e) {1667 }1668 }1669 }...

Full Screen

Full Screen

Source:DynamicProxyTestCase.java Github

copy

Full Screen

...4 * This file was auto-generated from WSDL5 * by the Apache Axis Wsdl2java emitter.6 */7package test.wsdl.types;8import junit.framework.AssertionFailedError;9import junit.framework.TestCase;10import org.apache.axis.holders.DayHolder;11import org.apache.axis.holders.MonthDayHolder;12import org.apache.axis.holders.MonthHolder;13import org.apache.axis.holders.NegativeIntegerHolder;14import org.apache.axis.holders.NonNegativeIntegerHolder;15import org.apache.axis.holders.NonPositiveIntegerHolder;16import org.apache.axis.holders.PositiveIntegerHolder;17import org.apache.axis.holders.TimeHolder;18import org.apache.axis.holders.URIHolder;19import org.apache.axis.holders.UnsignedByteHolder;20import org.apache.axis.holders.UnsignedIntHolder;21import org.apache.axis.holders.UnsignedLongHolder;22import org.apache.axis.holders.UnsignedShortHolder;23import org.apache.axis.holders.YearHolder;24import org.apache.axis.holders.YearMonthHolder;25import org.apache.axis.types.Day;26import org.apache.axis.types.Month;27import org.apache.axis.types.MonthDay;28import org.apache.axis.types.NegativeInteger;29import org.apache.axis.types.NonNegativeInteger;30import org.apache.axis.types.NonPositiveInteger;31import org.apache.axis.types.PositiveInteger;32import org.apache.axis.types.Time;33import org.apache.axis.types.URI;34import org.apache.axis.types.UnsignedByte;35import org.apache.axis.types.UnsignedInt;36import org.apache.axis.types.UnsignedLong;37import org.apache.axis.types.UnsignedShort;38import org.apache.axis.types.Year;39import org.apache.axis.types.YearMonth;40import test.wsdl.types.comprehensive_service.TypeTest;41import javax.xml.namespace.QName;42import javax.xml.rpc.Service;43import javax.xml.rpc.ServiceException;44import javax.xml.rpc.ServiceFactory;45import javax.xml.rpc.Stub;46import javax.xml.rpc.holders.BigDecimalHolder;47import javax.xml.rpc.holders.BigIntegerHolder;48import javax.xml.rpc.holders.BooleanHolder;49import javax.xml.rpc.holders.BooleanWrapperHolder;50import javax.xml.rpc.holders.ByteArrayHolder;51import javax.xml.rpc.holders.ByteHolder;52import javax.xml.rpc.holders.CalendarHolder;53import javax.xml.rpc.holders.DoubleHolder;54import javax.xml.rpc.holders.DoubleWrapperHolder;55import javax.xml.rpc.holders.FloatHolder;56import javax.xml.rpc.holders.FloatWrapperHolder;57import javax.xml.rpc.holders.IntHolder;58import javax.xml.rpc.holders.IntegerWrapperHolder;59import javax.xml.rpc.holders.LongHolder;60import javax.xml.rpc.holders.QNameHolder;61import javax.xml.rpc.holders.ShortHolder;62import javax.xml.rpc.holders.ShortWrapperHolder;63import javax.xml.rpc.holders.StringHolder;64import java.math.BigDecimal;65import java.math.BigInteger;66import java.net.MalformedURLException;67import java.net.URL;68import java.rmi.RemoteException;69import java.util.Calendar;70public class DynamicProxyTestCase extends TestCase {71 public DynamicProxyTestCase(String name) {72 super(name);73 }74 private TypeTest getProxyWithWSDL() {75 try {76 Service service = ServiceFactory.newInstance().createService(77 new URL("file", "", "test/wsdl/types/ComprehensiveTypes.wsdl"),78 new QName("urn:comprehensive-service.types.wsdl.test",79 "TypeTestService"));80 return (TypeTest) service.getPort(81 new QName("", "TypeTest"), TypeTest.class);82 }83 catch (MalformedURLException mue) {84 throw new AssertionFailedError(85 "MalformedURLException caught: " + mue);86 }87 catch (ServiceException jre) {88 throw new AssertionFailedError("ServiceException caught: " + jre);89 }90 } // getProxyWithWSDL91 private TypeTest getProxy() {92 try {93 Service service = ServiceFactory.newInstance().createService(null);94 Stub binding = (Stub) service.getPort(TypeTest.class);95 binding._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,96 "http://localhost:8080/axis/services/TypeTest");97 throw new AssertionFailedError("Should not get a binding");98 }99 catch (ServiceException jre) {100 return null;101 }102 } // getProxy103 private void allPrimitivesIn(TypeTest binding) {104 assertTrue("binding is null", binding != null);105 try {106 binding.allPrimitivesIn(107 new String(),108 new BigInteger("0"),109 0,110 0,111 (short)0,112 new BigDecimal(0),113 0,114 0,115 true,116 (byte)0,117 new QName("http://double-double", "toil-and-trouble"),118 Calendar.getInstance(),119 new byte[0],120 new byte[0],121 new String(),122 new Boolean(false),123 new Float(0),124 new Double(0),125 new BigDecimal(0),126 new Integer(0),127 new Short((short)0),128 new byte[0],129 new Time("12:01:30.150Z"),130 new UnsignedLong(0),131 new UnsignedInt(0),132 new UnsignedShort(0),133 new UnsignedByte(0),134 new NonNegativeInteger("0"),135 new PositiveInteger("1"),136 new NonPositiveInteger("0"),137 new NegativeInteger("-1"),138 new URI("urn:this-is-a-test"),139 new Year(1995),140 new Month(7),141 new Day(13),142 new YearMonth(2002, 8),143 new MonthDay(8, 26)144 );145 }146 catch (RemoteException re) {147 re.printStackTrace();148 throw new AssertionFailedError("Remote Exception caught: " + re);149 }150 catch (Exception e) {151 // possibly thrown from Unsigned constructors152 // wont happen since we know the value are good!153 }154 155 } // allPrimitivesIn156 public void test1TypeTestAllPrimitivesIn() {157 TypeTest binding = getProxyWithWSDL();158 allPrimitivesIn(binding);159 binding = getProxy();160 assertTrue(binding == null);161 } // test2TypeTestAllPrimitivesInout162 private void allPrimitivesInout(TypeTest binding) {163 assertTrue("binding is null", binding != null);164 try {165 binding.allPrimitivesInout(166 new StringHolder(new String()),167 new BigIntegerHolder(new BigInteger("0")),168 new IntHolder(0),169 new LongHolder(0),170 new ShortHolder((short)0),171 new BigDecimalHolder(new BigDecimal(0)),172 new FloatHolder(0),173 new DoubleHolder(0),174 new BooleanHolder(true),175 new ByteHolder((byte)0),176 new QNameHolder(new QName("http://double-double",177 "toil-and-trouble")),178 new CalendarHolder(Calendar.getInstance()),179 new ByteArrayHolder(new byte[0]),180 new ByteArrayHolder(new byte[0]),181 new StringHolder(new String()),182 new BooleanWrapperHolder(new Boolean(false)),183 new FloatWrapperHolder(new Float(0)),184 new DoubleWrapperHolder(new Double(0)),185 new BigDecimalHolder(new BigDecimal(0)),186 new IntegerWrapperHolder(new Integer(0)),187 new ShortWrapperHolder(new Short((short)0)),188 new ByteArrayHolder(new byte[0]),189 new TimeHolder(new Time("12:01:30.150Z")),190 new UnsignedLongHolder(new UnsignedLong(0)),191 new UnsignedIntHolder(new UnsignedInt(0)),192 new UnsignedShortHolder(new UnsignedShort(0)),193 new UnsignedByteHolder(new UnsignedByte(0)),194 new NonNegativeIntegerHolder(new NonNegativeInteger("0")),195 new PositiveIntegerHolder(new PositiveInteger("1")),196 new NonPositiveIntegerHolder(new NonPositiveInteger("0")),197 new NegativeIntegerHolder(new NegativeInteger("-1")),198 new URIHolder(new URI("urn:this-is-a-test")),199 new YearHolder(new Year(1995)),200 new MonthHolder(new Month(7)),201 new DayHolder(new Day(13)),202 new YearMonthHolder(new YearMonth(2002, 8)),203 new MonthDayHolder(new MonthDay(8, 26))204 205 );206 }207 catch (RemoteException re) {208 re.printStackTrace();209 throw new AssertionFailedError("Remote Exception caught: " + re);210 }211 catch (Exception e) {212 // possibly thrown from Unsigned constructors213 // wont happen since we know the value are good!214 }215 } // allPrimitivesInout216 public void test2TypeTestAllPrimitivesInout() {217/*218 TypeTest binding = getProxyWithWSDL();219 allPrimitivesInout(binding);220 binding = getProxy();221 allPrimitivesInout(binding);222*/223 } // test2TypeTestAllPrimitivesInout224 private void allPrimitivesOut(TypeTest binding) {225 assertTrue("binding is null", binding != null);226 try {227 binding.allPrimitivesOut(228 new StringHolder(), 229 new BigIntegerHolder(), 230 new IntHolder(), 231 new LongHolder(), 232 new ShortHolder(), 233 new BigDecimalHolder(), 234 new FloatHolder(), 235 new DoubleHolder(), 236 new BooleanHolder(), 237 new ByteHolder(), 238 new QNameHolder(), 239 new CalendarHolder(), 240 new ByteArrayHolder(), 241 new ByteArrayHolder(), 242 new StringHolder(), 243 new BooleanWrapperHolder(), 244 new FloatWrapperHolder(), 245 new DoubleWrapperHolder(), 246 new BigDecimalHolder(), 247 new IntegerWrapperHolder(), 248 new ShortWrapperHolder(), 249 new ByteArrayHolder(),250 new TimeHolder(),251 new UnsignedLongHolder(),252 new UnsignedIntHolder(),253 new UnsignedShortHolder(),254 new UnsignedByteHolder(),255 new NonNegativeIntegerHolder(),256 new PositiveIntegerHolder(),257 new NonPositiveIntegerHolder(),258 new NegativeIntegerHolder(),259 new URIHolder(),260 new YearHolder(),261 new MonthHolder(),262 new DayHolder(),263 new YearMonthHolder(),264 new MonthDayHolder()265 266 );267 }268 catch (RemoteException re) {269 throw new AssertionFailedError("Remote Exception caught: " + re);270 }271 } // allPrimitivesOut272 public void test3TypeTestAllPrimitivesOut() {273/*274 TypeTest binding = getProxyWithWSDL();275 allPrimitivesOut(binding);276 binding = getProxy();277 allPrimitivesOut(binding);278*/279 } // test3TypeTestAllPrimitivesOut280/*281 public void test4TypeTestEnumIn() {282 test.wsdl.types.comprehensive_service.TypeTest binding;283 try {284 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();285 }286 catch (javax.xml.rpc.ServiceException jre) {287 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);288 }289 assertTrue("binding is null", binding != null);290 try {291 binding.enumIn(test.wsdl.types.comprehensive_types.Enum.one);292 }293 catch (java.rmi.RemoteException re) {294 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);295 }296 }297 public void test5TypeTestEnumInout() {298 test.wsdl.types.comprehensive_service.TypeTest binding;299 try {300 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();301 }302 catch (javax.xml.rpc.ServiceException jre) {303 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);304 }305 assertTrue("binding is null", binding != null);306 try {307 binding.enumInout(new test.wsdl.types.comprehensive_types.EnumHolder(test.wsdl.types.comprehensive_types.Enum.one));308 }309 catch (java.rmi.RemoteException re) {310 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);311 }312 }313 public void test6TypeTestEnumOut() {314 test.wsdl.types.comprehensive_service.TypeTest binding;315 try {316 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();317 }318 catch (javax.xml.rpc.ServiceException jre) {319 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);320 }321 assertTrue("binding is null", binding != null);322 try {323 binding.enumOut(new test.wsdl.types.comprehensive_types.EnumHolder());324 }325 catch (java.rmi.RemoteException re) {326 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);327 }328 }329 public void test7TypeTestEnumReturn() {330 test.wsdl.types.comprehensive_service.TypeTest binding;331 try {332 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();333 }334 catch (javax.xml.rpc.ServiceException jre) {335 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);336 }337 assertTrue("binding is null", binding != null);338 try {339 test.wsdl.types.comprehensive_types.Enum value = null;340 value = binding.enumReturn();341 }342 catch (java.rmi.RemoteException re) {343 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);344 }345 }346 public void test8TypeTestArrayIn() {347 test.wsdl.types.comprehensive_service.TypeTest binding;348 try {349 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();350 }351 catch (javax.xml.rpc.ServiceException jre) {352 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);353 }354 assertTrue("binding is null", binding != null);355 try {356 binding.arrayIn(new String[0]);357 }358 catch (java.rmi.RemoteException re) {359 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);360 }361 }362 public void test9TypeTestArrayInout() {363 test.wsdl.types.comprehensive_service.TypeTest binding;364 try {365 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();366 }367 catch (javax.xml.rpc.ServiceException jre) {368 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);369 }370 assertTrue("binding is null", binding != null);371 try {372 binding.arrayInout(new test.wsdl.types.comprehensive_types.ArrayHolder(new String[0]));373 }374 catch (java.rmi.RemoteException re) {375 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);376 }377 }378 public void test10TypeTestArrayOut() {379 test.wsdl.types.comprehensive_service.TypeTest binding;380 try {381 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();382 }383 catch (javax.xml.rpc.ServiceException jre) {384 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);385 }386 assertTrue("binding is null", binding != null);387 try {388 binding.arrayOut(new test.wsdl.types.comprehensive_types.ArrayHolder());389 }390 catch (java.rmi.RemoteException re) {391 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);392 }393 }394 public void test11TypeTestArrayReturn() {395 test.wsdl.types.comprehensive_service.TypeTest binding;396 try {397 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();398 }399 catch (javax.xml.rpc.ServiceException jre) {400 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);401 }402 assertTrue("binding is null", binding != null);403 try {404 String[] value = null;405 value = binding.arrayReturn();406 }407 catch (java.rmi.RemoteException re) {408 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);409 }410 }411 public void test12TypeTestArrayMIn() {412 test.wsdl.types.comprehensive_service.TypeTest binding;413 try {414 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();415 }416 catch (javax.xml.rpc.ServiceException jre) {417 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);418 }419 assertTrue("binding is null", binding != null);420 try {421 binding.arrayMIn(new int[0][0][0]);422 }423 catch (java.rmi.RemoteException re) {424 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);425 }426 }427 public void test13TypeTestArrayMInout() {428 test.wsdl.types.comprehensive_service.TypeTest binding;429 try {430 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();431 }432 catch (javax.xml.rpc.ServiceException jre) {433 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);434 }435 assertTrue("binding is null", binding != null);436 try {437 binding.arrayMInout(new test.wsdl.types.comprehensive_types.ArrayMHolder(new int[0][0][0]));438 }439 catch (java.rmi.RemoteException re) {440 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);441 }442 }443 public void test14TypeTestArrayMOut() {444 test.wsdl.types.comprehensive_service.TypeTest binding;445 try {446 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();447 }448 catch (javax.xml.rpc.ServiceException jre) {449 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);450 }451 assertTrue("binding is null", binding != null);452 try {453 binding.arrayMOut(new test.wsdl.types.comprehensive_types.ArrayMHolder());454 }455 catch (java.rmi.RemoteException re) {456 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);457 }458 }459 public void test15TypeTestArrayMReturn() {460 test.wsdl.types.comprehensive_service.TypeTest binding;461 try {462 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();463 }464 catch (javax.xml.rpc.ServiceException jre) {465 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);466 }467 assertTrue("binding is null", binding != null);468 try {469 int[][][] value = null;470 value = binding.arrayMReturn();471 }472 catch (java.rmi.RemoteException re) {473 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);474 }475 }476 public void test16TypeTestComplexAllIn() {477 test.wsdl.types.comprehensive_service.TypeTest binding;478 try {479 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();480 }481 catch (javax.xml.rpc.ServiceException jre) {482 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);483 }484 assertTrue("binding is null", binding != null);485 try {486 binding.complexAllIn(new test.wsdl.types.comprehensive_types.ComplexAll());487 }488 catch (java.rmi.RemoteException re) {489 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);490 }491 }492 public void test17TypeTestComplexAllInout() {493 test.wsdl.types.comprehensive_service.TypeTest binding;494 try {495 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();496 }497 catch (javax.xml.rpc.ServiceException jre) {498 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);499 }500 assertTrue("binding is null", binding != null);501 try {502 binding.complexAllInout(new test.wsdl.types.comprehensive_types.ComplexAllHolder(new test.wsdl.types.comprehensive_types.ComplexAll()));503 }504 catch (java.rmi.RemoteException re) {505 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);506 }507 }508 public void test18TypeTestComplexAllOut() {509 test.wsdl.types.comprehensive_service.TypeTest binding;510 try {511 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();512 }513 catch (javax.xml.rpc.ServiceException jre) {514 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);515 }516 assertTrue("binding is null", binding != null);517 try {518 binding.complexAllOut(new test.wsdl.types.comprehensive_types.ComplexAllHolder());519 }520 catch (java.rmi.RemoteException re) {521 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);522 }523 }524 public void test19TypeTestComplexAllReturn() {525 test.wsdl.types.comprehensive_service.TypeTest binding;526 try {527 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();528 }529 catch (javax.xml.rpc.ServiceException jre) {530 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);531 }532 assertTrue("binding is null", binding != null);533 try {534 test.wsdl.types.comprehensive_types.ComplexAll value = null;535 value = binding.complexAllReturn();536 }537 catch (java.rmi.RemoteException re) {538 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);539 }540 }541 public void test20TypeTestComplexSequenceIn() {542 test.wsdl.types.comprehensive_service.TypeTest binding;543 try {544 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();545 }546 catch (javax.xml.rpc.ServiceException jre) {547 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);548 }549 assertTrue("binding is null", binding != null);550 try {551 binding.complexSequenceIn(new test.wsdl.types.comprehensive_types.ComplexSequence());552 }553 catch (java.rmi.RemoteException re) {554 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);555 }556 }557 public void test21TypeTestComplexSequenceInout() {558 test.wsdl.types.comprehensive_service.TypeTest binding;559 try {560 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();561 }562 catch (javax.xml.rpc.ServiceException jre) {563 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);564 }565 assertTrue("binding is null", binding != null);566 try {567 binding.complexSequenceInout(new test.wsdl.types.comprehensive_types.ComplexSequenceHolder(new test.wsdl.types.comprehensive_types.ComplexSequence()));568 }569 catch (java.rmi.RemoteException re) {570 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);571 }572 }573 public void test22TypeTestComplexSequenceOut() {574 test.wsdl.types.comprehensive_service.TypeTest binding;575 try {576 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();577 }578 catch (javax.xml.rpc.ServiceException jre) {579 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);580 }581 assertTrue("binding is null", binding != null);582 try {583 binding.complexSequenceOut(new test.wsdl.types.comprehensive_types.ComplexSequenceHolder());584 }585 catch (java.rmi.RemoteException re) {586 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);587 }588 }589 public void test23TypeTestComplexSequenceReturn() {590 test.wsdl.types.comprehensive_service.TypeTest binding;591 try {592 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();593 }594 catch (javax.xml.rpc.ServiceException jre) {595 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);596 }597 assertTrue("binding is null", binding != null);598 try {599 test.wsdl.types.comprehensive_types.ComplexSequence value = null;600 value = binding.complexSequenceReturn();601 }602 catch (java.rmi.RemoteException re) {603 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);604 }605 }606 public void test24TypeTestElemWComplexIn() {607 test.wsdl.types.comprehensive_service.TypeTest binding;608 try {609 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();610 }611 catch (javax.xml.rpc.ServiceException jre) {612 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);613 }614 assertTrue("binding is null", binding != null);615 try {616 binding.elemWComplexIn(new test.wsdl.types.comprehensive_types.ElemWComplex());617 }618 catch (java.rmi.RemoteException re) {619 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);620 }621 }622 public void test25TypeTestElemWComplexInout() {623 test.wsdl.types.comprehensive_service.TypeTest binding;624 try {625 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();626 }627 catch (javax.xml.rpc.ServiceException jre) {628 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);629 }630 assertTrue("binding is null", binding != null);631 try {632 binding.elemWComplexInout(new test.wsdl.types.comprehensive_types.ElemWComplexHolder(new test.wsdl.types.comprehensive_types.ElemWComplex()));633 }634 catch (java.rmi.RemoteException re) {635 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);636 }637 }638 public void test26TypeTestElemWComplexOut() {639 test.wsdl.types.comprehensive_service.TypeTest binding;640 try {641 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();642 }643 catch (javax.xml.rpc.ServiceException jre) {644 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);645 }646 assertTrue("binding is null", binding != null);647 try {648 binding.elemWComplexOut(new test.wsdl.types.comprehensive_types.ElemWComplexHolder());649 }650 catch (java.rmi.RemoteException re) {651 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);652 }653 }654 public void test27TypeTestElemWComplexReturn() {655 test.wsdl.types.comprehensive_service.TypeTest binding;656 try {657 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();658 }659 catch (javax.xml.rpc.ServiceException jre) {660 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);661 }662 assertTrue("binding is null", binding != null);663 try {664 test.wsdl.types.comprehensive_types.ElemWComplex value = null;665 value = binding.elemWComplexReturn();666 }667 catch (java.rmi.RemoteException re) {668 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);669 }670 }671 public void test28TypeTestComplexWComplexIn() {672 test.wsdl.types.comprehensive_service.TypeTest binding;673 try {674 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();675 }676 catch (javax.xml.rpc.ServiceException jre) {677 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);678 }679 assertTrue("binding is null", binding != null);680 try {681 binding.complexWComplexIn(new test.wsdl.types.comprehensive_types.ComplexWComplex());682 }683 catch (java.rmi.RemoteException re) {684 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);685 }686 }687 public void test29TypeTestComplexWComplexInout() {688 test.wsdl.types.comprehensive_service.TypeTest binding;689 try {690 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();691 }692 catch (javax.xml.rpc.ServiceException jre) {693 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);694 }695 assertTrue("binding is null", binding != null);696 try {697 binding.complexWComplexInout(new test.wsdl.types.comprehensive_types.ComplexWComplexHolder(new test.wsdl.types.comprehensive_types.ComplexWComplex()));698 }699 catch (java.rmi.RemoteException re) {700 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);701 }702 }703 public void test30TypeTestComplexWComplexOut() {704 test.wsdl.types.comprehensive_service.TypeTest binding;705 try {706 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();707 }708 catch (javax.xml.rpc.ServiceException jre) {709 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);710 }711 assertTrue("binding is null", binding != null);712 try {713 binding.complexWComplexOut(new test.wsdl.types.comprehensive_types.ComplexWComplexHolder());714 }715 catch (java.rmi.RemoteException re) {716 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);717 }718 }719 public void test31TypeTestComplexWComplexReturn() {720 test.wsdl.types.comprehensive_service.TypeTest binding;721 try {722 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();723 }724 catch (javax.xml.rpc.ServiceException jre) {725 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);726 }727 assertTrue("binding is null", binding != null);728 try {729 test.wsdl.types.comprehensive_types.ComplexWComplex value = null;730 value = binding.complexWComplexReturn();731 }732 catch (java.rmi.RemoteException re) {733 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);734 }735 }736 public void test32TypeTestAnyIn() {737 test.wsdl.types.comprehensive_service.TypeTest binding;738 try {739 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();740 }741 catch (javax.xml.rpc.ServiceException jre) {742 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);743 }744 assertTrue("binding is null", binding != null);745 try {746 binding.anyIn(new String());747 }748 catch (java.rmi.RemoteException re) {749 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);750 }751 }752 public void test33TypeTestAnyInout() {753 test.wsdl.types.comprehensive_service.TypeTest binding;754 try {755 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();756 }757 catch (javax.xml.rpc.ServiceException jre) {758 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);759 }760 assertTrue("binding is null", binding != null);761 try {762 binding.anyInout(new ObjectHolder(new String()));763 }764 catch (java.rmi.RemoteException re) {765 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);766 }767 }768 public void test34TypeTestAnyOut() {769 test.wsdl.types.comprehensive_service.TypeTest binding;770 try {771 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();772 }773 catch (javax.xml.rpc.ServiceException jre) {774 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);775 }776 assertTrue("binding is null", binding != null);777 try {778 binding.anyOut(new ObjectHolder());779 }780 catch (java.rmi.RemoteException re) {781 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);782 }783 }784 public void test35TypeTestAnyReturn() {785 test.wsdl.types.comprehensive_service.TypeTest binding;786 try {787 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();788 }789 catch (javax.xml.rpc.ServiceException jre) {790 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);791 }792 assertTrue("binding is null", binding != null);793 try {794 Object value = null;795 value = binding.anyReturn();796 }797 catch (java.rmi.RemoteException re) {798 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);799 }800 }801 public void test36TypeTestAnimalIn() {802 test.wsdl.types.comprehensive_service.TypeTest binding;803 try {804 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();805 }806 catch (javax.xml.rpc.ServiceException jre) {807 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);808 }809 assertTrue("binding is null", binding != null);810 try {811 binding.animalIn(new test.wsdl.types.comprehensive_types.Animal());812 }813 catch (java.rmi.RemoteException re) {814 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);815 }816 }817 public void test37TypeTestAnimalInout() {818 test.wsdl.types.comprehensive_service.TypeTest binding;819 try {820 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();821 }822 catch (javax.xml.rpc.ServiceException jre) {823 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);824 }825 assertTrue("binding is null", binding != null);826 try {827 binding.animalInout(new test.wsdl.types.comprehensive_types.AnimalHolder(new test.wsdl.types.comprehensive_types.Animal()));828 }829 catch (java.rmi.RemoteException re) {830 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);831 }832 }833 public void test38TypeTestAnimalOut() {834 test.wsdl.types.comprehensive_service.TypeTest binding;835 try {836 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();837 }838 catch (javax.xml.rpc.ServiceException jre) {839 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);840 }841 assertTrue("binding is null", binding != null);842 try {843 binding.animalOut(new test.wsdl.types.comprehensive_types.AnimalHolder());844 }845 catch (java.rmi.RemoteException re) {846 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);847 }848 }849 public void test39TypeTestAnimalReturn() {850 test.wsdl.types.comprehensive_service.TypeTest binding;851 try {852 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();853 }854 catch (javax.xml.rpc.ServiceException jre) {855 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);856 }857 assertTrue("binding is null", binding != null);858 try {859 test.wsdl.types.comprehensive_types.Animal value = null;860 value = binding.animalReturn();861 }862 catch (java.rmi.RemoteException re) {863 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);864 }865 }866 public void test40TypeTestCatIn() {867 test.wsdl.types.comprehensive_service.TypeTest binding;868 try {869 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();870 }871 catch (javax.xml.rpc.ServiceException jre) {872 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);873 }874 assertTrue("binding is null", binding != null);875 try {876 binding.catIn(new test.wsdl.types.comprehensive_types.Cat());877 }878 catch (java.rmi.RemoteException re) {879 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);880 }881 }882 public void test41TypeTestCatInout() {883 test.wsdl.types.comprehensive_service.TypeTest binding;884 try {885 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();886 }887 catch (javax.xml.rpc.ServiceException jre) {888 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);889 }890 assertTrue("binding is null", binding != null);891 try {892 binding.catInout(new test.wsdl.types.comprehensive_types.CatHolder(new test.wsdl.types.comprehensive_types.Cat()));893 }894 catch (java.rmi.RemoteException re) {895 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);896 }897 }898 public void test42TypeTestCatOut() {899 test.wsdl.types.comprehensive_service.TypeTest binding;900 try {901 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();902 }903 catch (javax.xml.rpc.ServiceException jre) {904 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);905 }906 assertTrue("binding is null", binding != null);907 try {908 binding.catOut(new test.wsdl.types.comprehensive_types.CatHolder());909 }910 catch (java.rmi.RemoteException re) {911 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);912 }913 }914 public void test43TypeTestCatReturn() {915 test.wsdl.types.comprehensive_service.TypeTest binding;916 try {917 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();918 }919 catch (javax.xml.rpc.ServiceException jre) {920 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);921 }922 assertTrue("binding is null", binding != null);923 try {924 test.wsdl.types.comprehensive_types.Cat value = null;925 value = binding.catReturn();926 }927 catch (java.rmi.RemoteException re) {928 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);929 }930 }931 public void test44TypeTestMethodBoolean() {932 test.wsdl.types.comprehensive_service.TypeTest binding;933 try {934 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();935 }936 catch (javax.xml.rpc.ServiceException jre) {937 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);938 }939 assertTrue("binding is null", binding != null);940 try {941 boolean value = false;942 value = binding.methodBoolean(true, new BooleanHolder(true));943 }944 catch (java.rmi.RemoteException re) {945 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);946 }947 }948 public void test45TypeTestMethodByte() {949 test.wsdl.types.comprehensive_service.TypeTest binding;950 try {951 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();952 }953 catch (javax.xml.rpc.ServiceException jre) {954 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);955 }956 assertTrue("binding is null", binding != null);957 try {958 byte value = -3;959 value = binding.methodByte((byte)0, new ByteHolder((byte)0));960 }961 catch (java.rmi.RemoteException re) {962 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);963 }964 }965 public void test46TypeTestMethodShort() {966 test.wsdl.types.comprehensive_service.TypeTest binding;967 try {968 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();969 }970 catch (javax.xml.rpc.ServiceException jre) {971 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);972 }973 assertTrue("binding is null", binding != null);974 try {975 short value = -3;976 value = binding.methodShort((short)0, new ShortHolder((short)0));977 }978 catch (java.rmi.RemoteException re) {979 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);980 }981 }982 public void test47TypeTestMethodInt() {983 test.wsdl.types.comprehensive_service.TypeTest binding;984 try {985 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();986 }987 catch (javax.xml.rpc.ServiceException jre) {988 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);989 }990 assertTrue("binding is null", binding != null);991 try {992 int value = -3;993 value = binding.methodInt(0, new IntHolder(0));994 }995 catch (java.rmi.RemoteException re) {996 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);997 }998 }999 public void test48TypeTestMethodLong() {1000 test.wsdl.types.comprehensive_service.TypeTest binding;1001 try {1002 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1003 }1004 catch (javax.xml.rpc.ServiceException jre) {1005 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1006 }1007 assertTrue("binding is null", binding != null);1008 try {1009 long value = -3;1010 value = binding.methodLong(0, new LongHolder(0));1011 }1012 catch (java.rmi.RemoteException re) {1013 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1014 }1015 }1016 public void test49TypeTestMethodFloat() {1017 test.wsdl.types.comprehensive_service.TypeTest binding;1018 try {1019 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1020 }1021 catch (javax.xml.rpc.ServiceException jre) {1022 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1023 }1024 assertTrue("binding is null", binding != null);1025 try {1026 float value = -3;1027 value = binding.methodFloat(0, new FloatHolder(0));1028 }1029 catch (java.rmi.RemoteException re) {1030 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1031 }1032 }1033 public void test50TypeTestMethodDouble() {1034 test.wsdl.types.comprehensive_service.TypeTest binding;1035 try {1036 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1037 }1038 catch (javax.xml.rpc.ServiceException jre) {1039 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1040 }1041 assertTrue("binding is null", binding != null);1042 try {1043 double value = -3;1044 value = binding.methodDouble(0, new DoubleHolder(0));1045 }1046 catch (java.rmi.RemoteException re) {1047 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1048 }1049 }1050 public void test51TypeTestMethodString() {1051 test.wsdl.types.comprehensive_service.TypeTest binding;1052 try {1053 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1054 }1055 catch (javax.xml.rpc.ServiceException jre) {1056 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1057 }1058 assertTrue("binding is null", binding != null);1059 try {1060 String value = null;1061 value = binding.methodString(new String(), new StringHolder(new String()));1062 }1063 catch (java.rmi.RemoteException re) {1064 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1065 }1066 }1067 public void test52TypeTestMethodInteger() {1068 test.wsdl.types.comprehensive_service.TypeTest binding;1069 try {1070 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1071 }1072 catch (javax.xml.rpc.ServiceException jre) {1073 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1074 }1075 assertTrue("binding is null", binding != null);1076 try {1077 java.math.BigInteger value = null;1078 value = binding.methodInteger(new java.math.BigInteger("0"), new BigIntegerHolder(new java.math.BigInteger("0")));1079 }1080 catch (java.rmi.RemoteException re) {1081 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1082 }1083 }1084 public void test53TypeTestMethodDecimal() {1085 test.wsdl.types.comprehensive_service.TypeTest binding;1086 try {1087 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1088 }1089 catch (javax.xml.rpc.ServiceException jre) {1090 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1091 }1092 assertTrue("binding is null", binding != null);1093 try {1094 java.math.BigDecimal value = null;1095 value = binding.methodDecimal(new java.math.BigDecimal(0), new BigDecimalHolder(new java.math.BigDecimal(0)));1096 }1097 catch (java.rmi.RemoteException re) {1098 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1099 }1100 }1101 public void test54TypeTestMethodDateTime() {1102 test.wsdl.types.comprehensive_service.TypeTest binding;1103 try {1104 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1105 }1106 catch (javax.xml.rpc.ServiceException jre) {1107 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1108 }1109 assertTrue("binding is null", binding != null);1110 try {1111 java.util.Calendar value = null;1112 value = binding.methodDateTime(java.util.Calendar.getInstance(), new CalendarHolder(java.util.Calendar.getInstance()));1113 }1114 catch (java.rmi.RemoteException re) {1115 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1116 }1117 }1118 public void test55TypeTestMethodQName() {1119 test.wsdl.types.comprehensive_service.TypeTest binding;1120 try {1121 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1122 }1123 catch (javax.xml.rpc.ServiceException jre) {1124 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1125 }1126 assertTrue("binding is null", binding != null);1127 try {1128 javax.xml.namespace.QName value = null;1129 value = binding.methodQName(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble"), new QNameHolder(new javax.xml.namespace.QName("http://double-double", "toil-and-trouble")));1130 }1131 catch (java.rmi.RemoteException re) {1132 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1133 }1134 }1135 public void test56TypeTestMethodSoapString() {1136 test.wsdl.types.comprehensive_service.TypeTest binding;1137 try {1138 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1139 }1140 catch (javax.xml.rpc.ServiceException jre) {1141 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1142 }1143 assertTrue("binding is null", binding != null);1144 try {1145 String value = null;1146 value = binding.methodSoapString(new String(), new StringHolder(new String()));1147 }1148 catch (java.rmi.RemoteException re) {1149 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1150 }1151 }1152 public void test57TypeTestMethodSoapBoolean() {1153 test.wsdl.types.comprehensive_service.TypeTest binding;1154 try {1155 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1156 }1157 catch (javax.xml.rpc.ServiceException jre) {1158 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1159 }1160 assertTrue("binding is null", binding != null);1161 try {1162 Boolean value = null;1163 value = binding.methodSoapBoolean(new Boolean(false), new BooleanWrapperHolder(new Boolean(false)));1164 }1165 catch (java.rmi.RemoteException re) {1166 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1167 }1168 }1169 public void test58TypeTestMethodSoapFloat() {1170 test.wsdl.types.comprehensive_service.TypeTest binding;1171 try {1172 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1173 }1174 catch (javax.xml.rpc.ServiceException jre) {1175 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1176 }1177 assertTrue("binding is null", binding != null);1178 try {1179 Float value = null;1180 value = binding.methodSoapFloat(new Float(0), new FloatWrapperHolder(new Float(0)));1181 }1182 catch (java.rmi.RemoteException re) {1183 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1184 }1185 }1186 public void test59TypeTestMethodSoapDouble() {1187 test.wsdl.types.comprehensive_service.TypeTest binding;1188 try {1189 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1190 }1191 catch (javax.xml.rpc.ServiceException jre) {1192 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1193 }1194 assertTrue("binding is null", binding != null);1195 try {1196 Double value = null;1197 value = binding.methodSoapDouble(new Double(0), new DoubleWrapperHolder(new Double(0)));1198 }1199 catch (java.rmi.RemoteException re) {1200 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1201 }1202 }1203 public void test60TypeTestMethodSoapDecimal() {1204 test.wsdl.types.comprehensive_service.TypeTest binding;1205 try {1206 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1207 }1208 catch (javax.xml.rpc.ServiceException jre) {1209 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1210 }1211 assertTrue("binding is null", binding != null);1212 try {1213 java.math.BigDecimal value = null;1214 value = binding.methodSoapDecimal(new java.math.BigDecimal(0), new BigDecimalHolder(new java.math.BigDecimal(0)));1215 }1216 catch (java.rmi.RemoteException re) {1217 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1218 }1219 }1220 public void test61TypeTestMethodSoapInt() {1221 test.wsdl.types.comprehensive_service.TypeTest binding;1222 try {1223 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1224 }1225 catch (javax.xml.rpc.ServiceException jre) {1226 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1227 }1228 assertTrue("binding is null", binding != null);1229 try {1230 Integer value = null;1231 value = binding.methodSoapInt(new Integer(0), new IntegerWrapperHolder(new Integer(0)));1232 }1233 catch (java.rmi.RemoteException re) {1234 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1235 }1236 }1237 public void test62TypeTestMethodSoapShort() {1238 test.wsdl.types.comprehensive_service.TypeTest binding;1239 try {1240 binding = new test.wsdl.types.comprehensive_service.TypeTestServiceLocator().getTypeTest();1241 }1242 catch (javax.xml.rpc.ServiceException jre) {1243 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);1244 }1245 assertTrue("binding is null", binding != null);1246 try {1247 Short value = null;1248 value = binding.methodSoapShort(new Short((short)0), new ShortWrapperHolder(new Short((short)0)));1249 }1250 catch (java.rmi.RemoteException re) {1251 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);1252 }1253 }1254*/1255}...

Full Screen

Full Screen

Source:LineEditorTest.java Github

copy

Full Screen

...156 assertNotNull("insertionIndex failed", _insertionIndex);157 try {158 159 /* 0 */160 } catch (junit.framework.AssertionFailedError error) {161 fail("0 failed: " + error.getMessage());162 }163 164 }165 166 private String _init__getSetText_s() {167 return "ABC";168 }169 170 private void _transition_exprAction__getSetText_transitions0_actions0(final LineEditor it, final String s) {171 try {172 173 it.setText("ABC");174 } catch (junit.framework.AssertionFailedError error) {175 fail("text = \"ABC\" failed: " + error.getMessage());176 }177 178 }179 180 private void _test__getSetText_transitions0_effects0_state(final LineEditor it, final String s) {181 _test__getSetText_transitions0_effects0_state_objectTests0_test(lineEditor, s);182 183 }184 185 private void _test__getSetText_transitions0_effects0_state_objectTests0_test(final LineEditor it, final String s) {186 try {187 188 it.setText(s);189 } catch (junit.framework.AssertionFailedError error) {190 fail("text = s failed after text = \"ABC\": " + error.getMessage());191 }192 try {193 194 int _length = s.length();195 it.setInsertionIndex(_length);196 } catch (junit.framework.AssertionFailedError error_1) {197 fail("insertionIndex = s.length failed after text = \"ABC\": " + error_1.getMessage());198 }199 200 }201 202 private void _transition_exprAction__getSetText_transitions1_actions0(final LineEditor it, final String s) {203 try {204 205 it.setText("");206 } catch (junit.framework.AssertionFailedError error) {207 fail("text = \"\" failed: " + error.getMessage());208 }209 210 }211 212 private void _test__getSetText_transitions1_effects0_state(final LineEditor it, final String s) {213 _test__getSetText_transitions1_effects0_state_objectTests0_test(lineEditor, s);214 215 }216 217 private void _test__getSetText_transitions1_effects0_state_objectTests0_test(final LineEditor it, final String s) {218 try {219 220 it.setText("");221 } catch (junit.framework.AssertionFailedError error) {222 fail("text = \"\" failed after text = \"\": " + error.getMessage());223 }224 try {225 226 it.setInsertionIndex(0);227 } catch (junit.framework.AssertionFailedError error_1) {228 fail("insertionIndex = 0 failed after text = \"\": " + error_1.getMessage());229 }230 231 }232 233 private String _init__getSetInsertionIndex_s() {234 return "ABC";235 }236 237 private void _transition_exprAction__getSetInsertionIndex_transitions0_actions0(final LineEditor it, final String s) {238 try {239 240 it.setText("ABC");241 } catch (junit.framework.AssertionFailedError error) {242 fail("text = \"ABC\" failed: " + error.getMessage());243 }244 245 }246 247 private void _test__getSetInsertionIndex_transitions0_effects0_state(final LineEditor it, final String s) {248 _test__getSetInsertionIndex_transitions0_effects0_state_objectTests0_test(lineEditor, s);249 250 }251 252 private void _test__getSetInsertionIndex_transitions0_effects0_state_objectTests0_test(final LineEditor it, final String s) {253 try {254 255 it.setText(s);256 } catch (junit.framework.AssertionFailedError error) {257 fail("text = s failed after text = \"ABC\": " + error.getMessage());258 }259 try {260 261 int _length = s.length();262 it.setInsertionIndex(_length);263 } catch (junit.framework.AssertionFailedError error_1) {264 fail("insertionIndex = s.length failed after text = \"ABC\": " + error_1.getMessage());265 }266 267 }268 269 private void _transition_exprAction__getSetInsertionIndex_transitions1_actions0(final LineEditor it, final String s) {270 try {271 272 it.setInsertionIndex(0);273 } catch (junit.framework.AssertionFailedError error) {274 fail("insertionIndex = 0 failed: " + error.getMessage());275 }276 277 }278 279 private void _test__getSetInsertionIndex_transitions1_effects0_state(final LineEditor it, final String s) {280 _test__getSetInsertionIndex_transitions1_effects0_state_objectTests0_test(lineEditor, s);281 282 }283 284 private void _test__getSetInsertionIndex_transitions1_effects0_state_objectTests0_test(final LineEditor it, final String s) {285 try {286 287 it.setText(s);288 } catch (junit.framework.AssertionFailedError error) {289 fail("text = s failed after insertionIndex = 0: " + error.getMessage());290 }291 try {292 293 it.setInsertionIndex(0);294 } catch (junit.framework.AssertionFailedError error_1) {295 fail("insertionIndex = 0 failed after insertionIndex = 0: " + error_1.getMessage());296 }297 298 }299 300 private void _transition_exprAction__getSetInsertionIndex_transitions2_actions0(final LineEditor it, final String s) {301 try {302 303 it.setInsertionIndex(3);304 } catch (junit.framework.AssertionFailedError error) {305 fail("insertionIndex = 3 failed: " + error.getMessage());306 }307 308 }309 310 private void _test__getSetInsertionIndex_transitions2_effects0_state(final LineEditor it, final String s) {311 _test__getSetInsertionIndex_transitions2_effects0_state_objectTests0_test(lineEditor, s);312 313 }314 315 private void _test__getSetInsertionIndex_transitions2_effects0_state_objectTests0_test(final LineEditor it, final String s) {316 try {317 318 it.setText(s);319 } catch (junit.framework.AssertionFailedError error) {320 fail("text = s failed after insertionIndex = 3: " + error.getMessage());321 }322 try {323 324 it.setInsertionIndex(3);325 } catch (junit.framework.AssertionFailedError error_1) {326 fail("insertionIndex = 3 failed after insertionIndex = 3: " + error_1.getMessage());327 }328 329 }330 331 private void _transition_exprAction__getSetInsertionIndex_transitions3_actions0(final LineEditor it, final String s) {332 try {333 334 it.setInsertionIndex((-1));335 } catch (junit.framework.AssertionFailedError error) {336 fail("insertionIndex = -1 failed: " + error.getMessage());337 }338 339 }340 341 private void _transition_exprAction__getSetInsertionIndex_transitions4_actions0(final LineEditor it, final String s) {342 try {343 344 it.setInsertionIndex(4);345 } catch (junit.framework.AssertionFailedError error) {346 fail("insertionIndex = 4 failed: " + error.getMessage());347 }348 349 }350 351 private void _transition_exprAction__left_transitions0_actions0(final LineEditor it) {352 try {353 354 it.setText("Ja");355 } catch (junit.framework.AssertionFailedError error) {356 fail("text = \"Ja\" failed: " + error.getMessage());357 }358 359 }360 361 private void _transition_exprAction__left_transitions0_actions1(final LineEditor it) {362 try {363 364 it.setInsertionIndex(2);365 } catch (junit.framework.AssertionFailedError error) {366 fail("insertionIndex = 2 failed: " + error.getMessage());367 }368 369 }370 371 private void _transition_exprAction__left_transitions0_actions2(final LineEditor it) {372 try {373 374 it.left();375 } catch (junit.framework.AssertionFailedError error) {376 fail("left failed: " + error.getMessage());377 }378 379 }380 381 private void _test__left_transitions0_effects0_state(final LineEditor it) {382 _test__left_transitions0_effects0_state_objectTests0_test(lineEditor);383 384 }385 386 private void _test__left_transitions0_effects0_state_objectTests0_test(final LineEditor it) {387 try {388 389 it.setText("Ja");390 } catch (junit.framework.AssertionFailedError error) {391 fail("text = \"Ja\" failed after text = \"Ja\" ,insertionIndex = 2 ,left: " + error.getMessage());392 }393 try {394 395 it.setInsertionIndex(1);396 } catch (junit.framework.AssertionFailedError error_1) {397 fail("insertionIndex = 1 failed after text = \"Ja\" ,insertionIndex = 2 ,left: " + error_1.getMessage());398 }399 400 }401 402 private void _transition_exprAction__left_transitions1_actions0(final LineEditor it) {403 try {404 405 it.left();406 } catch (junit.framework.AssertionFailedError error) {407 fail("left failed: " + error.getMessage());408 }409 410 }411 412 private void _test__left_transitions1_effects0_state(final LineEditor it) {413 _test__left_transitions1_effects0_state_objectTests0_test(lineEditor);414 415 }416 417 private void _test__left_transitions1_effects0_state_objectTests0_test(final LineEditor it) {418 try {419 420 it.setText("Ja");421 } catch (junit.framework.AssertionFailedError error) {422 fail("text = \"Ja\" failed after left: " + error.getMessage());423 }424 try {425 426 it.setInsertionIndex(0);427 } catch (junit.framework.AssertionFailedError error_1) {428 fail("insertionIndex = 0 failed after left: " + error_1.getMessage());429 }430 431 }432 433 private void _transition_exprAction__left_transitions2_actions0(final LineEditor it) {434 try {435 436 it.left();437 } catch (junit.framework.AssertionFailedError error) {438 fail("left failed: " + error.getMessage());439 }440 441 }442 443 private void _test__left_transitions2_effects0_state(final LineEditor it) {444 _test__left_transitions2_effects0_state_objectTests0_test(lineEditor);445 446 }447 448 private void _test__left_transitions2_effects0_state_objectTests0_test(final LineEditor it) {449 try {450 451 it.setText("Ja");452 } catch (junit.framework.AssertionFailedError error) {453 fail("text = \"Ja\" failed after left: " + error.getMessage());454 }455 try {456 457 it.setInsertionIndex(0);458 } catch (junit.framework.AssertionFailedError error_1) {459 fail("insertionIndex = 0 failed after left: " + error_1.getMessage());460 }461 462 }463 464 private void _transition_exprAction__right_transitions0_actions0(final LineEditor it) {465 try {466 467 it.setText("Ja");468 } catch (junit.framework.AssertionFailedError error) {469 fail("text = \"Ja\" failed: " + error.getMessage());470 }471 472 }473 474 private void _transition_exprAction__right_transitions0_actions1(final LineEditor it) {475 try {476 477 it.setInsertionIndex(0);478 } catch (junit.framework.AssertionFailedError error) {479 fail("insertionIndex = 0 failed: " + error.getMessage());480 }481 482 }483 484 private void _transition_exprAction__right_transitions0_actions2(final LineEditor it) {485 try {486 487 it.right();488 } catch (junit.framework.AssertionFailedError error) {489 fail("right failed: " + error.getMessage());490