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 }491 492 }493 494 private void _test__right_transitions0_effects0_state(final LineEditor it) {495 _test__right_transitions0_effects0_state_objectTests0_test(lineEditor);496 497 }498 499 private void _test__right_transitions0_effects0_state_objectTests0_test(final LineEditor it) {500 try {501 502 it.setText("Ja");503 } catch (junit.framework.AssertionFailedError error) {504 fail("text = \"Ja\" failed after text = \"Ja\" ,insertionIndex = 0 ,right: " + error.getMessage());505 }506 try {507 508 it.setInsertionIndex(1);509 } catch (junit.framework.AssertionFailedError error_1) {510 fail("insertionIndex = 1 failed after text = \"Ja\" ,insertionIndex = 0 ,right: " + error_1.getMessage());511 }512 513 }514 515 private void _transition_exprAction__right_transitions1_actions0(final LineEditor it) {516 try {517 518 it.right();519 } catch (junit.framework.AssertionFailedError error) {520 fail("right failed: " + error.getMessage());521 }522 523 }524 525 private void _test__right_transitions1_effects0_state(final LineEditor it) {526 _test__right_transitions1_effects0_state_objectTests0_test(lineEditor);527 528 }529 530 private void _test__right_transitions1_effects0_state_objectTests0_test(final LineEditor it) {531 try {532 533 it.setText("Ja");534 } catch (junit.framework.AssertionFailedError error) {535 fail("text = \"Ja\" failed after right: " + error.getMessage());536 }537 try {538 539 it.setInsertionIndex(2);540 } catch (junit.framework.AssertionFailedError error_1) {541 fail("insertionIndex = 2 failed after right: " + error_1.getMessage());542 }543 544 }545 546 private void _transition_exprAction__right_transitions2_actions0(final LineEditor it) {547 try {548 549 it.right();550 } catch (junit.framework.AssertionFailedError error) {551 fail("right failed: " + error.getMessage());552 }553 554 }555 556 private void _test__right_transitions2_effects0_state(final LineEditor it) {557 _test__right_transitions2_effects0_state_objectTests0_test(lineEditor);558 559 }560 561 private void _test__right_transitions2_effects0_state_objectTests0_test(final LineEditor it) {562 try {563 564 it.setText("Ja");565 } catch (junit.framework.AssertionFailedError error) {566 fail("text = \"Ja\" failed after right: " + error.getMessage());567 }568 try {569 570 it.setInsertionIndex(0);571 } catch (junit.framework.AssertionFailedError error_1) {572 fail("insertionIndex = 0 failed after right: " + error_1.getMessage());573 }574 575 }576 577 private void _transition_exprAction__deleteLeft_transitions0_actions0(final LineEditor it) {578 try {579 580 it.setText("Ja");581 } catch (junit.framework.AssertionFailedError error) {582 fail("text = \"Ja\" failed: " + error.getMessage());583 }584 585 }586 587 private void _transition_exprAction__deleteLeft_transitions0_actions1(final LineEditor it) {588 try {589 590 it.setInsertionIndex(0);591 } catch (junit.framework.AssertionFailedError error) {592 fail("insertionIndex = 0 failed: " + error.getMessage());593 }594 595 }596 597 private void _transition_exprAction__deleteLeft_transitions0_actions2(final LineEditor it) {598 try {599 600 it.deleteLeft();601 } catch (junit.framework.AssertionFailedError error) {602 fail("deleteLeft failed: " + error.getMessage());603 }604 605 }606 607 private void _test__deleteLeft_transitions0_effects0_state(final LineEditor it) {608 _test__deleteLeft_transitions0_effects0_state_objectTests0_test(lineEditor);609 610 }611 612 private void _test__deleteLeft_transitions0_effects0_state_objectTests0_test(final LineEditor it) {613 try {614 615 it.setText("Ja");616 } catch (junit.framework.AssertionFailedError error) {617 fail("text = \"Ja\" failed after text = \"Ja\" ,insertionIndex = 0 ,deleteLeft: " + error.getMessage());618 }619 try {620 621 it.setInsertionIndex(0);622 } catch (junit.framework.AssertionFailedError error_1) {623 fail("insertionIndex = 0 failed after text = \"Ja\" ,insertionIndex = 0 ,deleteLeft: " + error_1.getMessage());624 }625 626 }627 628 private void _transition_exprAction__deleteLeft_transitions1_actions0(final LineEditor it) {629 try {630 631 it.setInsertionIndex(1);632 } catch (junit.framework.AssertionFailedError error) {633 fail("insertionIndex = 1 failed: " + error.getMessage());634 }635 636 }637 638 private void _transition_exprAction__deleteLeft_transitions1_actions1(final LineEditor it) {639 try {640 641 it.deleteLeft();642 } catch (junit.framework.AssertionFailedError error) {643 fail("deleteLeft failed: " + error.getMessage());644 }645 646 }647 648 private void _test__deleteLeft_transitions1_effects0_state(final LineEditor it) {649 _test__deleteLeft_transitions1_effects0_state_objectTests0_test(lineEditor);650 651 }652 653 private void _test__deleteLeft_transitions1_effects0_state_objectTests0_test(final LineEditor it) {654 try {655 656 it.setText("a");657 } catch (junit.framework.AssertionFailedError error) {658 fail("text = \"a\" failed after insertionIndex = 1 ,deleteLeft: " + error.getMessage());659 }660 try {661 662 it.setInsertionIndex(0);663 } catch (junit.framework.AssertionFailedError error_1) {664 fail("insertionIndex = 0 failed after insertionIndex = 1 ,deleteLeft: " + error_1.getMessage());665 }666 667 }668 669 private void _transition_exprAction__deleteLeft_transitions2_actions0(final LineEditor it) {670 try {671 672 it.deleteLeft();673 } catch (junit.framework.AssertionFailedError error) {674 fail("deleteLeft failed: " + error.getMessage());675 }676 677 }678 679 private void _test__deleteLeft_transitions2_effects0_state(final LineEditor it) {680 _test__deleteLeft_transitions2_effects0_state_objectTests0_test(lineEditor);681 682 }683 684 private void _test__deleteLeft_transitions2_effects0_state_objectTests0_test(final LineEditor it) {685 try {686 687 it.setText("a");688 } catch (junit.framework.AssertionFailedError error) {689 fail("text = \"a\" failed after deleteLeft: " + error.getMessage());690 }691 try {692 693 it.setInsertionIndex(0);694 } catch (junit.framework.AssertionFailedError error_1) {695 fail("insertionIndex = 0 failed after deleteLeft: " + error_1.getMessage());696 }697 698 }699 700 private void _transition_exprAction__deleteLeft_transitions3_actions0(final LineEditor it) {701 try {702 703 it.setText("Ja");704 } catch (junit.framework.AssertionFailedError error) {705 fail("text = \"Ja\" failed: " + error.getMessage());706 }707 708 }709 710 private void _transition_exprAction__deleteLeft_transitions3_actions1(final LineEditor it) {711 try {712 713 it.setInsertionIndex(2);714 } catch (junit.framework.AssertionFailedError error) {715 fail("insertionIndex = 2 failed: " + error.getMessage());716 }717 718 }719 720 private void _transition_exprAction__deleteLeft_transitions3_actions2(final LineEditor it) {721 try {722 723 it.deleteLeft();724 } catch (junit.framework.AssertionFailedError error) {725 fail("deleteLeft failed: " + error.getMessage());726 }727 728 }729 730 private void _test__deleteLeft_transitions3_effects0_state(final LineEditor it) {731 _test__deleteLeft_transitions3_effects0_state_objectTests0_test(lineEditor);732 733 }734 735 private void _test__deleteLeft_transitions3_effects0_state_objectTests0_test(final LineEditor it) {736 try {737 738 it.setText("J");739 } catch (junit.framework.AssertionFailedError error) {740 fail("text = \"J\" failed after text = \"Ja\" ,insertionIndex = 2 ,deleteLeft: " + error.getMessage());741 }742 try {743 744 it.setInsertionIndex(1);745 } catch (junit.framework.AssertionFailedError error_1) {746 fail("insertionIndex = 1 failed after text = \"Ja\" ,insertionIndex = 2 ,deleteLeft: " + error_1.getMessage());747 }748 749 }750 751 private void _transition_exprAction__deleteLeft_transitions4_actions0(final LineEditor it) {752 try {753 754 it.deleteLeft();755 } catch (junit.framework.AssertionFailedError error) {756 fail("deleteLeft failed: " + error.getMessage());757 }758 759 }760 761 private void _test__deleteLeft_transitions4_effects0_state(final LineEditor it) {762 _test__deleteLeft_transitions4_effects0_state_objectTests0_test(lineEditor);763 764 }765 766 private void _test__deleteLeft_transitions4_effects0_state_objectTests0_test(final LineEditor it) {767 try {768 769 it.setText("");770 } catch (junit.framework.AssertionFailedError error) {771 fail("text = \"\" failed after deleteLeft: " + error.getMessage());772 }773 try {774 775 it.setInsertionIndex(0);776 } catch (junit.framework.AssertionFailedError error_1) {777 fail("insertionIndex = 0 failed after deleteLeft: " + error_1.getMessage());778 }779 780 }781 782 private void _transition_exprAction__deleteLeft_transitions5_actions0(final LineEditor it) {783 try {784 785 it.deleteLeft();786 } catch (junit.framework.AssertionFailedError error) {787 fail("deleteLeft failed: " + error.getMessage());788 }789 790 }791 792 private void _test__deleteLeft_transitions5_effects0_state(final LineEditor it) {793 _test__deleteLeft_transitions5_effects0_state_objectTests0_test(lineEditor);794 795 }796 797 private void _test__deleteLeft_transitions5_effects0_state_objectTests0_test(final LineEditor it) {798 try {799 800 it.setText("");801 } catch (junit.framework.AssertionFailedError error) {802 fail("text = \"\" failed after deleteLeft: " + error.getMessage());803 }804 try {805 806 it.setInsertionIndex(0);807 } catch (junit.framework.AssertionFailedError error_1) {808 fail("insertionIndex = 0 failed after deleteLeft: " + error_1.getMessage());809 }810 811 }812 813 private void _transition_exprAction__deleteRight_transitions0_actions0(final LineEditor it) {814 try {815 816 it.setText("Ja");817 } catch (junit.framework.AssertionFailedError error) {818 fail("text = \"Ja\" failed: " + error.getMessage());819 }820 821 }822 823 private void _transition_exprAction__deleteRight_transitions0_actions1(final LineEditor it) {824 try {825 826 it.setInsertionIndex(2);827 } catch (junit.framework.AssertionFailedError error) {828 fail("insertionIndex = 2 failed: " + error.getMessage());829 }830 831 }832 833 private void _transition_exprAction__deleteRight_transitions0_actions2(final LineEditor it) {834 try {835 836 it.deleteRight();837 } catch (junit.framework.AssertionFailedError error) {838 fail("deleteRight failed: " + error.getMessage());839 }840 841 }842 843 private void _test__deleteRight_transitions0_effects0_state(final LineEditor it) {844 _test__deleteRight_transitions0_effects0_state_objectTests0_test(lineEditor);845 846 }847 848 private void _test__deleteRight_transitions0_effects0_state_objectTests0_test(final LineEditor it) {849 try {850 851 it.setText("Ja");852 } catch (junit.framework.AssertionFailedError error) {853 fail("text = \"Ja\" failed after text = \"Ja\" ,insertionIndex = 2 ,deleteRight: " + error.getMessage());854 }855 try {856 857 it.setInsertionIndex(2);858 } catch (junit.framework.AssertionFailedError error_1) {859 fail("insertionIndex = 2 failed after text = \"Ja\" ,insertionIndex = 2 ,deleteRight: " + error_1.getMessage());860 }861 862 }863 864 private void _transition_exprAction__deleteRight_transitions1_actions0(final LineEditor it) {865 try {866 867 it.setInsertionIndex(1);868 } catch (junit.framework.AssertionFailedError error) {869 fail("insertionIndex = 1 failed: " + error.getMessage());870 }871 872 }873 874 private void _transition_exprAction__deleteRight_transitions1_actions1(final LineEditor it) {875 try {876 877 it.deleteRight();878 } catch (junit.framework.AssertionFailedError error) {879 fail("deleteRight failed: " + error.getMessage());880 }881 882 }883 884 private void _test__deleteRight_transitions1_effects0_state(final LineEditor it) {885 _test__deleteRight_transitions1_effects0_state_objectTests0_test(lineEditor);886 887 }888 889 private void _test__deleteRight_transitions1_effects0_state_objectTests0_test(final LineEditor it) {890 try {891 892 it.setText("J");893 } catch (junit.framework.AssertionFailedError error) {894 fail("text = \"J\" failed after insertionIndex = 1 ,deleteRight: " + error.getMessage());895 }896 try {897 898 it.setInsertionIndex(1);899 } catch (junit.framework.AssertionFailedError error_1) {900 fail("insertionIndex = 1 failed after insertionIndex = 1 ,deleteRight: " + error_1.getMessage());901 }902 903 }904 905 private void _transition_exprAction__deleteRight_transitions2_actions0(final LineEditor it) {906 try {907 908 it.deleteRight();909 } catch (junit.framework.AssertionFailedError error) {910 fail("deleteRight failed: " + error.getMessage());911 }912 913 }914 915 private void _test__deleteRight_transitions2_effects0_state(final LineEditor it) {916 _test__deleteRight_transitions2_effects0_state_objectTests0_test(lineEditor);917 918 }919 920 private void _test__deleteRight_transitions2_effects0_state_objectTests0_test(final LineEditor it) {921 try {922 923 it.setText("J");924 } catch (junit.framework.AssertionFailedError error) {925 fail("text = \"J\" failed after deleteRight: " + error.getMessage());926 }927 try {928 929 it.setInsertionIndex(1);930 } catch (junit.framework.AssertionFailedError error_1) {931 fail("insertionIndex = 1 failed after deleteRight: " + error_1.getMessage());932 }933 934 }935 936 private void _transition_exprAction__deleteRight_transitions3_actions0(final LineEditor it) {937 try {938 939 it.setText("Ja");940 } catch (junit.framework.AssertionFailedError error) {941 fail("text = \"Ja\" failed: " + error.getMessage());942 }943 944 }945 946 private void _transition_exprAction__deleteRight_transitions3_actions1(final LineEditor it) {947 try {948 949 it.setInsertionIndex(0);950 } catch (junit.framework.AssertionFailedError error) {951 fail("insertionIndex = 0 failed: " + error.getMessage());952 }953 954 }955 956 private void _transition_exprAction__deleteRight_transitions3_actions2(final LineEditor it) {957 try {958 959 it.deleteRight();960 } catch (junit.framework.AssertionFailedError error) {961 fail("deleteRight failed: " + error.getMessage());962 }963 964 }965 966 private void _test__deleteRight_transitions3_effects0_state(final LineEditor it) {967 _test__deleteRight_transitions3_effects0_state_objectTests0_test(lineEditor);968 969 }970 971 private void _test__deleteRight_transitions3_effects0_state_objectTests0_test(final LineEditor it) {972 try {973 974 it.setText("a");975 } catch (junit.framework.AssertionFailedError error) {976 fail("text = \"a\" failed after text = \"Ja\" ,insertionIndex = 0 ,deleteRight: " + error.getMessage());977 }978 try {979 980 it.setInsertionIndex(0);981 } catch (junit.framework.AssertionFailedError error_1) {982 fail("insertionIndex = 0 failed after text = \"Ja\" ,insertionIndex = 0 ,deleteRight: " + error_1.getMessage());983 }984 985 }986 987 private void _transition_exprAction__deleteRight_transitions4_actions0(final LineEditor it) {988 try {989 990 it.deleteRight();991 } catch (junit.framework.AssertionFailedError error) {992 fail("deleteRight failed: " + error.getMessage());993 }994 995 }996 997 private void _test__deleteRight_transitions4_effects0_state(final LineEditor it) {998 _test__deleteRight_transitions4_effects0_state_objectTests0_test(lineEditor);999 1000 }1001 1002 private void _test__deleteRight_transitions4_effects0_state_objectTests0_test(final LineEditor it) {1003 try {1004 1005 it.setText("");1006 } catch (junit.framework.AssertionFailedError error) {1007 fail("text = \"\" failed after deleteRight: " + error.getMessage());1008 }1009 try {1010 1011 it.setInsertionIndex(0);1012 } catch (junit.framework.AssertionFailedError error_1) {1013 fail("insertionIndex = 0 failed after deleteRight: " + error_1.getMessage());1014 }1015 1016 }1017 1018 private void _transition_exprAction__deleteRight_transitions5_actions0(final LineEditor it) {1019 try {1020 1021 it.deleteRight();1022 } catch (junit.framework.AssertionFailedError error) {1023 fail("deleteRight failed: " + error.getMessage());1024 }1025 1026 }1027 1028 private void _test__deleteRight_transitions5_effects0_state(final LineEditor it) {1029 _test__deleteRight_transitions5_effects0_state_objectTests0_test(lineEditor);1030 1031 }1032 1033 private void _test__deleteRight_transitions5_effects0_state_objectTests0_test(final LineEditor it) {1034 try {1035 1036 it.setText("");1037 } catch (junit.framework.AssertionFailedError error) {1038 fail("text = \"\" failed after deleteRight: " + error.getMessage());1039 }1040 try {1041 1042 it.setInsertionIndex(0);1043 } catch (junit.framework.AssertionFailedError error_1) {1044 fail("insertionIndex = 0 failed after deleteRight: " + error_1.getMessage());1045 }1046 1047 }1048 1049 private void _transition_exprAction__insertString_transitions0_actions0(final LineEditor it) {1050 try {1051 1052 it.insertString("");1053 } catch (junit.framework.AssertionFailedError error) {1054 fail("insertString(\"\") failed: " + error.getMessage());1055 }1056 1057 }1058 1059 private void _test__insertString_transitions0_effects0_state(final LineEditor it) {1060 _test__insertString_transitions0_effects0_state_objectTests0_test(lineEditor);1061 1062 }1063 1064 private void _test__insertString_transitions0_effects0_state_objectTests0_test(final LineEditor it) {1065 try {1066 1067 it.setText("");1068 } catch (junit.framework.AssertionFailedError error) {1069 fail("text = \"\" failed after insertString(\"\"): " + error.getMessage());1070 }1071 try {1072 1073 it.setInsertionIndex(0);1074 } catch (junit.framework.AssertionFailedError error_1) {1075 fail("insertionIndex = 0 failed after insertString(\"\"): " + error_1.getMessage());1076 }1077 1078 }1079 1080 private void _transition_exprAction__insertString_transitions1_actions0(final LineEditor it) {1081 try {1082 1083 it.insertString("Java");1084 } catch (junit.framework.AssertionFailedError error) {1085 fail("insertString(\"Java\") failed: " + error.getMessage());1086 }1087 1088 }1089 1090 private void _test__insertString_transitions1_effects0_state(final LineEditor it) {1091 _test__insertString_transitions1_effects0_state_objectTests0_test(lineEditor);1092 1093 }1094 1095 private void _test__insertString_transitions1_effects0_state_objectTests0_test(final LineEditor it) {1096 try {1097 1098 it.setText("Java");1099 } catch (junit.framework.AssertionFailedError error) {1100 fail("text = \"Java\" failed after insertString(\"Java\"): " + error.getMessage());1101 }1102 try {1103 1104 it.setInsertionIndex(4);1105 } catch (junit.framework.AssertionFailedError error_1) {1106 fail("insertionIndex = 4 failed after insertString(\"Java\"): " + error_1.getMessage());1107 }1108 1109 }1110 1111 private void _transition_exprAction__insertString_transitions2_actions0(final LineEditor it) {1112 try {1113 1114 it.insertString(" er g\u00F8y!");1115 } catch (junit.framework.AssertionFailedError error) {1116 fail("insertString(\" er gøy!\") failed: " + error.getMessage());1117 }1118 1119 }1120 1121 private void _test__insertString_transitions2_effects0_state(final LineEditor it) {1122 _test__insertString_transitions2_effects0_state_objectTests0_test(lineEditor);1123 1124 }1125 1126 private void _test__insertString_transitions2_effects0_state_objectTests0_test(final LineEditor it) {1127 try {1128 1129 it.setText("Java er g\u00F8y!");1130 } catch (junit.framework.AssertionFailedError error) {1131 fail("text = \"Java er gøy!\" failed after insertString(\" er gøy!\"): " + error.getMessage());1132 }1133 try {1134 1135 it.setInsertionIndex(12);1136 } catch (junit.framework.AssertionFailedError error_1) {1137 fail("insertionIndex = 12 failed after insertString(\" er gøy!\"): " + error_1.getMessage());1138 }1139 1140 }1141 1142 private void _transition_exprAction__insertString_transitions3_actions0(final LineEditor it) {1143 try {1144 1145 it.setText("Javag\u00F8y!");1146 } catch (junit.framework.AssertionFailedError error) {1147 fail("text = \"Javagøy!\" failed: " + error.getMessage());1148 }1149 1150 }1151 1152 private void _transition_exprAction__insertString_transitions3_actions1(final LineEditor it) {1153 try {1154 1155 it.setInsertionIndex(4);1156 } catch (junit.framework.AssertionFailedError error) {1157 fail("insertionIndex = 4 failed: " + error.getMessage());1158 }1159 1160 }1161 1162 private void _transition_exprAction__insertString_transitions3_actions2(final LineEditor it) {1163 try {1164 1165 it.insertString(" er ");1166 } catch (junit.framework.AssertionFailedError error) {1167 fail("insertString(\" er \") failed: " + error.getMessage());1168 }1169 1170 }1171 1172 private void _test__insertString_transitions3_effects0_state(final LineEditor it) {1173 _test__insertString_transitions3_effects0_state_objectTests0_test(lineEditor);1174 1175 }1176 1177 private void _test__insertString_transitions3_effects0_state_objectTests0_test(final LineEditor it) {1178 try {1179 1180 it.setText("Java er g\u00F8y!");1181 } catch (junit.framework.AssertionFailedError error) {1182 fail("text = \"Java er gøy!\" failed after text = \"Javagøy!\" ,insertionIndex = 4 ,insertString(\" er \"): " + error.getMessage());1183 }1184 try {1185 1186 it.setInsertionIndex(8);1187 } catch (junit.framework.AssertionFailedError error_1) {1188 fail("insertionIndex = 8 failed after text = \"Javagøy!\" ,insertionIndex = 4 ,insertString(\" er \"): " + error_1.getMessage());1189 }1190 1191 }1192 1193 private void _transition_exprAction__insertString_transitions4_actions0(final LineEditor it) {1194 try {1195 1196 it.setText("er g\u00F8y!");1197 } catch (junit.framework.AssertionFailedError error) {1198 fail("text = \"er gøy!\" failed: " + error.getMessage());1199 }1200 1201 }1202 1203 private void _transition_exprAction__insertString_transitions4_actions1(final LineEditor it) {1204 try {1205 1206 it.setInsertionIndex(0);1207 } catch (junit.framework.AssertionFailedError error) {1208 fail("insertionIndex = 0 failed: " + error.getMessage());1209 }1210 1211 }1212 1213 private void _transition_exprAction__insertString_transitions4_actions2(final LineEditor it) {1214 try {1215 1216 it.insertString("Java ");1217 } catch (junit.framework.AssertionFailedError error) {1218 fail("insertString(\"Java \") failed: " + error.getMessage());1219 }1220 1221 }1222 1223 private void _test__insertString_transitions4_effects0_state(final LineEditor it) {1224 _test__insertString_transitions4_effects0_state_objectTests0_test(lineEditor);1225 1226 }1227 1228 private void _test__insertString_transitions4_effects0_state_objectTests0_test(final LineEditor it) {1229 try {1230 1231 it.setText("Java er g\u00F8y!");1232 } catch (junit.framework.AssertionFailedError error) {1233 fail("text = \"Java er gøy!\" failed after text = \"er gøy!\" ,insertionIndex = 0 ,insertString(\"Java \"): " + error.getMessage());1234 }1235 try {1236 1237 it.setInsertionIndex(5);1238 } catch (junit.framework.AssertionFailedError error_1) {1239 fail("insertionIndex = 5 failed after text = \"er gøy!\" ,insertionIndex = 0 ,insertString(\"Java \"): " + error_1.getMessage());1240 }1241 1242 }1243}...

