Minor code style changes
@@ -13,11 +13,10 @@ import org.apache.ignite.testframework.junits.common.GridCommonTest;
*/
@GridCommonTest(group = "Kernal Self")
public class GridCacheRecreateLockTest extends GridCommonAbstractTest {
-
/**
* @throws IgniteCheckedException If failed.
*/
- public void test() throws Exception {
+ public void testLockOwnerLeavesGrid() throws Exception {
final Ignite ignite = startNodeAndLock("node1");
new Thread(new Runnable() {
@@ -36,8 +35,11 @@ public class GridCacheRecreateLockTest extends GridCommonAbstractTest {
startNodeAndLock("node2");
}
- private Ignite startNodeAndLock(String name) {
- try {
+ /**
+ * @param name Grid name.
+ * @return Started Ignite instance.
+ */
+ private Ignite startNodeAndLock(String name) throws Exception {
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setGridName(name);
@@ -53,10 +55,4 @@ public class GridCacheRecreateLockTest extends GridCommonAbstractTest {
return ignite;
}
- catch (Exception e) {
- assertTrue(false);
- }
-
- return null;
- }
}
\ No newline at end of file
