You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/java/org/apache/maven/plugins/deploy/DeployMojoTest.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -199,10 +199,10 @@ public void testLegacyAltDeploymentRepositoryWithLegacyLayout(DeployMojo mojo) t
199
199
MojoException.class,
200
200
() -> mojo.getDeploymentRepository(true),
201
201
"Should throw: Invalid legacy syntax and layout for repository.");
202
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
202
+
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
203
203
assertEquals(
204
-
e.getLongMessage(),
205
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.");
204
+
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.",
205
+
e.getLongMessage());
206
206
}
207
207
208
208
@Test
@@ -215,10 +215,10 @@ public void testInsaneAltDeploymentRepository(DeployMojo mojo) throws IllegalAcc
215
215
MojoException.class,
216
216
() -> mojo.getDeploymentRepository(true),
217
217
"Should throw: Invalid legacy syntax and layout for repository.");
218
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
218
+
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
219
219
assertEquals(
220
-
e.getLongMessage(),
221
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.");
220
+
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.",
221
+
e.getLongMessage());
222
222
}
223
223
224
224
@Test
@@ -242,10 +242,10 @@ public void testLegacyScmSvnAltDeploymentRepository(DeployMojo mojo) throws Ille
242
242
MojoException.class,
243
243
() -> mojo.getDeploymentRepository(true),
244
244
"Should throw: Invalid legacy syntax and layout for repository.");
245
-
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
245
+
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
246
246
assertEquals(
247
-
e.getLongMessage(),
248
-
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.");
247
+
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.",
0 commit comments