Polishing
This commit is contained in:
@@ -30,9 +30,9 @@ import static org.mockito.BDDMockito.*;
|
||||
* @author Rick Evans
|
||||
* @author Chris Beams
|
||||
*/
|
||||
public final class LocalConnectionFactoryBeanTests {
|
||||
public class LocalConnectionFactoryBeanTests {
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testManagedConnectionFactoryIsRequired() throws Exception {
|
||||
new LocalConnectionFactoryBean().afterPropertiesSet();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class TransactionAttributeEditorTests {
|
||||
assertTrue(!ta.isReadOnly());
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testInvalidPropagationCodeOnly() {
|
||||
TransactionAttributeEditor pe = new TransactionAttributeEditor();
|
||||
// should have failed with bogus propagation code
|
||||
@@ -79,7 +79,7 @@ public class TransactionAttributeEditorTests {
|
||||
assertTrue(ta.getIsolationLevel() == TransactionDefinition.ISOLATION_READ_UNCOMMITTED);
|
||||
}
|
||||
|
||||
@Test(expected=IllegalArgumentException.class)
|
||||
@Test(expected = IllegalArgumentException.class)
|
||||
public void testValidPropagationAndIsolationCodesAndInvalidRollbackRule() {
|
||||
TransactionAttributeEditor pe = new TransactionAttributeEditor();
|
||||
// should fail with bogus rollback rule
|
||||
|
||||
@@ -35,7 +35,7 @@ import static org.junit.Assert.*;
|
||||
* @since 15.10.2003
|
||||
* @see org.springframework.transaction.interceptor.TransactionProxyFactoryBean
|
||||
*/
|
||||
public final class TransactionAttributeSourceTests {
|
||||
public class TransactionAttributeSourceTests {
|
||||
|
||||
@Test
|
||||
public void matchAlwaysTransactionAttributeSource() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user