Skip to content

Commit

Permalink
Created a test to ensure plugin is case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
velo committed Mar 5, 2017
1 parent 8225fd8 commit 48927a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ public void classNotFound() throws Exception {
maven.executeMojo(session, project, "manifest-validator");
}

@Test
public void caseSensitive() throws Exception {
thrown.expect(MojoFailureException.class);
thrown.expectMessage(containsString("Java class 'test.Main' not found"));

project.addAttachedArtifact(manifestedJar(new File(basedir, "case.zip")));
maven.executeMojo(session, project, "manifest-validator");
}

@Test
public void success() throws Exception {
project.addAttachedArtifact(manifestedJar(new File(basedir, "ok.zip")));
Expand Down
Binary file added src/test/projects/passing/case.zip
Binary file not shown.

0 comments on commit 48927a5

Please sign in to comment.