mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 09:13:27 +00:00
Remove redundant Exception from throws list in DragonSlayerTest
This commit is contained in:
1 parent
db33cc533b
commit
a6e6c22bf6
1 file changed
+1
-1
@@ -52,7 +52,7 @@ public class DragonSlayerTest {
|
||||
* Verify if the dragon slayer uses the new strategy during battle after a change of strategy
|
||||
*/
|
||||
@Test
|
||||
public void testChangeStrategy() throws Exception {
|
||||
public void testChangeStrategy() {
|
||||
final DragonSlayingStrategy initialStrategy = mock(DragonSlayingStrategy.class);
|
||||
final DragonSlayer dragonSlayer = new DragonSlayer(initialStrategy);
|
||||
|
||||
|
||||
Reference in new issue
Block a user