File tree 1 file changed +3
-5
lines changed
impl/maven-impl/src/test/java/org/apache/maven/impl
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 24
24
import org .junit .jupiter .api .Test ;
25
25
26
26
import static org .junit .jupiter .api .Assertions .assertEquals ;
27
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
27
28
import static org .junit .jupiter .api .Assertions .assertNull ;
28
29
import static org .junit .jupiter .api .Assertions .assertTrue ;
29
30
import static org .junit .jupiter .api .Assertions .fail ;
30
31
31
- /**
32
- */
33
32
public class ModelVersionParserTest {
34
33
35
34
private final DefaultModelVersionParser versionParser = new DefaultModelVersionParser (new GenericVersionScheme ());
36
35
37
- private VersionParserException parseInvalid (String constraint ) {
36
+ private void parseInvalid (String constraint ) {
38
37
try {
39
38
versionParser .parseVersionConstraint (constraint );
40
39
fail ("expected exception for constraint " + constraint );
41
- return null ;
42
40
} catch (VersionParserException e ) {
43
- return e ;
41
+ assertNotNull ( e . getMessage ()) ;
44
42
}
45
43
}
46
44
You can’t perform that action at this time.
0 commit comments