Add @InjectResource JUnit extensions with Maven

PHOTO EMBED

Thu Aug 27 2020 11:08:36 GMT+0000 (Coordinated Universal Time)

Saved by @hosuaby

<repositories>
    <repository>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
        <id>central</id>
        <name>bintray</name>
        <url>https://jcenter.bintray.com</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.adelean</groupId>
        <artifactId>inject-resources-core</artifactId>
        <version>0.1.0</version>
        <scope>test</scope>
    </dependency>

    <!-- For JUnit5 -->
    <dependency>
        <groupId>com.adelean</groupId>
        <artifactId>inject-resources-junit-jupiter</artifactId>
        <version>0.1.0</version>
        <scope>test</scope>
    </dependency>

    <!-- or for JUnit4 -->
    <dependency>
        <groupId>com.adelean</groupId>
        <artifactId>inject-resources-junit-vintage</artifactId>
        <version>0.1.0</version>
        <scope>test</scope>
    </dependency>
</dependencies>
content_copyCOPY