DATACASS-313 - Polishing.

Remove superfluous throws declaration in tests.
This commit is contained in:
Mark Paluch
2019-01-28 16:14:29 +01:00
parent 1be26f9612
commit 0deec5eb96

View File

@@ -93,7 +93,7 @@ public class CassandraTemplateUnitTests {
}
@Test // DATACASS-292
public void selectShouldTranslateException() throws Exception {
public void selectShouldTranslateException() {
when(resultSet.iterator()).thenThrow(new NoHostAvailableException(Collections.emptyMap()));
@@ -337,7 +337,7 @@ public class CassandraTemplateUnitTests {
}
@Test // DATACASS-292
public void updateShouldTranslateException() throws Exception {
public void updateShouldTranslateException() {
reset(session);
when(session.execute(any(Statement.class))).thenThrow(new NoHostAvailableException(Collections.emptyMap()));