Remove unnecessary throws declaration in tests
See gh-26441
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,7 @@ class FileUtilsTests {
|
||||
private File originDirectory;
|
||||
|
||||
@BeforeEach
|
||||
void init() throws IOException {
|
||||
void init() {
|
||||
this.outputDirectory = new File(this.tempDir, "remove");
|
||||
this.originDirectory = new File(this.tempDir, "keep");
|
||||
this.outputDirectory.mkdirs();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,7 +52,7 @@ class LayersIndexTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void writeToWhenSimpleNamesSortsAlphabetically() throws Exception {
|
||||
void writeToWhenSimpleNamesSortsAlphabetically() {
|
||||
LayersIndex index = new LayersIndex(LAYER_A);
|
||||
index.add(LAYER_A, "cat");
|
||||
index.add(LAYER_A, "dog");
|
||||
|
||||
Reference in New Issue
Block a user