Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public void testDeployIfClassifierIsSet(DeployFileMojo mojo) throws Exception {
assertEquals("bin", classifier);
String version = (String) getVariableValueFromObject(mojo, "version");
String url = (String) getVariableValueFromObject(mojo, "url");

execute(mojo, request -> {
assertNotNull(request);
List<Artifact> artifacts = new ArrayList<>(request.getArtifacts());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ public void testLegacyAltDeploymentRepositoryWithLegacyLayout(DeployMojo mojo) t
MojoException.class,
() -> mojo.getDeploymentRepository(true),
"Should throw: Invalid legacy syntax and layout for repository.");
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
assertEquals(
e.getLongMessage(),
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.");
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::http://localhost\" instead, and only default layout is supported.",
e.getLongMessage());
}

@Test
Expand All @@ -215,10 +215,10 @@ public void testInsaneAltDeploymentRepository(DeployMojo mojo) throws IllegalAcc
MojoException.class,
() -> mojo.getDeploymentRepository(true),
"Should throw: Invalid legacy syntax and layout for repository.");
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
assertEquals(
e.getLongMessage(),
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.");
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::wow::foo::http://localhost\" instead, and only default layout is supported.",
e.getLongMessage());
}

@Test
Expand All @@ -242,10 +242,10 @@ public void testLegacyScmSvnAltDeploymentRepository(DeployMojo mojo) throws Ille
MojoException.class,
() -> mojo.getDeploymentRepository(true),
"Should throw: Invalid legacy syntax and layout for repository.");
assertEquals(e.getMessage(), "Invalid legacy syntax and layout for repository.");
assertEquals("Invalid legacy syntax and layout for repository.", e.getMessage());
assertEquals(
e.getLongMessage(),
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.");
"Invalid legacy syntax and layout for alternative repository. Use \"altDeploymentRepository::scm:svn:http://localhost\" instead, and only default layout is supported.",
e.getLongMessage());
}

@Test
Expand Down