Skip to content

Commit

Permalink
For yegor256#939: Corrected todo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulodamaso committed Jan 28, 2019
1 parent 22b9fab commit 02e13e4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<!--
@todo #939:30min Upgrade to Junit5. Continue to upgrade to Junit5
updating qulice-maven-plugin sub-module and removing remaining
junit4 tags.
-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
Expand Down
16 changes: 7 additions & 9 deletions qulice-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.1.0</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
Expand Down Expand Up @@ -218,14 +224,6 @@
<version>5.0.0.Final</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -262,7 +260,7 @@
</plugin>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.3</version>
<version>3.4</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.context.Context;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.mockito.Mockito;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import org.apache.maven.project.MavenProject;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.mockito.Mockito;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import com.qulice.spi.Environment;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import org.junit.Test;

/**
* Test case for {@link ValidatorsProvider} class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.apache.maven.project.MavenProject;
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis;
import org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzer;
import org.junit.jupiter.api.Test;
import org.junit.Test;
import org.mockito.Mockito;

/**
Expand Down Expand Up @@ -89,7 +89,7 @@ public void passesIfNoDependencyProblemsFound() throws Exception {
* DependencyValidator can catch dependency problems.
* @throws Exception If something wrong happens inside
*/
@org.junit.Test(expected = ValidationException.class)
@Test(expected = ValidationException.class)
public void catchesDependencyProblemsAndThrowsException() throws Exception {
final ProjectDependencyAnalysis analysis =
Mockito.mock(ProjectDependencyAnalysis.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import org.apache.commons.io.FileUtils;
import org.cactoos.io.ResourceOf;
import org.cactoos.text.TextOf;
import org.junit.jupiter.api.Test;
import org.junit.Test;

/**
* Test case for {@link PomXpathValidator} class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
*/
package com.qulice.maven;


import org.junit.jupiter.api.Test;
import org.junit.Test;

/**
* Test case for {@link SvnPropertiesValidator}.
Expand Down

0 comments on commit 02e13e4

Please sign in to comment.