Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kotlin support for JUnit recipes: UpdateBeforeAfterAnnotations #533

Commits on Jun 17, 2024

  1. Adding Kotlin support to the recipes, fixing the recipes to work use …

    …preVisit instead of visitCompilationUnit.
    Amitoj Duggal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    0d54471 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6abf2f3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30960c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e07c523 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Adding Kotlin support for the UpdateBeforeAfterAnnotations, along wit…

    …h new tests for kotlin
    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    15545f1 View commit details
    Browse the repository at this point in the history
  2. Added kotlin tests for AddParameterizedTestAnnotation

    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    fa13722 View commit details
    Browse the repository at this point in the history
  3. Add Picnic AssertJ rules to AssertJ best practices (openrewrite#527)

    * Add Picnic AssertJ rules to AssertJ best practices
    
    * Include Picnic's JUnitToAssertJRulesRecipes in migration
    
    * Exclude `jakarta.xml.bind-api` from TimeFold
    
    * Move the exclude to rewrite-third-party
    timtebeek authored and Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f6fd008 View commit details
    Browse the repository at this point in the history
  4. refactor: Only publish build scans if authenticated

    Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/kLJjXlflM?organizationId=T3BlblJld3JpdGU%3D
    
    Co-authored-by: Moderne <team@moderne.io>
    2 people authored and Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    64dfb10 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e579694 View commit details
    Browse the repository at this point in the history
  6. Jmockit Expectations with no times or result should be transformed to…

    … Mockito verify statement (openrewrite#530)
    
    * Ensure Jmockit expectations with no times or result transform to a mockito verify
    
    * Minor polish to text blocks
    
    * Make times, minTimes, maxTimes more flexible as it was originally so even if someone mistakenly puts times and minTimes together, it still migrates without issue
    
    ---------
    
    Co-authored-by: Tim te Beek <tim@moderne.io>
    2 people authored and Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1d22c17 View commit details
    Browse the repository at this point in the history
  7. Rewrite both JMockit @Mocked and @Injectable annotated arguments (o…

    …penrewrite#532)
    
    * Ensure Jmockit expectations with no times or result transform to a mockito verify
    
    * Minor polish to text blocks
    
    * Make times, minTimes, maxTimes more flexible as it was originally so even if someone mistakenly puts times and minTimes together, it still migrates without issue
    
    * Add feature to enable migration of Jmockit Injectable annotation exactly as we are doing the Mocked annotation ie method parameter annotation as well as field annotation. Have moved all of the code from JMockitMockedVariableToMockito to JMockitAnnotationToMockito for code reuse. Also add the corresponding test cases and jmockit.yml file modification.
    
    * Use `@Option` instead of inheritance
    
    * Drop Option and just replace both variants
    
    * Update display name and description to match application
    
    ---------
    
    Co-authored-by: Tim te Beek <tim@moderne.io>
    2 people authored and Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    77af97e View commit details
    Browse the repository at this point in the history
  8. Adding Kotlin support for the UpdateBeforeAfterAnnotations, along wit…

    …h new tests for kotlin
    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    c88a886 View commit details
    Browse the repository at this point in the history
  9. Added kotlin tests for AddParameterizedTestAnnotation

    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    df099f0 View commit details
    Browse the repository at this point in the history
  10. Merge remote-tracking branch 'origin/feature/add-kotlin-support-junit…

    …-cleanuprule' into feature/add-kotlin-support-junit-cleanuprule
    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1d8d535 View commit details
    Browse the repository at this point in the history
  11. Restoring changes to issue to retain the references

    Amitoj Duggal committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ddd9a1e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a1eba6b View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Update src/test/java/org/openrewrite/java/testing/junit5/UpdateBefore…

    …AfterAnnotationsTest.java
    
    Co-authored-by: Tim te Beek <timtebeek@gmail.com>
    amitojduggal and timtebeek committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    b42b321 View commit details
    Browse the repository at this point in the history
  2. Removing tests for kotlin and keep one in the Documentation example. …

    …We can tackle the issues and add tests separately if we see bug in workflows.
    Amitoj Duggal committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    8423915 View commit details
    Browse the repository at this point in the history
  3. Removing extra tests for Kotlin, and keeping one, fixing issue with f…

    …ailing build.
    Amitoj Duggal committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    2799ad2 View commit details
    Browse the repository at this point in the history
  4. Restored changes to the disabled test.

    Amitoj Duggal committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    6049913 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. Minor touch up

    timtebeek committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    41e97e6 View commit details
    Browse the repository at this point in the history