You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(java): ensure test code insertion with proper annotation and handling of full code blocks
This commit fixes a bug in the JavaCodeModifier class where test methods without the @test annotation were not being inserted correctly. It also addresses an issue where full code blocks, identified by starting with an import statement and containing a class definition, were not being handled appropriately. The fix includes trimming the code block to remove the surrounding ``` markdown syntax, and then inserting the code as a test method or class, depending on its content and the context of the existing source file.
0 commit comments