0 points

Add @InjectResource JUnit extensions with Maven


dashboard

Thu Aug 27 2020 11:08:36 GMT+0000 (UTC)

Posted 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_copy Copy