Full Screen

Full Screen

Source:SforceServiceTestCase.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 com.sforce.soap.partner.LoginResult value = null;35 value = binding.login(new java.lang.String(), new java.lang.String());36 }37 catch (com.sforce.soap.partner.fault.InvalidIdFault e1) {38 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e1);39 }40 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {41 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);42 }43 catch (com.sforce.soap.partner.fault.LoginFault e3) {44 throw new junit.framework.AssertionFailedError("LoginFault Exception caught: " + e3);45 }46 // TBD - validate results47 }48 public void test2SoapDescribeSObject() throws Exception {49 com.sforce.soap.partner.SoapBindingStub binding;50 try {51 binding = (com.sforce.soap.partner.SoapBindingStub)52 new com.sforce.soap.partner.SforceServiceLocator().getSoap();53 }54 catch (javax.xml.rpc.ServiceException jre) {55 if(jre.getLinkedCause()!=null)56 jre.getLinkedCause().printStackTrace();57 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);58 }59 assertNotNull("binding is null", binding);60 // Time out after a minute61 binding.setTimeout(60000);62 // Test operation63 try {64 com.sforce.soap.partner.DescribeSObjectResult value = null;65 value = binding.describeSObject(new java.lang.String());66 }67 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {68 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);69 }70 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {71 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);72 }73 // TBD - validate results74 }75 public void test3SoapDescribeSObjects() throws Exception {76 com.sforce.soap.partner.SoapBindingStub binding;77 try {78 binding = (com.sforce.soap.partner.SoapBindingStub)79 new com.sforce.soap.partner.SforceServiceLocator().getSoap();80 }81 catch (javax.xml.rpc.ServiceException jre) {82 if(jre.getLinkedCause()!=null)83 jre.getLinkedCause().printStackTrace();84 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);85 }86 assertNotNull("binding is null", binding);87 // Time out after a minute88 binding.setTimeout(60000);89 // Test operation90 try {91 com.sforce.soap.partner.DescribeSObjectResult[] value = null;92 value = binding.describeSObjects(new java.lang.String[0]);93 }94 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {95 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);96 }97 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {98 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);99 }100 // TBD - validate results101 }102 public void test4SoapDescribeGlobal() throws Exception {103 com.sforce.soap.partner.SoapBindingStub binding;104 try {105 binding = (com.sforce.soap.partner.SoapBindingStub)106 new com.sforce.soap.partner.SforceServiceLocator().getSoap();107 }108 catch (javax.xml.rpc.ServiceException jre) {109 if(jre.getLinkedCause()!=null)110 jre.getLinkedCause().printStackTrace();111 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);112 }113 assertNotNull("binding is null", binding);114 // Time out after a minute115 binding.setTimeout(60000);116 // Test operation117 try {118 com.sforce.soap.partner.DescribeGlobalResult value = null;119 value = binding.describeGlobal();120 }121 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {122 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);123 }124 // TBD - validate results125 }126 public void test5SoapDescribeLayout() throws Exception {127 com.sforce.soap.partner.SoapBindingStub binding;128 try {129 binding = (com.sforce.soap.partner.SoapBindingStub)130 new com.sforce.soap.partner.SforceServiceLocator().getSoap();131 }132 catch (javax.xml.rpc.ServiceException jre) {133 if(jre.getLinkedCause()!=null)134 jre.getLinkedCause().printStackTrace();135 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);136 }137 assertNotNull("binding is null", binding);138 // Time out after a minute139 binding.setTimeout(60000);140 // Test operation141 try {142 com.sforce.soap.partner.DescribeLayoutResult value = null;143 value = binding.describeLayout(new java.lang.String(), new java.lang.String[0]);144 }145 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {146 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);147 }148 catch (com.sforce.soap.partner.fault.InvalidIdFault e2) {149 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e2);150 }151 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e3) {152 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e3);153 }154 // TBD - validate results155 }156 public void test6SoapDescribeSoftphoneLayout() throws Exception {157 com.sforce.soap.partner.SoapBindingStub binding;158 try {159 binding = (com.sforce.soap.partner.SoapBindingStub)160 new com.sforce.soap.partner.SforceServiceLocator().getSoap();161 }162 catch (javax.xml.rpc.ServiceException jre) {163 if(jre.getLinkedCause()!=null)164 jre.getLinkedCause().printStackTrace();165 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);166 }167 assertNotNull("binding is null", binding);168 // Time out after a minute169 binding.setTimeout(60000);170 // Test operation171 try {172 com.sforce.soap.partner.DescribeSoftphoneLayoutResult value = null;173 value = binding.describeSoftphoneLayout();174 }175 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {176 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);177 }178 // TBD - validate results179 }180 public void test7SoapDescribeTabs() throws Exception {181 com.sforce.soap.partner.SoapBindingStub binding;182 try {183 binding = (com.sforce.soap.partner.SoapBindingStub)184 new com.sforce.soap.partner.SforceServiceLocator().getSoap();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.sforce.soap.partner.DescribeTabSetResult[] value = null;197 value = binding.describeTabs();198 }199 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {200 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);201 }202 // TBD - validate results203 }204 public void test8SoapCreate() throws Exception {205 com.sforce.soap.partner.SoapBindingStub binding;206 try {207 binding = (com.sforce.soap.partner.SoapBindingStub)208 new com.sforce.soap.partner.SforceServiceLocator().getSoap();209 }210 catch (javax.xml.rpc.ServiceException jre) {211 if(jre.getLinkedCause()!=null)212 jre.getLinkedCause().printStackTrace();213 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);214 }215 assertNotNull("binding is null", binding);216 // Time out after a minute217 binding.setTimeout(60000);218 // Test operation219 try {220 com.sforce.soap.partner.SaveResult[] value = null;221 value = binding.create(new com.sforce.soap.partner.sobject.SObject[0]);222 }223 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {224 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);225 }226 catch (com.sforce.soap.partner.fault.InvalidIdFault e2) {227 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e2);228 }229 catch (com.sforce.soap.partner.fault.InvalidFieldFault e3) {230 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e3);231 }232 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e4) {233 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e4);234 }235 // TBD - validate results236 }237 public void test9SoapUpdate() throws Exception {238 com.sforce.soap.partner.SoapBindingStub binding;239 try {240 binding = (com.sforce.soap.partner.SoapBindingStub)241 new com.sforce.soap.partner.SforceServiceLocator().getSoap();242 }243 catch (javax.xml.rpc.ServiceException jre) {244 if(jre.getLinkedCause()!=null)245 jre.getLinkedCause().printStackTrace();246 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);247 }248 assertNotNull("binding is null", binding);249 // Time out after a minute250 binding.setTimeout(60000);251 // Test operation252 try {253 com.sforce.soap.partner.SaveResult[] value = null;254 value = binding.update(new com.sforce.soap.partner.sobject.SObject[0]);255 }256 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {257 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);258 }259 catch (com.sforce.soap.partner.fault.InvalidIdFault e2) {260 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e2);261 }262 catch (com.sforce.soap.partner.fault.InvalidFieldFault e3) {263 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e3);264 }265 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e4) {266 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e4);267 }268 // TBD - validate results269 }270 public void test10SoapUpsert() throws Exception {271 com.sforce.soap.partner.SoapBindingStub binding;272 try {273 binding = (com.sforce.soap.partner.SoapBindingStub)274 new com.sforce.soap.partner.SforceServiceLocator().getSoap();275 }276 catch (javax.xml.rpc.ServiceException jre) {277 if(jre.getLinkedCause()!=null)278 jre.getLinkedCause().printStackTrace();279 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);280 }281 assertNotNull("binding is null", binding);282 // Time out after a minute283 binding.setTimeout(60000);284 // Test operation285 try {286 com.sforce.soap.partner.UpsertResult[] value = null;287 value = binding.upsert(new java.lang.String(), new com.sforce.soap.partner.sobject.SObject[0]);288 }289 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {290 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);291 }292 catch (com.sforce.soap.partner.fault.InvalidIdFault e2) {293 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e2);294 }295 catch (com.sforce.soap.partner.fault.InvalidFieldFault e3) {296 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e3);297 }298 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e4) {299 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e4);300 }301 // TBD - validate results302 }303 public void test11SoapMerge() throws Exception {304 com.sforce.soap.partner.SoapBindingStub binding;305 try {306 binding = (com.sforce.soap.partner.SoapBindingStub)307 new com.sforce.soap.partner.SforceServiceLocator().getSoap();308 }309 catch (javax.xml.rpc.ServiceException jre) {310 if(jre.getLinkedCause()!=null)311 jre.getLinkedCause().printStackTrace();312 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);313 }314 assertNotNull("binding is null", binding);315 // Time out after a minute316 binding.setTimeout(60000);317 // Test operation318 try {319 com.sforce.soap.partner.MergeResult[] value = null;320 value = binding.merge(new com.sforce.soap.partner.MergeRequest[0]);321 }322 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {323 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);324 }325 catch (com.sforce.soap.partner.fault.InvalidIdFault e2) {326 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e2);327 }328 catch (com.sforce.soap.partner.fault.InvalidFieldFault e3) {329 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e3);330 }331 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e4) {332 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e4);333 }334 // TBD - validate results335 }336 public void test12SoapDelete() throws Exception {337 com.sforce.soap.partner.SoapBindingStub binding;338 try {339 binding = (com.sforce.soap.partner.SoapBindingStub)340 new com.sforce.soap.partner.SforceServiceLocator().getSoap();341 }342 catch (javax.xml.rpc.ServiceException jre) {343 if(jre.getLinkedCause()!=null)344 jre.getLinkedCause().printStackTrace();345 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);346 }347 assertNotNull("binding is null", binding);348 // Time out after a minute349 binding.setTimeout(60000);350 // Test operation351 try {352 com.sforce.soap.partner.DeleteResult[] value = null;353 value = binding.delete(new java.lang.String[0]);354 }355 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {356 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);357 }358 // TBD - validate results359 }360 public void test13SoapUndelete() throws Exception {361 com.sforce.soap.partner.SoapBindingStub binding;362 try {363 binding = (com.sforce.soap.partner.SoapBindingStub)364 new com.sforce.soap.partner.SforceServiceLocator().getSoap();365 }366 catch (javax.xml.rpc.ServiceException jre) {367 if(jre.getLinkedCause()!=null)368 jre.getLinkedCause().printStackTrace();369 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);370 }371 assertNotNull("binding is null", binding);372 // Time out after a minute373 binding.setTimeout(60000);374 // Test operation375 try {376 com.sforce.soap.partner.UndeleteResult[] value = null;377 value = binding.undelete(new java.lang.String[0]);378 }379 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {380 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);381 }382 // TBD - validate results383 }384 public void test14SoapEmptyRecycleBin() throws Exception {385 com.sforce.soap.partner.SoapBindingStub binding;386 try {387 binding = (com.sforce.soap.partner.SoapBindingStub)388 new com.sforce.soap.partner.SforceServiceLocator().getSoap();389 }390 catch (javax.xml.rpc.ServiceException jre) {391 if(jre.getLinkedCause()!=null)392 jre.getLinkedCause().printStackTrace();393 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);394 }395 assertNotNull("binding is null", binding);396 // Time out after a minute397 binding.setTimeout(60000);398 // Test operation399 try {400 com.sforce.soap.partner.EmptyRecycleBinResult[] value = null;401 value = binding.emptyRecycleBin(new java.lang.String[0]);402 }403 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {404 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);405 }406 // TBD - validate results407 }408 public void test15SoapRetrieve() throws Exception {409 com.sforce.soap.partner.SoapBindingStub binding;410 try {411 binding = (com.sforce.soap.partner.SoapBindingStub)412 new com.sforce.soap.partner.SforceServiceLocator().getSoap();413 }414 catch (javax.xml.rpc.ServiceException jre) {415 if(jre.getLinkedCause()!=null)416 jre.getLinkedCause().printStackTrace();417 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);418 }419 assertNotNull("binding is null", binding);420 // Time out after a minute421 binding.setTimeout(60000);422 // Test operation423 try {424 com.sforce.soap.partner.sobject.SObject[] value = null;425 value = binding.retrieve(new java.lang.String(), new java.lang.String(), new java.lang.String[0]);426 }427 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {428 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);429 }430 catch (com.sforce.soap.partner.fault.MalformedQueryFault e2) {431 throw new junit.framework.AssertionFailedError("MalformedQueryFault Exception caught: " + e2);432 }433 catch (com.sforce.soap.partner.fault.InvalidIdFault e3) {434 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e3);435 }436 catch (com.sforce.soap.partner.fault.InvalidFieldFault e4) {437 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e4);438 }439 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e5) {440 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e5);441 }442 // TBD - validate results443 }444 public void test16SoapProcess() throws Exception {445 com.sforce.soap.partner.SoapBindingStub binding;446 try {447 binding = (com.sforce.soap.partner.SoapBindingStub)448 new com.sforce.soap.partner.SforceServiceLocator().getSoap();449 }450 catch (javax.xml.rpc.ServiceException jre) {451 if(jre.getLinkedCause()!=null)452 jre.getLinkedCause().printStackTrace();453 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);454 }455 assertNotNull("binding is null", binding);456 // Time out after a minute457 binding.setTimeout(60000);458 // Test operation459 try {460 com.sforce.soap.partner.ProcessResult[] value = null;461 value = binding.process(new com.sforce.soap.partner.ProcessRequest[0]);462 }463 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {464 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);465 }466 // TBD - validate results467 }468 public void test17SoapConvertLead() throws Exception {469 com.sforce.soap.partner.SoapBindingStub binding;470 try {471 binding = (com.sforce.soap.partner.SoapBindingStub)472 new com.sforce.soap.partner.SforceServiceLocator().getSoap();473 }474 catch (javax.xml.rpc.ServiceException jre) {475 if(jre.getLinkedCause()!=null)476 jre.getLinkedCause().printStackTrace();477 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);478 }479 assertNotNull("binding is null", binding);480 // Time out after a minute481 binding.setTimeout(60000);482 // Test operation483 try {484 com.sforce.soap.partner.LeadConvertResult[] value = null;485 value = binding.convertLead(new com.sforce.soap.partner.LeadConvert[0]);486 }487 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {488 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);489 }490 // TBD - validate results491 }492 public void test18SoapGetDeleted() throws Exception {493 com.sforce.soap.partner.SoapBindingStub binding;494 try {495 binding = (com.sforce.soap.partner.SoapBindingStub)496 new com.sforce.soap.partner.SforceServiceLocator().getSoap();497 }498 catch (javax.xml.rpc.ServiceException jre) {499 if(jre.getLinkedCause()!=null)500 jre.getLinkedCause().printStackTrace();501 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);502 }503 assertNotNull("binding is null", binding);504 // Time out after a minute505 binding.setTimeout(60000);506 // Test operation507 try {508 com.sforce.soap.partner.GetDeletedResult value = null;509 value = binding.getDeleted(new java.lang.String(), java.util.Calendar.getInstance(), java.util.Calendar.getInstance());510 }511 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {512 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);513 }514 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {515 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);516 }517 // TBD - validate results518 }519 public void test19SoapGetUpdated() throws Exception {520 com.sforce.soap.partner.SoapBindingStub binding;521 try {522 binding = (com.sforce.soap.partner.SoapBindingStub)523 new com.sforce.soap.partner.SforceServiceLocator().getSoap();524 }525 catch (javax.xml.rpc.ServiceException jre) {526 if(jre.getLinkedCause()!=null)527 jre.getLinkedCause().printStackTrace();528 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);529 }530 assertNotNull("binding is null", binding);531 // Time out after a minute532 binding.setTimeout(60000);533 // Test operation534 try {535 com.sforce.soap.partner.GetUpdatedResult value = null;536 value = binding.getUpdated(new java.lang.String(), java.util.Calendar.getInstance(), java.util.Calendar.getInstance());537 }538 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {539 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);540 }541 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {542 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);543 }544 // TBD - validate results545 }546 public void test20SoapQuery() throws Exception {547 com.sforce.soap.partner.SoapBindingStub binding;548 try {549 binding = (com.sforce.soap.partner.SoapBindingStub)550 new com.sforce.soap.partner.SforceServiceLocator().getSoap();551 }552 catch (javax.xml.rpc.ServiceException jre) {553 if(jre.getLinkedCause()!=null)554 jre.getLinkedCause().printStackTrace();555 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);556 }557 assertNotNull("binding is null", binding);558 // Time out after a minute559 binding.setTimeout(60000);560 // Test operation561 try {562 com.sforce.soap.partner.QueryResult value = null;563 value = binding.query(new java.lang.String());564 }565 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {566 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);567 }568 catch (com.sforce.soap.partner.fault.MalformedQueryFault e2) {569 throw new junit.framework.AssertionFailedError("MalformedQueryFault Exception caught: " + e2);570 }571 catch (com.sforce.soap.partner.fault.InvalidIdFault e3) {572 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e3);573 }574 catch (com.sforce.soap.partner.fault.InvalidFieldFault e4) {575 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e4);576 }577 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e5) {578 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e5);579 }580 // TBD - validate results581 }582 public void test21SoapQueryAll() throws Exception {583 com.sforce.soap.partner.SoapBindingStub binding;584 try {585 binding = (com.sforce.soap.partner.SoapBindingStub)586 new com.sforce.soap.partner.SforceServiceLocator().getSoap();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.sforce.soap.partner.QueryResult value = null;599 value = binding.queryAll(new java.lang.String());600 }601 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {602 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);603 }604 catch (com.sforce.soap.partner.fault.MalformedQueryFault e2) {605 throw new junit.framework.AssertionFailedError("MalformedQueryFault Exception caught: " + e2);606 }607 catch (com.sforce.soap.partner.fault.InvalidIdFault e3) {608 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e3);609 }610 catch (com.sforce.soap.partner.fault.InvalidFieldFault e4) {611 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e4);612 }613 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e5) {614 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e5);615 }616 // TBD - validate results617 }618 public void test22SoapQueryMore() throws Exception {619 com.sforce.soap.partner.SoapBindingStub binding;620 try {621 binding = (com.sforce.soap.partner.SoapBindingStub)622 new com.sforce.soap.partner.SforceServiceLocator().getSoap();623 }624 catch (javax.xml.rpc.ServiceException jre) {625 if(jre.getLinkedCause()!=null)626 jre.getLinkedCause().printStackTrace();627 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);628 }629 assertNotNull("binding is null", binding);630 // Time out after a minute631 binding.setTimeout(60000);632 // Test operation633 try {634 com.sforce.soap.partner.QueryResult value = null;635 value = binding.queryMore(new java.lang.String());636 }637 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {638 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);639 }640 catch (com.sforce.soap.partner.fault.InvalidQueryLocatorFault e2) {641 throw new junit.framework.AssertionFailedError("InvalidQueryLocatorFault Exception caught: " + e2);642 }643 // TBD - validate results644 }645 public void test23SoapSearch() throws Exception {646 com.sforce.soap.partner.SoapBindingStub binding;647 try {648 binding = (com.sforce.soap.partner.SoapBindingStub)649 new com.sforce.soap.partner.SforceServiceLocator().getSoap();650 }651 catch (javax.xml.rpc.ServiceException jre) {652 if(jre.getLinkedCause()!=null)653 jre.getLinkedCause().printStackTrace();654 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);655 }656 assertNotNull("binding is null", binding);657 // Time out after a minute658 binding.setTimeout(60000);659 // Test operation660 try {661 com.sforce.soap.partner.SearchResult value = null;662 value = binding.search(new java.lang.String());663 }664 catch (com.sforce.soap.partner.fault.InvalidSObjectFault e1) {665 throw new junit.framework.AssertionFailedError("InvalidSObjectFault Exception caught: " + e1);666 }667 catch (com.sforce.soap.partner.fault.MalformedSearchFault e2) {668 throw new junit.framework.AssertionFailedError("MalformedSearchFault Exception caught: " + e2);669 }670 catch (com.sforce.soap.partner.fault.InvalidFieldFault e3) {671 throw new junit.framework.AssertionFailedError("InvalidFieldFault Exception caught: " + e3);672 }673 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e4) {674 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e4);675 }676 // TBD - validate results677 }678 public void test24SoapGetServerTimestamp() throws Exception {679 com.sforce.soap.partner.SoapBindingStub binding;680 try {681 binding = (com.sforce.soap.partner.SoapBindingStub)682 new com.sforce.soap.partner.SforceServiceLocator().getSoap();683 }684 catch (javax.xml.rpc.ServiceException jre) {685 if(jre.getLinkedCause()!=null)686 jre.getLinkedCause().printStackTrace();687 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);688 }689 assertNotNull("binding is null", binding);690 // Time out after a minute691 binding.setTimeout(60000);692 // Test operation693 try {694 com.sforce.soap.partner.GetServerTimestampResult value = null;695 value = binding.getServerTimestamp();696 }697 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {698 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);699 }700 // TBD - validate results701 }702 public void test25SoapSetPassword() throws Exception {703 com.sforce.soap.partner.SoapBindingStub binding;704 try {705 binding = (com.sforce.soap.partner.SoapBindingStub)706 new com.sforce.soap.partner.SforceServiceLocator().getSoap();707 }708 catch (javax.xml.rpc.ServiceException jre) {709 if(jre.getLinkedCause()!=null)710 jre.getLinkedCause().printStackTrace();711 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);712 }713 assertNotNull("binding is null", binding);714 // Time out after a minute715 binding.setTimeout(60000);716 // Test operation717 try {718 com.sforce.soap.partner.SetPasswordResult value = null;719 value = binding.setPassword(new java.lang.String(), new java.lang.String());720 }721 catch (com.sforce.soap.partner.fault.InvalidIdFault e1) {722 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e1);723 }724 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {725 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);726 }727 catch (com.sforce.soap.partner.fault.InvalidNewPasswordFault e3) {728 throw new junit.framework.AssertionFailedError("InvalidNewPasswordFault Exception caught: " + e3);729 }730 // TBD - validate results731 }732 public void test26SoapResetPassword() throws Exception {733 com.sforce.soap.partner.SoapBindingStub binding;734 try {735 binding = (com.sforce.soap.partner.SoapBindingStub)736 new com.sforce.soap.partner.SforceServiceLocator().getSoap();737 }738 catch (javax.xml.rpc.ServiceException jre) {739 if(jre.getLinkedCause()!=null)740 jre.getLinkedCause().printStackTrace();741 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);742 }743 assertNotNull("binding is null", binding);744 // Time out after a minute745 binding.setTimeout(60000);746 // Test operation747 try {748 com.sforce.soap.partner.ResetPasswordResult value = null;749 value = binding.resetPassword(new java.lang.String());750 }751 catch (com.sforce.soap.partner.fault.InvalidIdFault e1) {752 throw new junit.framework.AssertionFailedError("InvalidIdFault Exception caught: " + e1);753 }754 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e2) {755 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e2);756 }757 // TBD - validate results758 }759 public void test27SoapGetUserInfo() throws Exception {760 com.sforce.soap.partner.SoapBindingStub binding;761 try {762 binding = (com.sforce.soap.partner.SoapBindingStub)763 new com.sforce.soap.partner.SforceServiceLocator().getSoap();764 }765 catch (javax.xml.rpc.ServiceException jre) {766 if(jre.getLinkedCause()!=null)767 jre.getLinkedCause().printStackTrace();768 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);769 }770 assertNotNull("binding is null", binding);771 // Time out after a minute772 binding.setTimeout(60000);773 // Test operation774 try {775 com.sforce.soap.partner.GetUserInfoResult value = null;776 value = binding.getUserInfo();777 }778 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {779 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);780 }781 // TBD - validate results782 }783 public void test28SoapSendEmail() throws Exception {784 com.sforce.soap.partner.SoapBindingStub binding;785 try {786 binding = (com.sforce.soap.partner.SoapBindingStub)787 new com.sforce.soap.partner.SforceServiceLocator().getSoap();788 }789 catch (javax.xml.rpc.ServiceException jre) {790 if(jre.getLinkedCause()!=null)791 jre.getLinkedCause().printStackTrace();792 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);793 }794 assertNotNull("binding is null", binding);795 // Time out after a minute796 binding.setTimeout(60000);797 // Test operation798 try {799 com.sforce.soap.partner.SendEmailResult[] value = null;800 value = binding.sendEmail(new com.sforce.soap.partner.Email[0]);801 }802 catch (com.sforce.soap.partner.fault.UnexpectedErrorFault e1) {803 throw new junit.framework.AssertionFailedError("UnexpectedErrorFault Exception caught: " + e1);804 }805 // TBD - validate results806 }807}...

