Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 9e7df06

Browse files
committed
fix assertion code
1 parent 0df8082 commit 9e7df06

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/java/com/davidkarlsen/commonstransaction/spring/CommonsTransactionPlatformTransactionManagerIntegrationTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
import java.io.File;
44
import java.io.IOException;
55

6-
import junit.framework.Assert;
7-
86
import org.apache.commons.io.FileUtils;
97
import org.apache.commons.lang3.SystemUtils;
108
import org.apache.commons.transaction.file.ResourceManagerException;
9+
import org.junit.Assert;
1110
import org.junit.Before;
1211
import org.junit.Test;
1312
import org.junit.runner.RunWith;

src/test/java/com/davidkarlsen/commonstransaction/spring/CommonsTransactionPlatformTransactionManagerTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
import org.apache.commons.transaction.file.ResourceManagerException;
99
import org.apache.commons.transaction.file.ResourceManagerSystemException;
1010
import org.junit.After;
11+
import org.junit.Assert;
1112
import org.junit.Before;
1213
import org.junit.Test;
1314
import org.springframework.transaction.TransactionStatus;
1415
import org.springframework.transaction.support.DefaultTransactionDefinition;
1516
import org.springframework.transaction.support.DefaultTransactionStatus;
16-
import org.springframework.util.Assert;
17+
1718

1819
/**
1920
*
@@ -69,7 +70,7 @@ public void testCommit()
6970
fileResourceManager.createResource( ( (DefaultTransactionStatus) transactionStatus ).getTransaction(), fileName );
7071
commonsTransactionPlatformTransactionManager.commit( transactionStatus );
7172

72-
Assert.isTrue( new File( storeDir, fileName ).exists() );
73+
Assert.assertTrue( new File( storeDir, fileName ).exists() );
7374
}
7475

7576
@Test
@@ -82,7 +83,7 @@ public void testRollback()
8283
fileResourceManager.createResource( ( (DefaultTransactionStatus) transactionStatus ).getTransaction(), fileName );
8384
commonsTransactionPlatformTransactionManager.rollback( transactionStatus );
8485

85-
Assert.isTrue( ! new File( storeDir, fileName ).exists() );
86+
Assert.assertTrue( ! new File( storeDir, fileName ).exists() );
8687
}
8788

8889

0 commit comments

Comments
 (0)