|
52 | 52 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
53 | 53 | <java.version>21</java.version> |
54 | 54 | <!-- Non-minecraft related dependencies --> |
55 | | - <powermock.version>2.0.9</powermock.version> |
| 55 | + <junit.version>5.10.2</junit.version> |
| 56 | + <mockito.version>5.11.0</mockito.version> |
| 57 | + <mock-bukkit.version>v1.21-SNAPSHOT</mock-bukkit.version> |
56 | 58 | <!-- More visible way how to change dependency versions --> |
57 | 59 | <bentobox.version>2.7.1-SNAPSHOT</bentobox.version> |
58 | 60 | <items-adder.version>4.0.10</items-adder.version> |
|
183 | 185 | <scope>provided</scope> |
184 | 186 | </dependency> |
185 | 187 | <!-- Mockito (Unit testing) --> |
| 188 | + <!-- Mockito (Unit testing) This goes at the top to ensure the dependencies are accurate. --> |
| 189 | + <dependency> |
| 190 | + <groupId>org.junit.jupiter</groupId> |
| 191 | + <artifactId>junit-jupiter-api</artifactId> |
| 192 | + <version>${junit.version}</version> |
| 193 | + <scope>test</scope> |
| 194 | + </dependency> |
| 195 | + <dependency> |
| 196 | + <groupId>org.junit.jupiter</groupId> |
| 197 | + <artifactId>junit-jupiter-engine</artifactId> |
| 198 | + <version>${junit.version}</version> |
| 199 | + <scope>test</scope> |
| 200 | + </dependency> |
| 201 | + <dependency> |
| 202 | + <groupId>org.mockito</groupId> |
| 203 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 204 | + <version>5.11.0</version> |
| 205 | + <scope>test</scope> |
| 206 | + </dependency> |
186 | 207 | <dependency> |
187 | 208 | <groupId>org.mockito</groupId> |
188 | 209 | <artifactId>mockito-core</artifactId> |
189 | | - <version>3.11.1</version> |
190 | | - <scope>test</scope> |
191 | | - </dependency> |
192 | | - <dependency> |
193 | | - <groupId>org.powermock</groupId> |
194 | | - <artifactId>powermock-module-junit4</artifactId> |
195 | | - <version>${powermock.version}</version> |
196 | | - <scope>test</scope> |
197 | | - </dependency> |
198 | | - <dependency> |
199 | | - <groupId>org.powermock</groupId> |
200 | | - <artifactId>powermock-api-mockito2</artifactId> |
201 | | - <version>${powermock.version}</version> |
| 210 | + <version>${mockito.version}</version> |
202 | 211 | <scope>test</scope> |
203 | 212 | </dependency> |
| 213 | + <!-- BentoBox --> |
204 | 214 | <dependency> |
205 | 215 | <groupId>world.bentobox</groupId> |
206 | 216 | <artifactId>bentobox</artifactId> |
|
290 | 300 | <plugin> |
291 | 301 | <groupId>org.apache.maven.plugins</groupId> |
292 | 302 | <artifactId>maven-surefire-plugin</artifactId> |
293 | | - <version>3.0.0-M5</version> |
| 303 | + <version>3.5.4</version> |
294 | 304 | <configuration> |
295 | 305 | <argLine> |
296 | 306 | --add-opens java.base/java.lang=ALL-UNNAMED |
|
0 commit comments