Full Screen

Full Screen

Source:VerifyTestCase.java Github

copy

Full Screen

...100 try {101 binding = new TypeTestServiceLocator().getTypeTest();102 }103 catch (ServiceException jre) {104 throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);105 }106 assertTrue("binding is null", binding != null);107 // setup unsigned108 UnsignedLong ulong = null;109 UnsignedInt uint = null;110 UnsignedShort ushort = null;111 UnsignedByte ubyte = null;112 NonNegativeInteger nnint = null;113 PositiveInteger pint = null;114 NonPositiveInteger npint = null;115 NegativeInteger nint = null;116 URI uri = null;117 Year year = null;118 Month month = null;119 Day day = null;120 YearMonth yearmonth = null;121 MonthDay monthday = null;122 try {123 ulong = new UnsignedLong(7777);124 uint = new UnsignedInt(777);125 ushort = new UnsignedShort(77);126 ubyte = new UnsignedByte(7);127 nnint = new NonNegativeInteger("7");128 pint = new PositiveInteger("7");129 npint = new NonPositiveInteger("-7");130 nint = new NegativeInteger("-7");131 uri = new URI("urn:this-is-a-test");132 year = new Year(1995);133 month = new Month(7);134 day = new Day(13);135 yearmonth = new YearMonth(2002, 8);136 monthday = new MonthDay(8, 26);137 } catch (Exception e) {138 // possibly thrown from constructors139 // wont happen since we know the values are good!140 }141 try {142 binding.allPrimitivesIn(143 "hi",144 new java.math.BigInteger("5"),145 0,146 (long) 0,147 (short) 0,148 new java.math.BigDecimal(6),149 (float) 0,150 (double) 0,151 true,152 (byte) 0,153 new QName("hi", "ho"),154 Calendar.getInstance(),155 new byte[]{(byte) 5},156 new byte[]{(byte) 6},157 "hi ho",158 new Boolean(true),159 new Float(0),160 new Double(0),161 new java.math.BigDecimal(7),162 new Integer(0),163 new Short((short) 0),164 new byte[]{(byte) 7},165 new org.apache.axis.types.Time("12:01:30.150Z"),166 ulong,167 uint,168 ushort,169 ubyte,170 nnint,171 pint,172 npint,173 nint,174 uri,175 year,176 month,177 day,178 yearmonth,179 monthday180 );181 } catch (java.rmi.RemoteException re) {182 throw new junit.framework.AssertionFailedError("allPrimitives: " + re );183 }184 try {185 binding.allPrimitivesInout(186 new StringHolder("hi"),187 new BigIntegerHolder(new java.math.BigInteger("0")),188 new IntHolder(1),189 new LongHolder(2),190 new ShortHolder((short) 3),191 new BigDecimalHolder(new java.math.BigDecimal(4)),192 new FloatHolder(5),193 new DoubleHolder(6),194 new BooleanHolder(true),195 new ByteHolder((byte) 7),196 new QNameHolder(new QName("ho", "hi")),197 new CalendarHolder(Calendar.getInstance()),198 new ByteArrayHolder(new byte[]{(byte) 8}),199 new ByteArrayHolder(new byte[]{(byte) 9}),200 new StringHolder("ho hi"),201 new BooleanWrapperHolder(new Boolean(true)),202 new FloatWrapperHolder(new Float(10)),203 new DoubleWrapperHolder(new Double(11)),204 new BigDecimalHolder(new java.math.BigDecimal(12)),205 new IntegerWrapperHolder(new Integer(13)),206 new ShortWrapperHolder(new Short((short) 14)),207 new ByteArrayHolder(new byte[]{(byte) 15}),208 new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),209 new UnsignedLongHolder(ulong),210 new UnsignedIntHolder(uint),211 new UnsignedShortHolder(ushort),212 new UnsignedByteHolder(ubyte),213 new NonNegativeIntegerHolder(nnint),214 new PositiveIntegerHolder(pint),215 new NonPositiveIntegerHolder(npint),216 new NegativeIntegerHolder(nint),217 new URIHolder(uri),218 new YearHolder(year),219 new MonthHolder(month),220 new DayHolder(day),221 new YearMonthHolder(yearmonth),222 new MonthDayHolder(monthday)223 );224 } catch (java.rmi.RemoteException re) {225 throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );226 }227 try {228 binding.allPrimitivesOut(229 new StringHolder(),230 new BigIntegerHolder(),231 new IntHolder(),232 new LongHolder(),233 new ShortHolder(),234 new BigDecimalHolder(),235 new FloatHolder(),236 new DoubleHolder(),237 new BooleanHolder(),238 new ByteHolder(),239 new QNameHolder(),240 new CalendarHolder(),241 new ByteArrayHolder(),242 new ByteArrayHolder(),243 new StringHolder(),244 new BooleanWrapperHolder(),245 new FloatWrapperHolder(),246 new DoubleWrapperHolder(),247 new BigDecimalHolder(),248 new IntegerWrapperHolder(),249 new ShortWrapperHolder(),250 new ByteArrayHolder(),251 new TimeHolder(),252 new UnsignedLongHolder(),253 new UnsignedIntHolder(),254 new UnsignedShortHolder(),255 new UnsignedByteHolder(),256 new NonNegativeIntegerHolder(),257 new PositiveIntegerHolder(),258 new NonPositiveIntegerHolder(),259 new NegativeIntegerHolder(),260 new URIHolder(),261 new YearHolder(),262 new MonthHolder(),263 new DayHolder(),264 new YearMonthHolder(),265 new MonthDayHolder()266 267 );268 } catch (java.rmi.RemoteException re) {269 throw new junit.framework.AssertionFailedError("allPrimitivesOut Exception caught: " + re );270 }271 try {272 binding.enumIn(Enum.one);273 } catch (java.rmi.RemoteException re) {274 throw new junit.framework.AssertionFailedError("enumIn Exception caught: " + re );275 }276 try {277 binding.enumInout(new EnumHolder(Enum.two));278 } catch (java.rmi.RemoteException re) {279 throw new junit.framework.AssertionFailedError("enumInout Exception caught: " + re );280 }281 try {282 EnumHolder value = new EnumHolder();283 binding.enumOut(value);284 } catch (java.rmi.RemoteException re) {285 throw new junit.framework.AssertionFailedError("enumOut Exception caught: " + re );286 }287 try {288 Enum value = null;289 value = binding.enumReturn();290 } catch (java.rmi.RemoteException re) {291 throw new junit.framework.AssertionFailedError("enumReturn Exception caught: " + re );292 }293 try {294 binding.arrayIn(new String[] {"hi", "ho"});295 } catch (java.rmi.RemoteException re) {296 throw new junit.framework.AssertionFailedError("arrayIn Exception caught: " + re);297 }298 try {299 binding.arrayInout(new ArrayHolder(new String[] {"hee", "hee"}));300 } catch (java.rmi.RemoteException re) {301 throw new junit.framework.AssertionFailedError("arrayInout Exception caught: " + re);302 }303 try {304 ArrayHolder value = new ArrayHolder();305 binding.arrayOut(value);306 } catch (java.rmi.RemoteException re) {307 throw new junit.framework.AssertionFailedError("arrayOut Exception caught: " + re);308 }309 try {310 String[] value = binding.arrayReturn();311 } catch (java.rmi.RemoteException re) {312 throw new junit.framework.AssertionFailedError("arrayReturn Exception caught: " + re);313 }314 try {315 binding.arrayMIn(new int[][][] {new int[][] {new int[] {2}}});316 } catch (java.rmi.RemoteException re) {317 throw new junit.framework.AssertionFailedError("arrayMIn Exception caught: " + re);318 }319 try {320 binding.arrayMInout(new ArrayMHolder(new int[][][] {new int[][] {new int[] {2}}}));321 } catch (java.rmi.RemoteException re) {322 throw new junit.framework.AssertionFailedError("arrayMInout Exception caught: " + re);323 }324 try {325 ArrayMHolder value = new ArrayMHolder();326 binding.arrayMOut(value);327 } catch (java.rmi.RemoteException re) {328 throw new junit.framework.AssertionFailedError("arrayMOut Exception caught: " + re);329 }330 try {331 int[][][] value = binding.arrayMReturn();332 } catch (java.rmi.RemoteException re) {333 throw new junit.framework.AssertionFailedError("arrayMReturn Exception caught: " + re);334 }335 ComplexAll complexAll = new ComplexAll();336 complexAll.setAreaCode(512);337 complexAll.setExchange("838");338 complexAll.setNumber("4544");339 try {340 binding.complexAllIn(complexAll);341 } catch (java.rmi.RemoteException re) {342 throw new junit.framework.AssertionFailedError("complexAllIn Exception caught: " + re);343 }344 try {345 binding.complexAllInout(new ComplexAllHolder(complexAll));346 } catch (java.rmi.RemoteException re) {347 throw new junit.framework.AssertionFailedError("complexAllInout Exception caught: " + re );348 }349 try {350 ComplexAllHolder value = new ComplexAllHolder();351 binding.complexAllOut(value);352 } catch (java.rmi.RemoteException re) {353 throw new junit.framework.AssertionFailedError("complexAllOut Exception caught: " + re );354 }355 try {356 ComplexAll value = null;357 value = binding.complexAllReturn();358 } catch (java.rmi.RemoteException re) {359 throw new junit.framework.AssertionFailedError("complexAllReturn Exception caught: " + re );360 }361 ComplexSequence complexSequence = new ComplexSequence();362 complexSequence.setAreaCode(512);363 complexSequence.setExchange("838");364 complexSequence.setNumber("4544");365 try {366 binding.complexSequenceIn(complexSequence);367 } catch (java.rmi.RemoteException re) {368 throw new junit.framework.AssertionFailedError("complexSequenceIn Exception caught: " + re );369 }370 try {371 binding.complexSequenceInout(new ComplexSequenceHolder(complexSequence));372 } catch (java.rmi.RemoteException re) {373 throw new junit.framework.AssertionFailedError("complexSequenceInout Exception caught: " + re );374 }375 try {376 ComplexSequenceHolder value = new ComplexSequenceHolder();377 binding.complexSequenceOut(value);378 } catch (java.rmi.RemoteException re) {379 throw new junit.framework.AssertionFailedError("complexSequenceOut Exception caught: " + re );380 }381 try {382 ComplexSequence value = null;383 value = binding.complexSequenceReturn();384 } catch (java.rmi.RemoteException re) {385 throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );386 }387 String[] optArray = new String[] {"abc", "def"};388 byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };389 B b = new B();390 A a = new A();391 a.setC(3);392 b.setD(a);393 ComplexWComplexStock_quote stockQuote = new ComplexWComplexStock_quote();394 Time time = new Time();395 time.setDST(false);396 stockQuote.setTime(time);397 stockQuote.setChange("5");398 stockQuote.setPctchange("100%");399 stockQuote.setBid("9");400 stockQuote.setAsk("11");401 stockQuote.setSymbol("AXS");402 stockQuote.setLast("5");403 ComplexWComplex complexWComplex = new ComplexWComplex();404 complexWComplex.setStock_quote(stockQuote);405 complexWComplex.setOutside(22);406 407 binding.complexWComplexIn(complexWComplex);408 try {409 binding.complexWComplexInout(new ComplexWComplexHolder(complexWComplex));410 } catch (java.rmi.RemoteException re) {411 throw new junit.framework.AssertionFailedError("complexWComplexInout Exception caught: " + re );412 }413 try {414 ComplexWComplexHolder value = new ComplexWComplexHolder();415 binding.complexWComplexOut(value);416 } catch (java.rmi.RemoteException re) {417 throw new junit.framework.AssertionFailedError("complexWComplexOut Exception caught: " + re );418 }419 try {420 ComplexWComplex value = null;421 value = binding.complexWComplexReturn();422 } catch (java.rmi.RemoteException re) {423 throw new junit.framework.AssertionFailedError("complexWComplexReturn Exception caught: " + re );424 }425 try {426 EmptyComplexType value = new EmptyComplexType();427 binding.emptyComplexTypeIn(value);428 } catch (java.rmi.RemoteException re) {429 throw new junit.framework.AssertionFailedError("emptyComplexTypeIn Exception caught: " + re );430 }431 try {432 EmptyComplexTypeHolder value = new EmptyComplexTypeHolder( new EmptyComplexType());433 binding.emptyComplexTypeInout(value);434 } catch (java.rmi.RemoteException re) {435 throw new junit.framework.AssertionFailedError("emptyComplexTypeInout Exception caught: " + re );436 }437 try {438 EmptyComplexTypeHolder value = new EmptyComplexTypeHolder();439 binding.emptyComplexTypeOut(value);440 } catch (java.rmi.RemoteException re) {441 throw new junit.framework.AssertionFailedError("emptyComplexTypeOut Exception caught: " + re );442 }443 try {444 EmptyComplexType value = null;445 value = binding.emptyComplexTypeReturn();446 } catch (java.rmi.RemoteException re) {447 throw new junit.framework.AssertionFailedError("emptyComplexTypeReturn Exception caught: " + re );448 }449 try {450 binding.anyIn(new java.lang.String("hi ho"));451 } catch (java.rmi.RemoteException re) {452 throw new junit.framework.AssertionFailedError("anyIn Exception caught: " + re );453 }454 try {455 binding.anyInout(new ObjectHolder(new java.lang.String("yo ho ho")));456 } catch (java.rmi.RemoteException re) {457 throw new junit.framework.AssertionFailedError("anyInout Exception caught: " + re );458 }459 try {460 ObjectHolder value = new ObjectHolder();461 binding.anyOut(value);462 } catch (java.rmi.RemoteException re) {463 throw new junit.framework.AssertionFailedError("anyOut Exception caught: " + re );464 }465 try {466 java.lang.Object value = binding.anyReturn();467 } catch (java.rmi.RemoteException re) {468 throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );469 }470 Cat cat = new Cat();471 cat.setPurr("meow");472 PersionCat persion = new PersionCat();473 Yarn yarn = new Yarn();474 yarn.setColor("green");475 persion.setPurr("meow meow");476 persion.setColor("blue");477 persion.setToy(yarn); 478 try {479 binding.animalIn(cat);480 } catch (java.rmi.RemoteException re) {481 throw new junit.framework.AssertionFailedError("animalIn Exception caught: " + re );482 }483 try {484 binding.animalInout(new AnimalHolder(cat));485 } catch (java.rmi.RemoteException re) {486 throw new junit.framework.AssertionFailedError("animalInout Exception caught: " + re );487 }488 try {489 AnimalHolder value = new AnimalHolder();490 binding.animalOut(value);491 } catch (java.rmi.RemoteException re) {492 throw new junit.framework.AssertionFailedError("animalOut Exception caught: " + re );493 }494 try {495 Animal value = null;496 value = binding.animalReturn();497 } catch (java.rmi.RemoteException re) {498 throw new junit.framework.AssertionFailedError("animalReturn Exception caught: " + re );499 }500 try {501 binding.catIn(cat);502 } catch (java.rmi.RemoteException re) {503 throw new junit.framework.AssertionFailedError("catIn Exception caught: " + re );504 }505 try {506 binding.catInout(new CatHolder(cat));507 } catch (java.rmi.RemoteException re) {508 throw new junit.framework.AssertionFailedError("catInout Exception caught: " + re );509 }510 try {511 CatHolder value = new CatHolder();512 binding.catOut(value);513 } catch (java.rmi.RemoteException re) {514 throw new junit.framework.AssertionFailedError("catOut Exception caught: " + re );515 }516 try {517 Cat value = null;518 value = binding.catReturn();519 } catch (java.rmi.RemoteException re) {520 throw new junit.framework.AssertionFailedError("catReturn Exception caught: " + re );521 }522 try {523 binding.catIn(persion);524 } catch (java.rmi.RemoteException re) {525 throw new junit.framework.AssertionFailedError("catIn Exception caught: " + re );526 }527 try {528 binding.catInout(new CatHolder(persion));529 } catch (java.rmi.RemoteException re) {530 throw new junit.framework.AssertionFailedError("catInout Exception caught: " + re );531 }532 try {533 BooleanHolder bh = new BooleanHolder(true);534 boolean actual = binding.methodBoolean(true, bh);535 } catch (java.rmi.RemoteException re) {536 throw new junit.framework.AssertionFailedError("methodBoolean Exception caught: " + re );537 }538 try {539 ByteHolder bh = new ByteHolder((byte)5);540 byte actual = binding.methodByte((byte)5, bh);541 } catch (java.rmi.RemoteException re) {542 throw new junit.framework.AssertionFailedError("methodByte Exception caught: " + re );543 }544 try {545 ShortHolder sh = new ShortHolder((short)127);546 short actual = binding.methodShort((short)127, sh);547 } catch (java.rmi.RemoteException re) {548 throw new junit.framework.AssertionFailedError("methodShort Exception caught: " + re );549 }550 try {551 IntHolder ih = new IntHolder(2002);552 int actual = binding.methodInt(2002, ih);553 } catch (java.rmi.RemoteException re) {554 throw new junit.framework.AssertionFailedError("methodInt Exception caught: " + re );555 }556 try {557 LongHolder lh = new LongHolder(14003L);558 long actual = binding.methodLong(14003L, lh);559 } catch (java.rmi.RemoteException re) {560 throw new junit.framework.AssertionFailedError("methodLong Exception caught: " + re );561 }562 try {563 FloatHolder fh = new FloatHolder(2.342F);564 float delta = 0.0F;565 float actual = binding.methodFloat(2.342F, fh);566 } catch (java.rmi.RemoteException re) {567 throw new junit.framework.AssertionFailedError("methodFloat Exception caught: " + re );568 }569 try {570 DoubleHolder dh = new DoubleHolder(5006.345D);571 double value = 110312.2325D;572 double delta = 0.0D;573 double actual = binding.methodDouble(5006.345D, dh);574 } catch (java.rmi.RemoteException re) {575 throw new junit.framework.AssertionFailedError("methodDouble Exception caught: " + re );576 }577 try {578 String sendValue = "Sent String"; 579 StringHolder sh = new StringHolder(sendValue);580 String actual = binding.methodString(sendValue, sh);581 } catch (java.rmi.RemoteException re) {582 throw new junit.framework.AssertionFailedError("methodString Exception caught: " + re );583 }584 try {585 java.math.BigInteger sendValue = new java.math.BigInteger("3048");586 BigIntegerHolder bih = new BigIntegerHolder(sendValue);587 java.math.BigInteger actual = binding.methodInteger(sendValue, bih);588 } catch (java.rmi.RemoteException re) {589 throw new junit.framework.AssertionFailedError("methodInteger Exception caught: " + re );590 }591 try {592 java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");593 BigDecimalHolder bdh = new BigDecimalHolder(sendValue);594 java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);595 } catch (java.rmi.RemoteException re) {596 throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );597 }598 try {599 Calendar sendValue = Calendar.getInstance();600 sendValue.setTime(new Date(1012182070626L));601 CalendarHolder ch = new CalendarHolder(sendValue);602 Calendar actual = binding.methodDateTime(sendValue, ch);603 } catch (java.rmi.RemoteException re) {604 throw new junit.framework.AssertionFailedError("methodDateTime Exception caught: " + re );605 }606// Comment out for now because causes compile errors607// try {608// byte[] sendValue = {(byte) 10, (byte) 9};609// ByteArrayHolder bah = new ByteArrayHolder(sendValue);610// byte[] actual = binding.methodBase64Binary(sendValue, bah);611// } catch (java.rmi.RemoteException re) {612// throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );613// }614 try {615 QName sendValue = new QName("test1", "test2");616 QNameHolder qh = new QNameHolder(sendValue);617 QName actual = binding.methodQName(sendValue, qh);618 } catch (java.rmi.RemoteException re) {619 throw new junit.framework.AssertionFailedError("methodQName Exception caught: " + re );620 }621// Comment out for now because causes compile errors622// try {623// byte[] sendValue = {(byte) 10, (byte) 9};624// ByteArrayHolder bah = new ByteArrayHolder(sendValue);625// byte[] actual = binding.methodHexBinary(sendValue, bah);626// } catch (java.rmi.RemoteException re) {627// throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );628// }629 try {630 org.apache.axis.types.Time sendValue = new org.apache.axis.types.Time("15:30:45.245Z");631 TimeHolder ch = new TimeHolder(sendValue);632 org.apache.axis.types.Time actual = binding.methodTime(sendValue, ch);633 } catch (java.rmi.RemoteException re) {634 throw new junit.framework.AssertionFailedError("methodTime Exception caught: " + re );635 }636 try {637 UnsignedLong sendValue = null;638 try {639 sendValue = new UnsignedLong(18446744073709551600D);640 } catch (Exception e) {641 }642 UnsignedLongHolder ch = new UnsignedLongHolder(sendValue);643 UnsignedLong actual = binding.methodUnsignedLong(sendValue, ch);644 } catch (java.rmi.RemoteException re) {645 throw new junit.framework.AssertionFailedError("methodUnsignedLong Exception caught: " + re );646 }647 try {648 UnsignedInt sendValue = null;649 try {650 sendValue = new UnsignedInt(4294967200L);651 } catch (Exception e) {652 }653 UnsignedIntHolder ch = new UnsignedIntHolder(sendValue);654 UnsignedInt actual = binding.methodUnsignedInt(sendValue, ch);655 } catch (java.rmi.RemoteException re) {656 throw new junit.framework.AssertionFailedError("methodUnsignedInt Exception caught: " + re );657 }658 try {659 UnsignedShort sendValue = null;660 try {661 sendValue = new UnsignedShort(65530);662 } catch (Exception e) {663 }664 UnsignedShortHolder ch = new UnsignedShortHolder(sendValue);665 UnsignedShort actual = binding.methodUnsignedShort(sendValue, ch);666 } catch (java.rmi.RemoteException re) {667 throw new junit.framework.AssertionFailedError("methodUnsignedShort Exception caught: " + re );668 }669 try {670 UnsignedByte sendValue = null;671 try {672 sendValue = new UnsignedByte(250);673 } catch (Exception e) {674 }675 UnsignedByteHolder ch = new UnsignedByteHolder(sendValue);676 UnsignedByte actual = binding.methodUnsignedByte(sendValue, ch);677 } catch (java.rmi.RemoteException re) {678 throw new junit.framework.AssertionFailedError("methodUnsignedByte Exception caught: " + re );679 }680 try {681 NonNegativeInteger sendValue = new NonNegativeInteger("246802468024680");682 NonNegativeIntegerHolder nnih = new NonNegativeIntegerHolder(sendValue);683 NonNegativeInteger actual = binding.methodNonNegativeInteger(sendValue, nnih);684 } catch (java.rmi.RemoteException re) {685 throw new junit.framework.AssertionFailedError("methodNonNegativeInteger Exception caught: " + re );686 }687 try {688 PositiveInteger sendValue = new PositiveInteger("246802468024680");689 PositiveIntegerHolder pih = new PositiveIntegerHolder(sendValue);690 PositiveInteger actual = binding.methodPositiveInteger(sendValue, pih);691 } catch (java.rmi.RemoteException re) {692 throw new junit.framework.AssertionFailedError("methodPositiveInteger Exception caught: " + re );693 }694 try {695 NonPositiveInteger sendValue = new NonPositiveInteger("-246802468024680");696 NonPositiveIntegerHolder npih = new NonPositiveIntegerHolder(sendValue);697 NonPositiveInteger actual = binding.methodNonPositiveInteger(sendValue, npih);698 } catch (java.rmi.RemoteException re) {699 throw new junit.framework.AssertionFailedError("methodNonPositiveInteger Exception caught: " + re );700 }701 try {702 NegativeInteger sendValue = new NegativeInteger("-246802468024680");703 NegativeIntegerHolder nih = new NegativeIntegerHolder(sendValue);704 NegativeInteger actual = binding.methodNegativeInteger(sendValue, nih);705 } catch (java.rmi.RemoteException re) {706 throw new junit.framework.AssertionFailedError("methodNegativeInteger Exception caught: " + re );707 }708 try {709 URI sendValue = null;710 try {711 sendValue = new URI("urn:this-is-a-test");712 } catch (URI.MalformedURIException e) {713 }714 URIHolder ch = new URIHolder(sendValue);715 URI actual = binding.methodAnyURI(sendValue, ch);716 } catch (java.rmi.RemoteException re) {717 throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );718 }719 720 try {721 test.wsdl.types.comprehensive_types2.SimpleAnyURIType sendValue = new test.wsdl.types.comprehensive_types2.SimpleAnyURIType("urn:this-is-a-simple-test");722 test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder ch = new test.wsdl.types.comprehensive_types2.holders.SimpleAnyURITypeHolder(sendValue);723 test.wsdl.types.comprehensive_types2.SimpleAnyURIType actual = binding.methodSimpleAnyURI(sendValue, ch);724 } catch (java.rmi.RemoteException re) {725 throw new junit.framework.AssertionFailedError("methodAnyURI Exception caught: " + re );726 }727 728 try {729 Year sendValue = null;730 try {731 year = new Year(1995);732 } catch (Exception e) {733 }734 YearHolder h = new YearHolder(year);735 Year actual = binding.methodYear(sendValue, h);736 } catch (java.rmi.RemoteException re) {737 throw new junit.framework.AssertionFailedError("methodYear Exception caught: " + re );738 }739 740 try {741 Month sendValue = null;742 try {743 month = new Month(8);744 } catch (Exception e) {745 }746 MonthHolder h = new MonthHolder(month);747 Month actual = binding.methodMonth(sendValue, h);748 } catch (java.rmi.RemoteException re) {749 throw new junit.framework.AssertionFailedError("methodMonth Exception caught: " + re );750 }751 752 try {753 Day sendValue = null;754 try {755 day = new Day(26);756 } catch (Exception e) {757 }758 DayHolder h = new DayHolder(day);759 Day actual = binding.methodDay(sendValue, h);760 } catch (java.rmi.RemoteException re) {761 throw new junit.framework.AssertionFailedError("methodDay Exception caught: " + re );762 }763 764 try {765 YearMonth sendValue = null;766 try {767 yearmonth = new YearMonth(1995,8);768 } catch (Exception e) {769 }770 YearMonthHolder h = new YearMonthHolder(yearmonth);771 YearMonth actual = binding.methodYearMonth(sendValue, h);772 } catch (java.rmi.RemoteException re) {773 throw new junit.framework.AssertionFailedError("methodYearMonth Exception caught: " + re );774 }775 776 try {777 MonthDay sendValue = null;778 try {779 monthday = new MonthDay(8,26);780 } catch (Exception e) {781 }782 MonthDayHolder h = new MonthDayHolder(monthday);783 MonthDay actual = binding.methodMonthDay(sendValue, h);784 } catch (java.rmi.RemoteException re) {785 throw new junit.framework.AssertionFailedError("methodMonthDay Exception caught: " + re );786 }787 788 try {789 String sendValue = "Sent String"; 790 StringHolder sh = new StringHolder(sendValue);791 String actual = binding.methodSoapString(sendValue, sh);792 } catch (java.rmi.RemoteException re) {793 throw new junit.framework.AssertionFailedError("methodSoapString Exception caught: " + re );794 }795 try {796 java.lang.Boolean sendValue = new java.lang.Boolean(true);797 BooleanWrapperHolder bh = new BooleanWrapperHolder(sendValue);798 java.lang.Boolean actual = binding.methodSoapBoolean(sendValue, bh);799 } catch (java.rmi.RemoteException re) {800 throw new junit.framework.AssertionFailedError("methodSoapBoolean Exception caught: " + re );801 }802 try {803 java.lang.Float sendValue = new java.lang.Float(93049.0394F);804 FloatWrapperHolder fh = new FloatWrapperHolder(sendValue);805 java.lang.Float actual = binding.methodSoapFloat(sendValue, fh);806 } catch (java.rmi.RemoteException re) {807 throw new junit.framework.AssertionFailedError("methodSoapFloat Exception caught: " + re );808 }809 try {810 java.lang.Double sendValue = new java.lang.Double(193049.0394D);811 DoubleWrapperHolder dh = new DoubleWrapperHolder(sendValue);812 java.lang.Double actual = binding.methodSoapDouble(sendValue, dh);813 } catch (java.rmi.RemoteException re) {814 throw new junit.framework.AssertionFailedError("methodSoapDouble Exception caught: " + re );815 }816 try {817 java.math.BigDecimal sendValue = new java.math.BigDecimal("1205.258");818 BigDecimalHolder bdh = new BigDecimalHolder(sendValue);819 java.math.BigDecimal actual = binding.methodDecimal(sendValue, bdh);820 } catch (java.rmi.RemoteException re) {821 throw new junit.framework.AssertionFailedError("methodDecimal Exception caught: " + re );822 }823 try {824 java.lang.Integer sendValue = new java.lang.Integer(94);825 IntegerWrapperHolder ich = new IntegerWrapperHolder(sendValue);826 java.lang.Integer actual = binding.methodSoapInt(sendValue, ich);827 } catch (java.rmi.RemoteException re) {828 throw new junit.framework.AssertionFailedError("methodSoapInt Exception caught: " + re );829 }830 try {831 java.lang.Short sendValue = new java.lang.Short((short) 5);832 ShortWrapperHolder sch = new ShortWrapperHolder(sendValue);833 java.lang.Short actual = binding.methodSoapShort(sendValue, sch);834 } catch (java.rmi.RemoteException re) {835 throw new junit.framework.AssertionFailedError("methodSoapShort Exception caught: " + re );836 }837 }838}...

