DATACASS-546 - Polishing.
Remove unnecessary throws declarations. Reformat code.
This commit is contained in:
@@ -50,6 +50,7 @@ import org.springframework.util.Assert;
|
||||
public class CassandraPersistentEntitySchemaCreator {
|
||||
|
||||
private final CassandraAdminOperations cassandraAdminOperations;
|
||||
|
||||
private final CassandraMappingContext mappingContext;
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,6 +49,7 @@ import com.datastax.driver.core.UserType.Field;
|
||||
public class CassandraPersistentEntitySchemaDropper {
|
||||
|
||||
private final CassandraAdminOperations cassandraAdminOperations;
|
||||
|
||||
private final CassandraMappingContext mappingContext;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user