@@ -49,11 +49,13 @@ private MavenProject getMavenProject() {
49
49
@ Test
50
50
void testSingleInvokerTest () throws Exception {
51
51
// given
52
+ MavenProject mavenProject = getMavenProject ();
52
53
InvokerMojo invokerMojo = new InvokerMojo ();
53
54
String dirPath = getBasedir () + "/src/test/resources/unit" ;
54
55
setVariableValueToObject (invokerMojo , "projectsDirectory" , new File (dirPath ));
55
56
setVariableValueToObject (invokerMojo , "invokerPropertiesFile" , "invoker.properties" );
56
- setVariableValueToObject (invokerMojo , "project" , getMavenProject ());
57
+ setVariableValueToObject (invokerMojo , "project" , mavenProject );
58
+ setVariableValueToObject (invokerMojo , "interpolatorUtils" , new InterpolatorUtils (mavenProject ));
57
59
setVariableValueToObject (invokerMojo , "invokerTest" , "*dummy*" );
58
60
setVariableValueToObject (invokerMojo , "settings" , new Settings ());
59
61
@@ -67,11 +69,13 @@ void testSingleInvokerTest() throws Exception {
67
69
@ Test
68
70
void testMultiInvokerTest () throws Exception {
69
71
// given
72
+ MavenProject mavenProject = getMavenProject ();
70
73
InvokerMojo invokerMojo = new InvokerMojo ();
71
74
String dirPath = getBasedir () + "/src/test/resources/unit" ;
72
75
setVariableValueToObject (invokerMojo , "projectsDirectory" , new File (dirPath ));
73
76
setVariableValueToObject (invokerMojo , "invokerPropertiesFile" , "invoker.properties" );
74
- setVariableValueToObject (invokerMojo , "project" , getMavenProject ());
77
+ setVariableValueToObject (invokerMojo , "project" , mavenProject );
78
+ setVariableValueToObject (invokerMojo , "interpolatorUtils" , new InterpolatorUtils (mavenProject ));
75
79
setVariableValueToObject (invokerMojo , "invokerTest" , "*dummy*,*terpolatio*" );
76
80
setVariableValueToObject (invokerMojo , "settings" , new Settings ());
77
81
@@ -85,11 +89,13 @@ void testMultiInvokerTest() throws Exception {
85
89
@ Test
86
90
void testFullPatternInvokerTest () throws Exception {
87
91
// given
92
+ MavenProject mavenProject = getMavenProject ();
88
93
InvokerMojo invokerMojo = new InvokerMojo ();
89
94
String dirPath = getBasedir () + "/src/test/resources/unit" ;
90
95
setVariableValueToObject (invokerMojo , "projectsDirectory" , new File (dirPath ));
91
96
setVariableValueToObject (invokerMojo , "invokerPropertiesFile" , "invoker.properties" );
92
- setVariableValueToObject (invokerMojo , "project" , getMavenProject ());
97
+ setVariableValueToObject (invokerMojo , "project" , mavenProject );
98
+ setVariableValueToObject (invokerMojo , "interpolatorUtils" , new InterpolatorUtils (mavenProject ));
93
99
setVariableValueToObject (invokerMojo , "invokerTest" , "*" );
94
100
setVariableValueToObject (invokerMojo , "settings" , new Settings ());
95
101
@@ -106,11 +112,13 @@ void testFullPatternInvokerTest() throws Exception {
106
112
@ Test
107
113
void testSetupInProjectList () throws Exception {
108
114
// given
115
+ MavenProject mavenProject = getMavenProject ();
109
116
InvokerMojo invokerMojo = new InvokerMojo ();
110
117
String dirPath = getBasedir () + "/src/test/resources/unit" ;
111
118
setVariableValueToObject (invokerMojo , "projectsDirectory" , new File (dirPath ));
112
119
setVariableValueToObject (invokerMojo , "invokerPropertiesFile" , "invoker.properties" );
113
- setVariableValueToObject (invokerMojo , "project" , getMavenProject ());
120
+ setVariableValueToObject (invokerMojo , "project" , mavenProject );
121
+ setVariableValueToObject (invokerMojo , "interpolatorUtils" , new InterpolatorUtils (mavenProject ));
114
122
setVariableValueToObject (invokerMojo , "settings" , new Settings ());
115
123
setVariableValueToObject (invokerMojo , "setupIncludes" , Collections .singletonList ("dum*/pom.xml" ));
116
124
@@ -134,11 +142,13 @@ void testSetupInProjectList() throws Exception {
134
142
@ Test
135
143
void testSetupProjectIsFiltered () throws Exception {
136
144
// given
145
+ MavenProject mavenProject = getMavenProject ();
137
146
InvokerMojo invokerMojo = new InvokerMojo ();
138
147
String dirPath = getBasedir () + "/src/test/resources/unit" ;
139
148
setVariableValueToObject (invokerMojo , "projectsDirectory" , new File (dirPath ));
140
149
setVariableValueToObject (invokerMojo , "invokerPropertiesFile" , "invoker.properties" );
141
- setVariableValueToObject (invokerMojo , "project" , getMavenProject ());
150
+ setVariableValueToObject (invokerMojo , "project" , mavenProject );
151
+ setVariableValueToObject (invokerMojo , "interpolatorUtils" , new InterpolatorUtils (mavenProject ));
142
152
setVariableValueToObject (invokerMojo , "settings" , new Settings ());
143
153
setVariableValueToObject (invokerMojo , "setupIncludes" , Collections .singletonList ("dum*/pom.xml" ));
144
154
setVariableValueToObject (invokerMojo , "invokerTest" , "*project-dir*" );
0 commit comments