Remove unnecessary throws declaration in tests
See gh-26441
This commit is contained in:
@@ -75,7 +75,7 @@ class ExtractCommandTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void runExtractsLayers() throws Exception {
|
||||
void runExtractsLayers() {
|
||||
given(this.context.getArchiveFile()).willReturn(this.jarFile);
|
||||
given(this.context.getWorkingDir()).willReturn(this.extract);
|
||||
this.command.run(Collections.emptyMap(), Collections.emptyList());
|
||||
|
||||
@@ -51,7 +51,7 @@ class IndexedLayersTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void createWhenIndexFileIsMalformedThrowsException() throws Exception {
|
||||
void createWhenIndexFileIsMalformedThrowsException() {
|
||||
assertThatIllegalStateException().isThrownBy(() -> new IndexedLayers("test"))
|
||||
.withMessage("Layer index file is malformed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user