Commit 835de95a8e6d0e4ba639b028f9f694d3aaebafe9
1 parent
7a141f38
Exists in
master
Ajuste das exceções esperadas nos testes da extensão JTA.
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
impl/extension/jta/src/test/java/br/gov/frameworkdemoiselle/transaction/JTATransactionTest.java
| ... | ... | @@ -61,6 +61,7 @@ import org.junit.runner.RunWith; |
| 61 | 61 | import org.powermock.core.classloader.annotations.PrepareForTest; |
| 62 | 62 | import org.powermock.modules.junit4.PowerMockRunner; |
| 63 | 63 | |
| 64 | +import br.gov.frameworkdemoiselle.DemoiselleException; | |
| 64 | 65 | import br.gov.frameworkdemoiselle.util.Beans; |
| 65 | 66 | |
| 66 | 67 | @RunWith(PowerMockRunner.class) |
| ... | ... | @@ -157,7 +158,7 @@ public class JTATransactionTest { |
| 157 | 158 | try { |
| 158 | 159 | this.jtaTransaction.isActive(); |
| 159 | 160 | Assert.fail(); |
| 160 | - } catch (TransactionException cause) { | |
| 161 | + } catch (DemoiselleException cause) { | |
| 161 | 162 | Assert.assertTrue(true); |
| 162 | 163 | } |
| 163 | 164 | } |
| ... | ... | @@ -169,7 +170,7 @@ public class JTATransactionTest { |
| 169 | 170 | try { |
| 170 | 171 | this.jtaTransaction.isMarkedRollback(); |
| 171 | 172 | Assert.fail(); |
| 172 | - } catch (TransactionException cause) { | |
| 173 | + } catch (DemoiselleException cause) { | |
| 173 | 174 | Assert.assertTrue(true); |
| 174 | 175 | } |
| 175 | 176 | } |
| ... | ... | @@ -182,7 +183,7 @@ public class JTATransactionTest { |
| 182 | 183 | try { |
| 183 | 184 | this.jtaTransaction.begin(); |
| 184 | 185 | Assert.fail(); |
| 185 | - } catch (TransactionException cause) { | |
| 186 | + } catch (DemoiselleException cause) { | |
| 186 | 187 | Assert.assertTrue(true); |
| 187 | 188 | } |
| 188 | 189 | } |
| ... | ... | @@ -196,7 +197,7 @@ public class JTATransactionTest { |
| 196 | 197 | try { |
| 197 | 198 | this.jtaTransaction.commit(); |
| 198 | 199 | Assert.fail(); |
| 199 | - } catch (TransactionException cause) { | |
| 200 | + } catch (DemoiselleException cause) { | |
| 200 | 201 | Assert.assertTrue(true); |
| 201 | 202 | } |
| 202 | 203 | } |
| ... | ... | @@ -209,7 +210,7 @@ public class JTATransactionTest { |
| 209 | 210 | try { |
| 210 | 211 | this.jtaTransaction.rollback(); |
| 211 | 212 | Assert.fail(); |
| 212 | - } catch (TransactionException cause) { | |
| 213 | + } catch (DemoiselleException cause) { | |
| 213 | 214 | Assert.assertTrue(true); |
| 214 | 215 | } |
| 215 | 216 | } |
| ... | ... | @@ -222,7 +223,7 @@ public class JTATransactionTest { |
| 222 | 223 | try { |
| 223 | 224 | this.jtaTransaction.setRollbackOnly(); |
| 224 | 225 | Assert.fail(); |
| 225 | - } catch (TransactionException cause) { | |
| 226 | + } catch (DemoiselleException cause) { | |
| 226 | 227 | Assert.assertTrue(true); |
| 227 | 228 | } |
| 228 | 229 | } | ... | ... |