Skip to content

Commit

Permalink
Remove unneeded invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Evans committed Jun 22, 2016
1 parent c9dd63d commit e46f526
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,9 @@ public void checkEbextensionsValidityThrowsExceptionNoDir()
Mockito.doCallRealMethod().when(mojo).execute();
Mockito.doCallRealMethod().when(mojo)
.setWar(Mockito.any(File.class));
Mockito.doCallRealMethod().when(mojo)
.setName(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.setBucket(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.setKey(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.validate(Mockito.any(ZipFile.class));
mojo.setWar(mockFile);
mojo.setName("a");
mojo.setBucket("b");
mojo.setKey("c");
Mockito.when(mockZipFile.getEntry(".ebextensions")).thenReturn(null);
try {
mojo.execute();
Expand Down Expand Up @@ -212,12 +203,6 @@ public void checkEbextensionsValidityThrowsExceptionNoConfigFiles()
Mockito.doCallRealMethod().when(mojo).createZipFile();
Mockito.doCallRealMethod().when(mojo)
.setWar(Mockito.any(File.class));
Mockito.doCallRealMethod().when(mojo)
.setName(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.setBucket(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.setKey(Mockito.any(String.class));
Mockito.doCallRealMethod().when(mojo)
.validate(Mockito.any(ZipFile.class));
final File temp = File.createTempFile("test", ".zip");
Expand All @@ -229,9 +214,6 @@ public void checkEbextensionsValidityThrowsExceptionNoConfigFiles()
fos.flush();
fos.close();
mojo.setWar(temp);
mojo.setName("d");
mojo.setBucket("e");
mojo.setKey("f");
try {
mojo.execute();
} catch (final MojoFailureException exception) {
Expand Down

0 comments on commit e46f526

Please sign in to comment.