ignite-2412
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/84c02584 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/84c02584 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/84c02584 Branch: refs/heads/ignite-4371 Commit: 84c02584e255e79ab3146172a18187773faf0208 Parents: 5dbd44f Author: sboikov <[email protected]> Authored: Fri Dec 16 12:54:35 2016 +0300 Committer: sboikov <[email protected]> Committed: Fri Dec 16 12:54:35 2016 +0300 ---------------------------------------------------------------------- .../cache/IgniteTxStoreExceptionAbstractSelfTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/84c02584/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxStoreExceptionAbstractSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxStoreExceptionAbstractSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxStoreExceptionAbstractSelfTest.java index b65b441..7cb3552 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxStoreExceptionAbstractSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteTxStoreExceptionAbstractSelfTest.java @@ -357,6 +357,7 @@ public abstract class IgniteTxStoreExceptionAbstractSelfTest extends GridCacheAb /** * @param key Key. + * @param putBefore If {@code true} expects non-null values. * @throws Exception If failed. */ private void checkValue(final Integer key, boolean putBefore) throws Exception { @@ -455,7 +456,7 @@ public abstract class IgniteTxStoreExceptionAbstractSelfTest extends GridCacheAb info("Going to transform: " + key); - Throwable e = GridTestUtils.assertThrows(log, new Callable<Void>() { + GridTestUtils.assertThrows(log, new Callable<Void>() { @Override public Void call() throws Exception { grid(0).<Integer, Integer>cache(null).invoke(key, new EntryProcessor<Integer, Integer, Void>() { @Override public Void process(MutableEntry<Integer, Integer> e, Object... args) { @@ -469,8 +470,6 @@ public abstract class IgniteTxStoreExceptionAbstractSelfTest extends GridCacheAb } }, CacheWriterException.class, null); - assertTrue("Unexpected cause: " + e, e.getCause() instanceof TransactionRollbackException); - checkValue(key, putBefore); }
