Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2192

Improve the mavendeps-testing, to avoid accidental junit 4 dependency

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M3
    • None
    • None

    Description

      At the moment the isis-mavendeps-testing defines transitive dependencies on both unittestsupport and integtestsupport.

       

      unittestsupport defines the JMock rule stuff, which depends on junit 4: don't want to change this for now.

       

      for integtestsupport, though, want to force upgrade to junit 5, which also means removing any accidental dependencies on junit:junit:4.x

       

      The following dependency for integ tests works, but think it might be better to define two different mavendeps, one for unit testing and one for integ testing.

       

      <dependency>
      <groupId>org.apache.isis.mavendeps</groupId>
      <artifactId>isis-mavendeps-testing</artifactId>
      <type>pom</type>
      <scope>test</scope>
      <exclusions>
      <exclusion>
      <groupId>org.apache.isis.core</groupId>
      <artifactId>isis-unittestsupport</artifactId>
      </exclusion>
      <exclusion>
      <groupId>org.junit.vintage</groupId>
      <artifactId>junit-vintage-engine</artifactId>
      </exclusion>
      </exclusions>
      </dependency>

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: