29
29
import org .apache .maven .tools .plugin .extractor .annotations .scanner .MojoAnnotationsScanner ;
30
30
import org .apache .maven .tools .plugin .extractor .annotations .scanner .MojoAnnotationsScannerRequest ;
31
31
import org .codehaus .plexus .PlexusTestCase ;
32
- import org .fest .assertions .Assertions ;
33
32
34
33
import java .io .File ;
35
34
import java .util .Arrays ;
36
35
import java .util .Collection ;
37
36
import java .util .Collections ;
38
37
import java .util .Map ;
39
38
39
+ import static org .assertj .core .api .Assertions .assertThat ;
40
+
40
41
/**
41
42
* @author Olivier Lamy
42
43
*/
@@ -57,7 +58,7 @@ public void testReadMojoClass()
57
58
58
59
System .out .println ( "mojoAnnotatedClasses:" + mojoAnnotatedClasses );
59
60
60
- Assertions . assertThat ( mojoAnnotatedClasses ).isNotNull ().isNotEmpty ().hasSize ( 1 );
61
+ assertThat ( mojoAnnotatedClasses ).isNotNull ().isNotEmpty ().hasSize ( 1 );
61
62
62
63
MojoAnnotatedClass mojoAnnotatedClass = mojoAnnotatedClasses .values ().iterator ().next ();
63
64
@@ -78,10 +79,10 @@ public void testReadMojoClass()
78
79
assertEquals ( LifecyclePhase .PACKAGE , execute .phase () );
79
80
80
81
Collection <ComponentAnnotationContent > components = mojoAnnotatedClass .getComponents ().values ();
81
- Assertions . assertThat ( components ).isNotNull ().isNotEmpty ().hasSize ( 2 );
82
+ assertThat ( components ).isNotNull ().isNotEmpty ().hasSize ( 2 );
82
83
83
84
Collection <ParameterAnnotationContent > parameters = mojoAnnotatedClass .getParameters ().values ();
84
- Assertions . assertThat ( parameters ).isNotNull ().isNotEmpty ().hasSize ( 2 ).contains (
85
+ assertThat ( parameters ).isNotNull ().isNotEmpty ().hasSize ( 2 ).contains (
85
86
new ParameterAnnotationContent ( "bar" , null , "thebar" , "coolbar" , true , false , String .class .getName () ),
86
87
new ParameterAnnotationContent ( "beer" , null , "thebeer" , "coolbeer" , false , false ,
87
88
String .class .getName () ) );
0 commit comments