Title: Improve sandbox-relative description in generated tests · Issue #782 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Improve sandbox-relative description in generated tests · Issue #782 · UnitTestBot/UTBotJava
X Title: Improve sandbox-relative description in generated tests · Issue #782 · UnitTestBot/UTBotJava
Description: Description After #625 was implemented methods that try to run some unsafe code now generates into tests like this: @Disabled("Disabled due to sandbox") public void testPropertyWithBlankString() { SecurityCheck securityCheck = new Securi...
Open Graph Description: Description After #625 was implemented methods that try to run some unsafe code now generates into tests like this: @Disabled("Disabled due to sandbox") public void testPropertyWithBlankString() { ...
X Description: Description After #625 was implemented methods that try to run some unsafe code now generates into tests like this: @Disabled("Disabled due to sandbox") public void testPropertyWithBlankS...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/782
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve sandbox-relative description in generated tests","articleBody":"**Description**\r\n\r\nAfter #625 was implemented methods that try to run some unsafe code now generates into tests like this:\r\n\r\n```java\r\n@Disabled(\"Disabled due to sandbox\")\r\npublic void testPropertyWithBlankString() {\r\n SecurityCheck securityCheck = new SecurityCheck();\r\n \r\n /* This test fails because method [com.company.security.SecurityCheck.property] produces [java.security.AccessControlException: access denied (\"java.util.PropertyPermission\" \" \" \"read\")]\r\n java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)\r\n java.security.AccessController.checkPermission(AccessController.java:886)\r\n java.lang.SecurityManager.checkPermission(SecurityManager.java:549)\r\n java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)\r\n java.lang.System.getProperty(System.java:719)\r\n com.company.security.SecurityCheck.property(SecurityCheck.java:32) */\r\n }\r\n```\r\n\r\nWe have several problems with this view:\r\n\r\n1. User have no information how to change settings of security manager\r\n2. TestNG has no `@Disabled` annotation\r\n3. Is it good idea to print stacktrace?\r\n\r\n**Expected behavior**\r\n\r\nGenerated test should be improved. We can add little doc or even hyperlink to add permissions into correct file.\r\n","author":{"url":"https://github.com/Markoutte","@type":"Person","name":"Markoutte"},"datePublished":"2022-08-24T11:20:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/782/UTBotJava/issues/782"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d010060-f273-df65-f8d5-39ba5863caa4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0F2:1233C7:53998:70AB8:698E26F6 |
| html-safe-nonce | a288cb014a1b02dd8d1a427b6e3c5d03a93fb653e85c91124a5fa28c4d2dc96d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEYyOjEyMzNDNzo1Mzk5ODo3MEFCODo2OThFMjZGNiIsInZpc2l0b3JfaWQiOiI4MjU4OTA2MjYwMDgzOTc1OTI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b2a35855bb1a6d34f279450f75a27a418443fcff69fd5a44257d1c497dfa28b |
| hovercard-subject-tag | issue:1349281610 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/782/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a84467e627664f7de9751a56a15e83eb6df25d6f29a2560c94492bedd86d757/UnitTestBot/UTBotJava/issues/782 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a84467e627664f7de9751a56a15e83eb6df25d6f29a2560c94492bedd86d757/UnitTestBot/UTBotJava/issues/782 |
| og:image:alt | Description After #625 was implemented methods that try to run some unsafe code now generates into tests like this: @Disabled("Disabled due to sandbox") public void testPropertyWithBlankString() { ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Markoutte |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f1e729d231ea1ea5a098d21f1491b75bea53631 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width