DATACASS-546 - Polishing.

Remove unnecessary throws declarations. Reformat code.
This commit is contained in:
Mark Paluch
2018-04-16 16:44:24 +02:00
parent 2e365cd5f2
commit 3732ed7caf
4 changed files with 7 additions and 6 deletions

View File

@@ -50,6 +50,7 @@ import org.springframework.util.Assert;
public class CassandraPersistentEntitySchemaCreator {
private final CassandraAdminOperations cassandraAdminOperations;
private final CassandraMappingContext mappingContext;
/**

View File

@@ -49,6 +49,7 @@ import com.datastax.driver.core.UserType.Field;
public class CassandraPersistentEntitySchemaDropper {
private final CassandraAdminOperations cassandraAdminOperations;
private final CassandraMappingContext mappingContext;
/**

View File

@@ -44,7 +44,7 @@ public class CassandraPersistentEntitySchemaCreatorUnitTests extends CassandraPe
BasicCassandraMappingContext context = new BasicCassandraMappingContext();
@Before
public void setUp() throws Exception {
public void setUp() {
context.setUserTypeResolver(new UserTypeResolver() {
@Override

View File

@@ -60,7 +60,7 @@ public class CassandraPersistentEntitySchemaDropperUnitTests extends CassandraPe
// DATACASS-355
@Before
public void setUp() throws Exception {
public void setUp() {
context.setUserTypeResolver(new UserTypeResolver() {
@Override
@@ -75,7 +75,7 @@ public class CassandraPersistentEntitySchemaDropperUnitTests extends CassandraPe
}
@Test // DATACASS-355, DATACASS-546
public void shouldDropTypesInOrderOfDependencies() throws Exception {
public void shouldDropTypesInOrderOfDependencies() {
when(metadata.getUserTypes()).thenReturn(Arrays.asList(universetype, moontype, planettype));
@@ -107,7 +107,7 @@ public class CassandraPersistentEntitySchemaDropperUnitTests extends CassandraPe
}
@Test // DATACASS-355
public void shouldDropTables() throws Exception {
public void shouldDropTables() {
context.setInitialEntitySet(Collections.singleton(Person.class));
context.afterPropertiesSet();
@@ -126,7 +126,7 @@ public class CassandraPersistentEntitySchemaDropperUnitTests extends CassandraPe
}
@Test
public void dropTablesShouldRetainUnusedTables() throws Exception {
public void dropTablesShouldRetainUnusedTables() {
context.setInitialEntitySet(Collections.singleton(Person.class));
context.afterPropertiesSet();
@@ -153,5 +153,4 @@ public class CassandraPersistentEntitySchemaDropperUnitTests extends CassandraPe
inOrder.verifyNoMoreInteractions();
}
}