Full Screen

Full Screen

Source:HighscoreListTest.java Github

copy

Full Screen

...147 private void _transition_exprAction__addElementSimple_transitions0_actions0() {148 try {149 150 this.highscoreList.addResult(Integer.valueOf(5));151 } catch (junit.framework.AssertionFailedError error) {152 fail("highscoreList.addResult(5) failed: " + error.getMessage());153 }154 155 }156 157 private void _test__addElementSimple_transitions0_effect_state() {158 _test__addElementSimple_transitions0_effect_state_objectTests0_test();159 160 }161 162 private void _test__addElementSimple_transitions0_effect_state_objectTests0_test() {163 try {164 165 this.operator_assertEquals(166 this.highscoreList, new int[] { 5 });167 } catch (junit.framework.AssertionFailedError error) {168 fail("highscoreList ?= #[5] failed after highscoreList.addResult(5): " + error.getMessage());169 }170 171 }172 173 private void _transition_exprAction__addElementSimple_transitions1_actions0() {174 try {175 176 this.highscoreList.addResult(Integer.valueOf(6));177 } catch (junit.framework.AssertionFailedError error) {178 fail("highscoreList.addResult(6) failed: " + error.getMessage());179 }180 181 }182 183 private void _test__addElementSimple_transitions1_effect_state() {184 _test__addElementSimple_transitions1_effect_state_objectTests0_test();185 186 }187 188 private void _test__addElementSimple_transitions1_effect_state_objectTests0_test() {189 try {190 191 this.operator_assertEquals(192 this.highscoreList, new int[] { 5, 6 });193 } catch (junit.framework.AssertionFailedError error) {194 fail("highscoreList ?= #[5, 6] failed after highscoreList.addResult(6): " + error.getMessage());195 }196 197 }198 199 private void _transition_exprAction__addElementSimple_transitions2_actions0() {200 try {201 202 this.highscoreList.addResult(Integer.valueOf(2));203 } catch (junit.framework.AssertionFailedError error) {204 fail("highscoreList.addResult(2) failed: " + error.getMessage());205 }206 207 }208 209 private void _test__addElementSimple_transitions2_effect_state() {210 _test__addElementSimple_transitions2_effect_state_objectTests0_test();211 212 }213 214 private void _test__addElementSimple_transitions2_effect_state_objectTests0_test() {215 try {216 217 this.operator_assertEquals(218 this.highscoreList, new int[] { 2, 5, 6 });219 } catch (junit.framework.AssertionFailedError error) {220 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(2): " + error.getMessage());221 }222 223 }224 225 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions0() {226 try {227 228 this.highscoreList.addResult(Integer.valueOf(5));229 } catch (junit.framework.AssertionFailedError error) {230 fail("highscoreList.addResult(5) failed: " + error.getMessage());231 }232 233 }234 235 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions1() {236 try {237 238 this.highscoreList.addResult(Integer.valueOf(6));239 } catch (junit.framework.AssertionFailedError error) {240 fail("highscoreList.addResult(6) failed: " + error.getMessage());241 }242 243 }244 245 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions2() {246 try {247 248 this.highscoreList.addResult(Integer.valueOf(2));249 } catch (junit.framework.AssertionFailedError error) {250 fail("highscoreList.addResult(2) failed: " + error.getMessage());251 }252 253 }254 255 private void _test__addElementMoreThanMax_transitions0_effect_state() {256 _test__addElementMoreThanMax_transitions0_effect_state_objectTests0_test();257 258 }259 260 private void _test__addElementMoreThanMax_transitions0_effect_state_objectTests0_test() {261 try {262 263 this.operator_assertEquals(264 this.highscoreList, new int[] { 2, 5, 6 });265 } catch (junit.framework.AssertionFailedError error) {266 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());267 }268 269 }270 271 private void _transition_exprAction__addElementMoreThanMax_transitions1_actions0() {272 try {273 274 this.highscoreList.addResult(Integer.valueOf(3));275 } catch (junit.framework.AssertionFailedError error) {276 fail("highscoreList.addResult(3) failed: " + error.getMessage());277 }278 279 }280 281 private void _test__addElementMoreThanMax_transitions1_effect_state() {282 _test__addElementMoreThanMax_transitions1_effect_state_objectTests0_test();283 284 }285 286 private void _test__addElementMoreThanMax_transitions1_effect_state_objectTests0_test() {287 try {288 289 this.operator_assertEquals(290 this.highscoreList, new int[] { 2, 3, 5 });291 } catch (junit.framework.AssertionFailedError error) {292 fail("highscoreList ?= #[2, 3, 5] failed after highscoreList.addResult(3): " + error.getMessage());293 }294 295 }296 297 private void _transition_exprAction__addElementMoreThanMax_transitions2_actions0() {298 try {299 300 this.highscoreList.addResult(Integer.valueOf(7));301 } catch (junit.framework.AssertionFailedError error) {302 fail("highscoreList.addResult(7) failed: " + error.getMessage());303 }304 305 }306 307 private void _test__addElementMoreThanMax_transitions2_effect_state() {308 _test__addElementMoreThanMax_transitions2_effect_state_objectTests0_test();309 310 }311 312 private void _test__addElementMoreThanMax_transitions2_effect_state_objectTests0_test() {313 try {314 315 this.operator_assertEquals(316 this.highscoreList, new int[] { 2, 3, 5 });317 } catch (junit.framework.AssertionFailedError error) {318 fail("highscoreList ?= #[2, 3, 5] failed after highscoreList.addResult(7): " + error.getMessage());319 }320 321 }322 323 private void _transition_exprAction__addElementDuplicate_transitions0_actions0() {324 try {325 326 this.highscoreList.addResult(Integer.valueOf(5));327 } catch (junit.framework.AssertionFailedError error) {328 fail("highscoreList.addResult(5) failed: " + error.getMessage());329 }330 331 }332 333 private void _transition_exprAction__addElementDuplicate_transitions0_actions1() {334 try {335 336 this.highscoreList.addResult(Integer.valueOf(6));337 } catch (junit.framework.AssertionFailedError error) {338 fail("highscoreList.addResult(6) failed: " + error.getMessage());339 }340 341 }342 343 private void _transition_exprAction__addElementDuplicate_transitions0_actions2() {344 try {345 346 this.highscoreList.addResult(Integer.valueOf(2));347 } catch (junit.framework.AssertionFailedError error) {348 fail("highscoreList.addResult(2) failed: " + error.getMessage());349 }350 351 }352 353 private void _test__addElementDuplicate_transitions0_effect_state() {354 _test__addElementDuplicate_transitions0_effect_state_objectTests0_test();355 356 }357 358 private void _test__addElementDuplicate_transitions0_effect_state_objectTests0_test() {359 try {360 361 this.operator_assertEquals(362 this.highscoreList, new int[] { 2, 5, 6 });363 } catch (junit.framework.AssertionFailedError error) {364 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());365 }366 367 }368 369 private void _transition_exprAction__addElementDuplicate_transitions1_actions0() {370 try {371 372 this.highscoreList.addResult(Integer.valueOf(2));373 } catch (junit.framework.AssertionFailedError error) {374 fail("highscoreList.addResult(2) failed: " + error.getMessage());375 }376 377 }378 379 private void _test__addElementDuplicate_transitions1_effect_state() {380 _test__addElementDuplicate_transitions1_effect_state_objectTests0_test();381 382 }383 384 private void _test__addElementDuplicate_transitions1_effect_state_objectTests0_test() {385 try {386 387 this.operator_assertEquals(388 this.highscoreList, new int[] { 2, 2, 5 });389 } catch (junit.framework.AssertionFailedError error) {390 fail("highscoreList ?= #[2, 2, 5] failed after highscoreList.addResult(2): " + error.getMessage());391 }392 393 }394 395 private void _transition_exprAction__listListenerSimple_transitions0_actions0() {396 try {397 398 final HighscoreListListener _function = new HighscoreListListener() {399 public void listChanged(final HighscoreList list, final int pos) {400 HighscoreListTest.this.pos2 = pos;401 }402 };403 this.highscoreList.addHighscoreListListener(_function);404 } catch (junit.framework.AssertionFailedError error) {405 fail("highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());406 }407 408 }409 410 private void _transition_exprAction__listListenerSimple_transitions0_actions1() {411 try {412 413 this.addResult(5, 0);414 } catch (junit.framework.AssertionFailedError error) {415 fail("addResult(5, 0) failed: " + error.getMessage());416 }417 418 }419 420 private void _test__listListenerSimple_transitions0_effect_state() {421 _test__listListenerSimple_transitions0_effect_state_objectTests0_test();422 423 }424 425 private void _test__listListenerSimple_transitions0_effect_state_objectTests0_test() {426 try {427 428 this.operator_assertEquals(429 this.highscoreList, new int[] { 5 });430 } catch (junit.framework.AssertionFailedError error) {431 fail("highscoreList ?= #[5] failed after highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) ,addResult(5, 0): " + error.getMessage());432 }433 434 }435 436 private void _transition_exprAction__listListenerSimple_transitions1_actions0() {437 try {438 439 this.addResult(6, 1);440 } catch (junit.framework.AssertionFailedError error) {441 fail("addResult(6, 1) failed: " + error.getMessage());442 }443 444 }445 446 private void _test__listListenerSimple_transitions1_effect_state() {447 _test__listListenerSimple_transitions1_effect_state_objectTests0_test();448 449 }450 451 private void _test__listListenerSimple_transitions1_effect_state_objectTests0_test() {452 try {453 454 this.operator_assertEquals(455 this.highscoreList, new int[] { 5, 6 });456 } catch (junit.framework.AssertionFailedError error) {457 fail("highscoreList ?= #[5, 6] failed after addResult(6, 1): " + error.getMessage());458 }459 460 }461 462 private void _transition_exprAction__listListenerSimple_transitions2_actions0() {463 try {464 465 this.addResult(2, 0);466 } catch (junit.framework.AssertionFailedError error) {467 fail("addResult(2, 0) failed: " + error.getMessage());468 }469 470 }471 472 private void _test__listListenerSimple_transitions2_effect_state() {473 _test__listListenerSimple_transitions2_effect_state_objectTests0_test();474 475 }476 477 private void _test__listListenerSimple_transitions2_effect_state_objectTests0_test() {478 try {479 480 this.operator_assertEquals(481 this.highscoreList, new int[] { 2, 5, 6 });482 } catch (junit.framework.AssertionFailedError error) {483 fail("highscoreList ?= #[2, 5, 6] failed after addResult(2, 0): " + error.getMessage());484 }485 486 }487 488 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions0() {489 try {490 491 final HighscoreListListener _function = new HighscoreListListener() {492 public void listChanged(final HighscoreList list, final int pos) {493 HighscoreListTest.this.pos2 = pos;494 }495 };496 this.highscoreList.addHighscoreListListener(_function);497 } catch (junit.framework.AssertionFailedError error) {498 fail("highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());499 }500 501 }502 503 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions1() {504 try {505 506 this.highscoreList.addResult(Integer.valueOf(5));507 } catch (junit.framework.AssertionFailedError error) {508 fail("highscoreList.addResult(5) failed: " + error.getMessage());509 }510 511 }512 513 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions2() {514 try {515 516 this.highscoreList.addResult(Integer.valueOf(6));517 } catch (junit.framework.AssertionFailedError error) {518 fail("highscoreList.addResult(6) failed: " + error.getMessage());519 }520 521 }522 523 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions3() {524 try {525 526 this.highscoreList.addResult(Integer.valueOf(2));527 } catch (junit.framework.AssertionFailedError error) {528 fail("highscoreList.addResult(2) failed: " + error.getMessage());529 }530 531 }532 533 private void _test__listListenerMoreThanMax_transitions0_effect_state() {534 _test__listListenerMoreThanMax_transitions0_effect_state_objectTests0_test();535 536 }537 538 private void _test__listListenerMoreThanMax_transitions0_effect_state_objectTests0_test() {539 try {540 541 this.operator_assertEquals(542 this.highscoreList, new int[] { 2, 5, 6 });543 } catch (junit.framework.AssertionFailedError error) {544 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) ,highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());545 }546 547 }548 549 private void _transition_exprAction__listListenerMoreThanMax_transitions1_actions0() {550 try {551 552 this.addResult(3, 1);553 } catch (junit.framework.AssertionFailedError error) {554 fail("addResult(3, 1) failed: " + error.getMessage());555 }556 557 }558 559 private void _test__listListenerMoreThanMax_transitions1_effect_state() {560 _test__listListenerMoreThanMax_transitions1_effect_state_objectTests0_test();561 562 }563 564 private void _test__listListenerMoreThanMax_transitions1_effect_state_objectTests0_test() {565 try {566 567 this.operator_assertEquals(568 this.highscoreList, new int[] { 2, 3, 5 });569 } catch (junit.framework.AssertionFailedError error) {570 fail("highscoreList ?= #[2, 3, 5] failed after addResult(3, 1): " + error.getMessage());571 }572 573 }574 575 private void _transition_exprAction__listListenerMoreThanMax_transitions2_actions0() {576 try {577 578 this.pos2 = (-1);579 } catch (junit.framework.AssertionFailedError error) {580 fail("pos2 = -1 failed: " + error.getMessage());581 }582 583 }584 585 private void _transition_exprAction__listListenerMoreThanMax_transitions2_actions1() {586 try {587 588 this.addResult(7, (-1));589 } catch (junit.framework.AssertionFailedError error) {590 fail("addResult(7, -1) failed: " + error.getMessage());591 }592 593 }594 595 private void _test__listListenerMoreThanMax_transitions2_effect_state() {596 _test__listListenerMoreThanMax_transitions2_effect_state_objectTests0_test();597 598 }599 600 private void _test__listListenerMoreThanMax_transitions2_effect_state_objectTests0_test() {601 try {602 603 this.operator_assertEquals(604 this.highscoreList, new int[] { 2, 3, 5 });605 } catch (junit.framework.AssertionFailedError error) {606 fail("highscoreList ?= #[2, 3, 5] failed after pos2 = -1 ,addResult(7, -1): " + error.getMessage());607 }608 609 }610 611 private void _transition_exprAction__listListenerDuplicate_transitions0_actions0() {612 try {613 614 final HighscoreListListener _function = new HighscoreListListener() {615 public void listChanged(final HighscoreList list, final int pos) {616 HighscoreListTest.this.pos2 = pos;617 }618 };619 this.highscoreList.addHighscoreListListener(_function);620 } catch (junit.framework.AssertionFailedError error) {621 fail("highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());622 }623 624 }625 626 private void _transition_exprAction__listListenerDuplicate_transitions0_actions1() {627 try {628 629 this.highscoreList.addResult(Integer.valueOf(5));630 } catch (junit.framework.AssertionFailedError error) {631 fail("highscoreList.addResult(5) failed: " + error.getMessage());632 }633 634 }635 636 private void _transition_exprAction__listListenerDuplicate_transitions0_actions2() {637 try {638 639 this.highscoreList.addResult(Integer.valueOf(6));640 } catch (junit.framework.AssertionFailedError error) {641 fail("highscoreList.addResult(6) failed: " + error.getMessage());642 }643 644 }645 646 private void _transition_exprAction__listListenerDuplicate_transitions0_actions3() {647 try {648 649 this.highscoreList.addResult(Integer.valueOf(2));650 } catch (junit.framework.AssertionFailedError error) {651 fail("highscoreList.addResult(2) failed: " + error.getMessage());652 }653 654 }655 656 private void _test__listListenerDuplicate_transitions0_effect_state() {657 _test__listListenerDuplicate_transitions0_effect_state_objectTests0_test();658 659 }660 661 private void _test__listListenerDuplicate_transitions0_effect_state_objectTests0_test() {662 try {663 664 this.operator_assertEquals(665 this.highscoreList, new int[] { 2, 5, 6 });666 } catch (junit.framework.AssertionFailedError error) {667 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addHighscoreListListener([list, pos | pos2 = pos]) ,highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());668 }669 670 }671 672 private void _transition_exprAction__listListenerDuplicate_transitions1_actions0() {673 try {674 675 this.addResult(2, 1);676 } catch (junit.framework.AssertionFailedError error) {677 fail("addResult(2, 1) failed: " + error.getMessage());678 }679 680 }681 682 private void _test__listListenerDuplicate_transitions1_effect_state() {683 _test__listListenerDuplicate_transitions1_effect_state_objectTests0_test();684 685 }686 687 private void _test__listListenerDuplicate_transitions1_effect_state_objectTests0_test() {688 try {689 690 this.operator_assertEquals(691 this.highscoreList, new int[] { 2, 2, 5 });692 } catch (junit.framework.AssertionFailedError error) {693 fail("highscoreList ?= #[2, 2, 5] failed after addResult(2, 1): " + error.getMessage());694 }695 696 }697 698 public static void main(final String[] args) {699 no.hal.jex.standalone.JexStandalone.main(HighscoreListTest.class);700 }701}...

Full Screen

Full Screen

Source:ObservableHighscoreListTest.java Github

copy

Full Screen

...150 private void _transition_exprAction__addElementSimple_transitions0_actions0() {151 try {152 153 this.highscoreList.addResult(Integer.valueOf(5));154 } catch (junit.framework.AssertionFailedError error) {155 fail("highscoreList.addResult(5) failed: " + error.getMessage());156 }157 158 }159 160 private void _test__addElementSimple_transitions0_effects0_state() {161 _test__addElementSimple_transitions0_effects0_state_objectTests0_test();162 163 }164 165 private void _test__addElementSimple_transitions0_effects0_state_objectTests0_test() {166 try {167 168 this.operator_assertEquals(169 this.highscoreList, new int[] { 5 });170 } catch (junit.framework.AssertionFailedError error) {171 fail("highscoreList ?= #[5] failed after highscoreList.addResult(5): " + error.getMessage());172 }173 174 }175 176 private void _transition_exprAction__addElementSimple_transitions1_actions0() {177 try {178 179 this.highscoreList.addResult(Integer.valueOf(6));180 } catch (junit.framework.AssertionFailedError error) {181 fail("highscoreList.addResult(6) failed: " + error.getMessage());182 }183 184 }185 186 private void _test__addElementSimple_transitions1_effects0_state() {187 _test__addElementSimple_transitions1_effects0_state_objectTests0_test();188 189 }190 191 private void _test__addElementSimple_transitions1_effects0_state_objectTests0_test() {192 try {193 194 this.operator_assertEquals(195 this.highscoreList, new int[] { 5, 6 });196 } catch (junit.framework.AssertionFailedError error) {197 fail("highscoreList ?= #[5, 6] failed after highscoreList.addResult(6): " + error.getMessage());198 }199 200 }201 202 private void _transition_exprAction__addElementSimple_transitions2_actions0() {203 try {204 205 this.highscoreList.addResult(Integer.valueOf(2));206 } catch (junit.framework.AssertionFailedError error) {207 fail("highscoreList.addResult(2) failed: " + error.getMessage());208 }209 210 }211 212 private void _test__addElementSimple_transitions2_effects0_state() {213 _test__addElementSimple_transitions2_effects0_state_objectTests0_test();214 215 }216 217 private void _test__addElementSimple_transitions2_effects0_state_objectTests0_test() {218 try {219 220 this.operator_assertEquals(221 this.highscoreList, new int[] { 2, 5, 6 });222 } catch (junit.framework.AssertionFailedError error) {223 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(2): " + error.getMessage());224 }225 226 }227 228 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions0() {229 try {230 231 this.highscoreList.addResult(Integer.valueOf(5));232 } catch (junit.framework.AssertionFailedError error) {233 fail("highscoreList.addResult(5) failed: " + error.getMessage());234 }235 236 }237 238 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions1() {239 try {240 241 this.highscoreList.addResult(Integer.valueOf(6));242 } catch (junit.framework.AssertionFailedError error) {243 fail("highscoreList.addResult(6) failed: " + error.getMessage());244 }245 246 }247 248 private void _transition_exprAction__addElementMoreThanMax_transitions0_actions2() {249 try {250 251 this.highscoreList.addResult(Integer.valueOf(2));252 } catch (junit.framework.AssertionFailedError error) {253 fail("highscoreList.addResult(2) failed: " + error.getMessage());254 }255 256 }257 258 private void _test__addElementMoreThanMax_transitions0_effects0_state() {259 _test__addElementMoreThanMax_transitions0_effects0_state_objectTests0_test();260 261 }262 263 private void _test__addElementMoreThanMax_transitions0_effects0_state_objectTests0_test() {264 try {265 266 this.operator_assertEquals(267 this.highscoreList, new int[] { 2, 5, 6 });268 } catch (junit.framework.AssertionFailedError error) {269 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());270 }271 272 }273 274 private void _transition_exprAction__addElementMoreThanMax_transitions1_actions0() {275 try {276 277 this.highscoreList.addResult(Integer.valueOf(3));278 } catch (junit.framework.AssertionFailedError error) {279 fail("highscoreList.addResult(3) failed: " + error.getMessage());280 }281 282 }283 284 private void _test__addElementMoreThanMax_transitions1_effects0_state() {285 _test__addElementMoreThanMax_transitions1_effects0_state_objectTests0_test();286 287 }288 289 private void _test__addElementMoreThanMax_transitions1_effects0_state_objectTests0_test() {290 try {291 292 this.operator_assertEquals(293 this.highscoreList, new int[] { 2, 3, 5 });294 } catch (junit.framework.AssertionFailedError error) {295 fail("highscoreList ?= #[2, 3, 5] failed after highscoreList.addResult(3): " + error.getMessage());296 }297 298 }299 300 private void _transition_exprAction__addElementMoreThanMax_transitions2_actions0() {301 try {302 303 this.highscoreList.addResult(Integer.valueOf(7));304 } catch (junit.framework.AssertionFailedError error) {305 fail("highscoreList.addResult(7) failed: " + error.getMessage());306 }307 308 }309 310 private void _test__addElementMoreThanMax_transitions2_effects0_state() {311 _test__addElementMoreThanMax_transitions2_effects0_state_objectTests0_test();312 313 }314 315 private void _test__addElementMoreThanMax_transitions2_effects0_state_objectTests0_test() {316 try {317 318 this.operator_assertEquals(319 this.highscoreList, new int[] { 2, 3, 5 });320 } catch (junit.framework.AssertionFailedError error) {321 fail("highscoreList ?= #[2, 3, 5] failed after highscoreList.addResult(7): " + error.getMessage());322 }323 324 }325 326 private void _transition_exprAction__addElementDuplicate_transitions0_actions0() {327 try {328 329 this.highscoreList.addResult(Integer.valueOf(5));330 } catch (junit.framework.AssertionFailedError error) {331 fail("highscoreList.addResult(5) failed: " + error.getMessage());332 }333 334 }335 336 private void _transition_exprAction__addElementDuplicate_transitions0_actions1() {337 try {338 339 this.highscoreList.addResult(Integer.valueOf(6));340 } catch (junit.framework.AssertionFailedError error) {341 fail("highscoreList.addResult(6) failed: " + error.getMessage());342 }343 344 }345 346 private void _transition_exprAction__addElementDuplicate_transitions0_actions2() {347 try {348 349 this.highscoreList.addResult(Integer.valueOf(2));350 } catch (junit.framework.AssertionFailedError error) {351 fail("highscoreList.addResult(2) failed: " + error.getMessage());352 }353 354 }355 356 private void _test__addElementDuplicate_transitions0_effects0_state() {357 _test__addElementDuplicate_transitions0_effects0_state_objectTests0_test();358 359 }360 361 private void _test__addElementDuplicate_transitions0_effects0_state_objectTests0_test() {362 try {363 364 this.operator_assertEquals(365 this.highscoreList, new int[] { 2, 5, 6 });366 } catch (junit.framework.AssertionFailedError error) {367 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());368 }369 370 }371 372 private void _transition_exprAction__addElementDuplicate_transitions1_actions0() {373 try {374 375 this.highscoreList.addResult(Integer.valueOf(2));376 } catch (junit.framework.AssertionFailedError error) {377 fail("highscoreList.addResult(2) failed: " + error.getMessage());378 }379 380 }381 382 private void _test__addElementDuplicate_transitions1_effects0_state() {383 _test__addElementDuplicate_transitions1_effects0_state_objectTests0_test();384 385 }386 387 private void _test__addElementDuplicate_transitions1_effects0_state_objectTests0_test() {388 try {389 390 this.operator_assertEquals(391 this.highscoreList, new int[] { 2, 2, 5 });392 } catch (junit.framework.AssertionFailedError error) {393 fail("highscoreList ?= #[2, 2, 5] failed after highscoreList.addResult(2): " + error.getMessage());394 }395 396 }397 398 private void _transition_exprAction__listListenerSimple_transitions0_actions0() {399 try {400 401 final ObservableListListener _function = (ObservableList list, int pos) -> {402 this.pos2 = pos;403 };404 this.highscoreList.addObservableListListener(_function);405 } catch (junit.framework.AssertionFailedError error) {406 fail("highscoreList.addObservableListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());407 }408 409 }410 411 private void _transition_exprAction__listListenerSimple_transitions0_actions1() {412 try {413 414 this.addResult(0, 5);415 } catch (junit.framework.AssertionFailedError error) {416 fail("addResult(0, 5) failed: " + error.getMessage());417 }418 419 }420 421 private void _test__listListenerSimple_transitions0_effects0_state() {422 _test__listListenerSimple_transitions0_effects0_state_objectTests0_test();423 424 }425 426 private void _test__listListenerSimple_transitions0_effects0_state_objectTests0_test() {427 try {428 429 this.operator_assertEquals(430 this.highscoreList, new int[] { 5 });431 } catch (junit.framework.AssertionFailedError error) {432 fail("highscoreList ?= #[5] failed after highscoreList.addObservableListListener([list, pos | pos2 = pos]) ,addResult(0, 5): " + error.getMessage());433 }434 435 }436 437 private void _transition_exprAction__listListenerSimple_transitions1_actions0() {438 try {439 440 this.addResult(1, 6);441 } catch (junit.framework.AssertionFailedError error) {442 fail("addResult(1, 6) failed: " + error.getMessage());443 }444 445 }446 447 private void _test__listListenerSimple_transitions1_effects0_state() {448 _test__listListenerSimple_transitions1_effects0_state_objectTests0_test();449 450 }451 452 private void _test__listListenerSimple_transitions1_effects0_state_objectTests0_test() {453 try {454 455 this.operator_assertEquals(456 this.highscoreList, new int[] { 5, 6 });457 } catch (junit.framework.AssertionFailedError error) {458 fail("highscoreList ?= #[5, 6] failed after addResult(1, 6): " + error.getMessage());459 }460 461 }462 463 private void _transition_exprAction__listListenerSimple_transitions2_actions0() {464 try {465 466 this.addResult(0, 2);467 } catch (junit.framework.AssertionFailedError error) {468 fail("addResult(0, 2) failed: " + error.getMessage());469 }470 471 }472 473 private void _test__listListenerSimple_transitions2_effects0_state() {474 _test__listListenerSimple_transitions2_effects0_state_objectTests0_test();475 476 }477 478 private void _test__listListenerSimple_transitions2_effects0_state_objectTests0_test() {479 try {480 481 this.operator_assertEquals(482 this.highscoreList, new int[] { 2, 5, 6 });483 } catch (junit.framework.AssertionFailedError error) {484 fail("highscoreList ?= #[2, 5, 6] failed after addResult(0, 2): " + error.getMessage());485 }486 487 }488 489 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions0() {490 try {491 492 final ObservableListListener _function = (ObservableList list, int pos) -> {493 this.pos2 = pos;494 };495 this.highscoreList.addObservableListListener(_function);496 } catch (junit.framework.AssertionFailedError error) {497 fail("highscoreList.addObservableListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());498 }499 500 }501 502 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions1() {503 try {504 505 this.highscoreList.addResult(Integer.valueOf(5));506 } catch (junit.framework.AssertionFailedError error) {507 fail("highscoreList.addResult(5) failed: " + error.getMessage());508 }509 510 }511 512 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions2() {513 try {514 515 this.highscoreList.addResult(Integer.valueOf(6));516 } catch (junit.framework.AssertionFailedError error) {517 fail("highscoreList.addResult(6) failed: " + error.getMessage());518 }519 520 }521 522 private void _transition_exprAction__listListenerMoreThanMax_transitions0_actions3() {523 try {524 525 this.highscoreList.addResult(Integer.valueOf(2));526 } catch (junit.framework.AssertionFailedError error) {527 fail("highscoreList.addResult(2) failed: " + error.getMessage());528 }529 530 }531 532 private void _test__listListenerMoreThanMax_transitions0_effects0_state() {533 _test__listListenerMoreThanMax_transitions0_effects0_state_objectTests0_test();534 535 }536 537 private void _test__listListenerMoreThanMax_transitions0_effects0_state_objectTests0_test() {538 try {539 540 this.operator_assertEquals(541 this.highscoreList, new int[] { 2, 5, 6 });542 } catch (junit.framework.AssertionFailedError error) {543 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addObservableListListener([list, pos | pos2 = pos]) ,highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());544 }545 546 }547 548 private void _transition_exprAction__listListenerMoreThanMax_transitions1_actions0() {549 try {550 551 this.addResult(1, 3);552 } catch (junit.framework.AssertionFailedError error) {553 fail("addResult(1, 3) failed: " + error.getMessage());554 }555 556 }557 558 private void _test__listListenerMoreThanMax_transitions1_effects0_state() {559 _test__listListenerMoreThanMax_transitions1_effects0_state_objectTests0_test();560 561 }562 563 private void _test__listListenerMoreThanMax_transitions1_effects0_state_objectTests0_test() {564 try {565 566 this.operator_assertEquals(567 this.highscoreList, new int[] { 2, 3, 5 });568 } catch (junit.framework.AssertionFailedError error) {569 fail("highscoreList ?= #[2, 3, 5] failed after addResult(1, 3): " + error.getMessage());570 }571 572 }573 574 private void _transition_exprAction__listListenerMoreThanMax_transitions2_actions0() {575 try {576 577 this.pos2 = (-1);578 } catch (junit.framework.AssertionFailedError error) {579 fail("pos2 = -1 failed: " + error.getMessage());580 }581 582 }583 584 private void _transition_exprAction__listListenerMoreThanMax_transitions2_actions1() {585 try {586 587 this.addResult((-1), 7);588 } catch (junit.framework.AssertionFailedError error) {589 fail("addResult(-1, 7) failed: " + error.getMessage());590 }591 592 }593 594 private void _test__listListenerMoreThanMax_transitions2_effects0_state() {595 _test__listListenerMoreThanMax_transitions2_effects0_state_objectTests0_test();596 597 }598 599 private void _test__listListenerMoreThanMax_transitions2_effects0_state_objectTests0_test() {600 try {601 602 this.operator_assertEquals(603 this.highscoreList, new int[] { 2, 3, 5 });604 } catch (junit.framework.AssertionFailedError error) {605 fail("highscoreList ?= #[2, 3, 5] failed after pos2 = -1 ,addResult(-1, 7): " + error.getMessage());606 }607 608 }609 610 private void _transition_exprAction__listListenerDuplicate_transitions0_actions0() {611 try {612 613 final ObservableListListener _function = (ObservableList list, int pos) -> {614 this.pos2 = pos;615 };616 this.highscoreList.addObservableListListener(_function);617 } catch (junit.framework.AssertionFailedError error) {618 fail("highscoreList.addObservableListListener([list, pos | pos2 = pos]) failed: " + error.getMessage());619 }620 621 }622 623 private void _transition_exprAction__listListenerDuplicate_transitions0_actions1() {624 try {625 626 this.highscoreList.addResult(Integer.valueOf(5));627 } catch (junit.framework.AssertionFailedError error) {628 fail("highscoreList.addResult(5) failed: " + error.getMessage());629 }630 631 }632 633 private void _transition_exprAction__listListenerDuplicate_transitions0_actions2() {634 try {635 636 this.highscoreList.addResult(Integer.valueOf(6));637 } catch (junit.framework.AssertionFailedError error) {638 fail("highscoreList.addResult(6) failed: " + error.getMessage());639 }640 641 }642 643 private void _transition_exprAction__listListenerDuplicate_transitions0_actions3() {644 try {645 646 this.highscoreList.addResult(Integer.valueOf(2));647 } catch (junit.framework.AssertionFailedError error) {648 fail("highscoreList.addResult(2) failed: " + error.getMessage());649 }650 651 }652 653 private void _test__listListenerDuplicate_transitions0_effects0_state() {654 _test__listListenerDuplicate_transitions0_effects0_state_objectTests0_test();655 656 }657 658 private void _test__listListenerDuplicate_transitions0_effects0_state_objectTests0_test() {659 try {660 661 this.operator_assertEquals(662 this.highscoreList, new int[] { 2, 5, 6 });663 } catch (junit.framework.AssertionFailedError error) {664 fail("highscoreList ?= #[2, 5, 6] failed after highscoreList.addObservableListListener([list, pos | pos2 = pos]) ,highscoreList.addResult(5) ,highscoreList.addResult(6) ,highscoreList.addResult(2): " + error.getMessage());665 }666 667 }668 669 private void _transition_exprAction__listListenerDuplicate_transitions1_actions0() {670 try {671 672 this.addResult(1, 2);673 } catch (junit.framework.AssertionFailedError error) {674 fail("addResult(1, 2) failed: " + error.getMessage());675 }676 677 }678 679 private void _test__listListenerDuplicate_transitions1_effects0_state() {680 _test__listListenerDuplicate_transitions1_effects0_state_objectTests0_test();681 682 }683 684 private void _test__listListenerDuplicate_transitions1_effects0_state_objectTests0_test() {685 try {686 687 this.operator_assertEquals(688 this.highscoreList, new int[] { 2, 2, 5 });689 } catch (junit.framework.AssertionFailedError error) {690 fail("highscoreList ?= #[2, 2, 5] failed after addResult(1, 2): " + error.getMessage());691 }692 693 }694}...

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import junit.framework.TestCase;3import junit.framework.TestResult;4import junit.framework.TestSuite;5public class TestRunner {6 public static void main(String[] args) {7 TestResult result = new TestResult();8 TestSuite suite = new TestSuite(TestJunit1.class);9 suite.run(result);10 System.out.println("Number of test cases = " + result.runCount());11 }12}

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import junit.framework.TestResult;3import junit.framework.Test;4import junit.framework.TestCase;5import static org.junit.Assert.assertEquals;6import static org.junit.Assert.assertTrue;7import static org.junit.Assert.assertFalse;8import static org.junit.Assert.fail;9import junit.framework.TestSuite;10import junit.framework.TestListener;11import junit.framework.TestFailure;12import junit.framework.TestListener;13import junit.framework.TestResult;14import junit.framework.TestSuite;15import junit.framework.Test;16import junit.framework.TestResult;17import junit.framework.Test;18import junit.framework.TestListener;19import junit.framework.TestFailure;20import junit.framework.TestListener;21import junit.framework.TestResult;22import junit.framework.TestSuite;23import junit.framework.Test;24import junit.framework.TestResult;25import junit.framework.Test;26import junit.framework.TestListener;27import junit.framework.TestFailure;28import junit.framework.TestListener;

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import org.junit.Assert;3import org.junit.Test;4import org.junit.BeforeClass;5import org.junit.AfterClass;6import org.junit.Before;7import org.junit.After;8import org.junit.Ignore;9import org.junit.runner.RunWith;10import org.junit.runners.Suite;11import org.junit.runners.Suite.SuiteClasses;12import org.junit.TestResult;13import org.junit.TestListener;14import org.junit.TestFailure;15import org.junit.TestRunner;16import org.junit.TestSuite;17import org.junit.TestContext;18import org.junit.TestContextManager;19import org.junit.TestContextBootstrapper;20import org.junit.runner.RunWith;21import org.junit.runners.Suite;22import org.junit.runners.Suite.SuiteClasses;23import org.junit.runner.RunWith;24import org.junit.runners.Suite;25import org.junit.runners.Suite.SuiteClasses;26import org.junit.runner.RunWith;27import org.junit.runners.Suite;

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import org.junit.Assert;2import org.junit.Test;3import org.junit.runner.JUnitCore;4import org.junit.runner.Result;5import org.junit.runner.notification.Failure;6public class TestRunner {7 public static void main(String[] args) {8 Result result = JUnitCore.runClasses(TestJunit.class);9 for (Failure failure : result.getFailures()) {10 System.out.println(failure.toString());11 }12 System.out.println(result.wasSuccessful());13 }14}15public class TestJunit {16 public void testAdd() {17 String str= "Junit is working fine";18 Assert.assertEquals("Junit is working fine",str);19 }20}21at org.junit.Assert.assertEquals(Assert.java:115)22at org.junit.Assert.assertEquals(Assert.java:144)23at TestJunit.testAdd(TestJunit.java:8)24at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)25at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)26at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)27at java.lang.reflect.Method.invoke(Method.java:498)28at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)29at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)30at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)31at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)32at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)33at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)34at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)35at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)36at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)37at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)38at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)39at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)40at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import static org.junit.Assert.assertEquals;2import static org.junit.Assert.fail;3import org.junit.Test;4public class TestJunit1 {5 public void testAdd() {6 int num = 5;7 String temp = null;8 String str = "Junit is working fine";9 assertEquals("Junit is working fine", str);10 assertEquals(false, num > 6);11 assertEquals("Junit is working fine", str);12 assertEquals(null, temp);13 }14 public void testfail() {15 fail("failing the test");16 }17}18import static org.junit.Assert.assertEquals;19import static org.junit.Assert.fail;20import org.junit.Test;21public class TestJunit2 {22 public void testAdd() {23 int num = 5;24 String temp = null;25 String str = "Junit is working fine";26 assertEquals("Junit is working fine", str);27 assertEquals(false, num > 6);28 assertEquals("Junit is working fine", str);29 assertEquals(null, temp);30 }31 public void testfail() {32 fail("failing the test");33 }34}

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import org.junit.Test;3import org.junit.Assert;4import org.junit.TestResult;5import org.junit.TestFailure;6import org.junit.TestListener;7import org.junit.TestSuite;8import org.junit.TestRunner;9import org.junit.BeforeClass;10import org.junit.AfterClass;11import org.junit.Before;12import org.junit.After;13import org.junit.Ignore;14import org.junit.runner.RunWith;15import org.junit.runner.Suite;16import org.junit.runner.Suite.SuiteClasses;17import org.junit.runner.RunWith;18import org.junit.runner.Parameterized;19import org.junit.runners.Parameterized.Parameters;20import org.junit.runners.Parameterized.Parameter;21import org.junit.runners.Parameterized;22import org.junit.Test;23import org.junit.Assert;24import org.junit.BeforeClass;25import org.junit.AfterClass;26import org.junit.Before;27import org.junit.After;28import org.junit.Ignore;

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import org.junit.Test;3import org.junit.Assert;4import org.junit.TestResult;5import org.junit.TestListener;6import org.junit.TestFailure;7import org.junit.TestSuite;8import org.junit.TestCase;9import org.junit.TestRunner;10import org.junit.BeforeClass;11import org.junit.Before;12import org.junit.After;13import org.junit.AfterClass;14import org.junit.Ignore;15import org.junit.Description;16import org.junit.Rule;17import org.junit.TestWatcher;18import org.junit.Timeout;19import org.junit.Category;20import org.junit.ClassRule;21import org.junit.Parameterized;22import org.junit.Parameters;23import org.junit.ParameterizedTest;24import org.junit.ParameterizedArguments;25import org.junit.ParameterizedMethod;26import org.junit.ParameterizedParameters;27import org.junit.ParameterizedClassRunner;28import org.junit.ParameterizedClassRunnerWithParametersFactory;

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2import org.junit.Test;3public class AssertionFailedErrorTest {4 public void testAssertionFailedError() {5 try {6 throw new AssertionFailedError();7 } catch (AssertionFailedError e) {8 System.out.println(e.getMessage());9 }10 }11}12assertArrayEquals() method of Assert class of junit.framework package13assertEquals() method of Assert class of junit.framework package14assertFalse() method of Assert class of junit.framework package15assertNotNull() method of Assert class of junit.framework package16assertNotSame() method of Assert class of junit.framework package17assertNull() method of Assert class of junit.framework package18assertSame() method of Assert class of junit.framework package19assertTrue() method of Assert class of junit.framework package20fail() method of Assert class of junit.framework package

