Title: Generated tests contain JUnit4 @Test and commented JUnit5 @DisplayName annotations · Issue #576 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Generated tests contain JUnit4 @Test and commented JUnit5 @DisplayName annotations · Issue #576 · UnitTestBot/UTBotJava
X Title: Generated tests contain JUnit4 @Test and commented JUnit5 @DisplayName annotations · Issue #576 · UnitTestBot/UTBotJava
Description: Description Tests generated with JUnit4 framework selected - contain JUnit4 @test and commented JUnit5 @DisplayName annotations. To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTBot plugin installed is opened Open a pro...
Open Graph Description: Description Tests generated with JUnit4 framework selected - contain JUnit4 @test and commented JUnit5 @DisplayName annotations. To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTB...
X Description: Description Tests generated with JUnit4 framework selected - contain JUnit4 @test and commented JUnit5 @DisplayName annotations. To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTB...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/576
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generated tests contain JUnit4 @Test and commented JUnit5 @DisplayName annotations","articleBody":"**Description**\r\n\r\nTests generated with JUnit4 framework selected - contain JUnit4 @Test and commented JUnit5 @DisplayName annotations.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. IntelliJ IDEA with UTBot plugin installed is opened\r\n2. Open a project with JDK 8-11\r\n3. Open a public class with a public method\r\n4. Use plugin to generate tests with JUnit4 test framework selected\r\n\r\n**Expected behavior**\r\n\r\nOnly JUnit4 annotations are supposed to be used.\r\n\r\n**Actual behavior**\r\n\r\n@org.junit.jupiter.api.DisplayName are present, though commented\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n```\r\nimport org.junit.Test;\r\n\r\nimport static org.junit.Assert.assertEquals;\r\n\r\npublic class BinarySearchTest {\r\n...\r\n @Test\r\n //@org.junit.jupiter.api.DisplayName(\"rightBinSearch: array = long[10], key = 0L -\u003e return 10\")\r\n public void testRightBinSearchReturns10WithNonEmptyPrimitiveArrayAndCornerCase() {\r\n...\r\n```\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.1.3\r\nUTBot plugin version: https://github.com/UnitTestBot/UTBotJava/actions/runs/2717703384\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-07-22T14:03:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/576/UTBotJava/issues/576"}
| 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:225d6470-5751-0f2d-fa53-8995f1738995 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7BC:1ED7E7:19AE91C:2105B09:6990ED63 |
| html-safe-nonce | 6698c10acae6652ea37bffd1df1e4389377c23d02458c0aa4246b1af65558d39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0JDOjFFRDdFNzoxOUFFOTFDOjIxMDVCMDk6Njk5MEVENjMiLCJ2aXNpdG9yX2lkIjoiMzYzMTg1NjY1NDAxMjcwNjE0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1eaf27924204732ad9873fec5236cf06a2cddf63f4d8a0a2bf761cd920d9a783 |
| hovercard-subject-tag | issue:1315051269 |
| 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/576/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f04cc3e45c89b41ef1744ac0789b02d2d5a326df8970c7aa3a64ab979e1e4250/UnitTestBot/UTBotJava/issues/576 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f04cc3e45c89b41ef1744ac0789b02d2d5a326df8970c7aa3a64ab979e1e4250/UnitTestBot/UTBotJava/issues/576 |
| og:image:alt | Description Tests generated with JUnit4 framework selected - contain JUnit4 @test and commented JUnit5 @DisplayName annotations. To Reproduce Steps to reproduce the behavior: IntelliJ IDEA with UTB... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width