Commit ddabb38
committed
test(datastore): use specific exception matching by name in E2E tests
Use ignoreExceptionsMatching with a helper that checks exception class names as strings. This avoids classloader compatibility issues that might prevent ignoreExceptionsInstanceOf from matching correctly, while still keeping the ignored exceptions list specific.
TAG=agy
CONV=c8697e3d-c06b-4d5b-86e9-f8950e4298fd1 parent 63676b5 commit ddabb38
1 file changed
Lines changed: 10 additions & 2 deletions
File tree
- java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/it
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1028 | 1036 | | |
0 commit comments