Full Screen

Full Screen

AssertionFailedError

Using AI Code Generation

copy

Full Screen

1import junit.framework.AssertionFailedError;2public class AssertionFailedErrorDemo {3 public static void main(String[] args) {4 try {5 throw new AssertionFailedError("AssertionFailedError");6 } catch (AssertionFailedError e) {7 System.out.println(e.getMessage());8 }9 }10}11AssertionFailedError class has a protected constructor AssertionFailedError(String message) that is used to initialize AssertionFailedError object

Full Screen

Full Screen
copy
1import static com.googlecode.catchexception.apis.BDDCatchException.*;23@Test4public void testFooThrowsIndexOutOfBoundsException() {56 when(() -> foo.doStuff());78 then(caughtException()).isInstanceOf(IndexOutOfBoundsException.class);910}11
Full Screen
copy
1verifyException(foo, IndexOutOfBoundsException.class).doStuff();2
Full Screen
copy
1@Test2public void testFooThrowsIndexOutOfBoundsException() {3 try {4 foo.doStuff();5 assert false;6 } catch (IndexOutOfBoundsException e) {7 assert true;8 }9}10
Full Screen

JUnit Tutorial:

LambdaTest also has a detailed JUnit tutorial explaining its features, importance, advanced use cases, best practices, and more to help you get started with running your automation testing scripts.

