Skip to content

Add JUnit rule that runs the test only with a certain Java version #9530

@snicoll

Description

@snicoll
Member

We do have tests that asserts things that are no longer supported in Java9. Our support for Mockito is the best example: it only works as of Mockito 2.5+.

It would be nice to be able to put an annotation that disables all tests if Java9 is running.

Activity

snicoll

snicoll commented on Jul 1, 2017

@snicoll
MemberAuthor
added this to the 2.0.0.M3 milestone on Jul 5, 2017
modified the milestones: 2.0.0.M3, 2.0.0.M4 on Jul 13, 2017
removed this from the 2.0.0.M4 milestone on Aug 23, 2017

6 remaining items

snicoll

snicoll commented on Sep 28, 2017

@snicoll
MemberAuthor

Actually I could use that now

self-assigned this
on Sep 28, 2017
added this to the 2.0.0.M5 milestone on Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @snicoll@philwebb

      Issue actions

        Add JUnit rule that runs the test only with a certain Java version · Issue #9530 · spring-projects/spring-boot