JUnit Tutorial Chapters:

Here are the detailed JUnit testing chapters to help you get started:

  • Importance of Unit testing - Learn why Unit testing is essential during the development phase to identify bugs and errors.
  • Top Java Unit testing frameworks - Here are the upcoming JUnit automation testing frameworks that you can use in 2023 to boost your unit testing.
  • What is the JUnit framework
  • Why is JUnit testing important - Learn the importance and numerous benefits of using the JUnit testing framework.
  • Features of JUnit - Learn about the numerous features of JUnit and why developers prefer it.
  • JUnit 5 vs. JUnit 4: Differences - Here is a complete comparison between JUnit 5 and JUnit 4 testing frameworks.
  • Setting up the JUnit environment - Learn how to set up your JUnit testing environment.
  • Getting started with JUnit testing - After successfully setting up your JUnit environment, this chapter will help you get started with JUnit testing in no time.
  • Parallel testing with JUnit - Parallel Testing can be used to reduce test execution time and improve test efficiency. Learn how to perform parallel testing with JUnit.
  • Annotations in JUnit - When writing automation scripts with JUnit, we can use JUnit annotations to specify the type of methods in our test code. This helps us identify those methods when we run JUnit tests using Selenium WebDriver. Learn in detail what annotations are in JUnit.
  • Assertions in JUnit - Assertions are used to validate or test that the result of an action/functionality is the same as expected. Learn in detail what assertions are and how to use them while performing JUnit testing.
  • Parameterization in JUnit - Parameterized Test enables you to run the same automated test scripts with different variables. By collecting data on each method's test parameters, you can minimize time spent on writing tests. Learn how to use parameterization in JUnit.
  • Nested Tests In JUnit 5 - A nested class is a non-static class contained within another class in a hierarchical structure. It can share the state and setup of the outer class. Learn about nested annotations in JUnit 5 with examples.
  • Best practices for JUnit testing - Learn about the best practices, such as always testing key methods and classes, integrating JUnit tests with your build, and more to get the best possible results.
  • Advanced Use Cases for JUnit testing - Take a deep dive into the advanced use cases, such as how to run JUnit tests in Jupiter, how to use JUnit 5 Mockito for Unit testing, and more for JUnit testing.

JUnit Certification:

You can also check out our JUnit certification if you wish to take your career in Selenium automation testing with JUnit to the next level.

Run junit automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Test Your Web Or Mobile Apps On 3000+ Browsers

Signup for free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful