ignite-5267 : Test for unique name per group.
@@ -227,6 +227,29 @@ public class IgniteDataStructureUniqueNameTest extends IgniteCollectionAbstractT
assertSame(ref, ignite.atomicReference(name, 0, true));
}
+ /**
+ * @throws Exception If failed.
+ */
+ public void testUniqueNamePerGroup() throws Exception {
+ Ignite ignite = ignite(0);
+
+ IgniteAtomicLong atomicLong = ignite.atomicLong(
+ "testName", new AtomicConfiguration().setGroupName("group1"), 0, true);
+ IgniteAtomicSequence atomicSeq = ignite.atomicSequence(
+ "testName", new AtomicConfiguration().setGroupName("group2"), 0, true);
+
+ assert atomicLong != null;
+ assert atomicSeq != null;
+
+ atomicLong = ignite.atomicLong(
+ "testName", new AtomicConfiguration().setGroupName("group1"), 0, false);
+ atomicSeq = ignite.atomicSequence(
+ "testName", new AtomicConfiguration().setGroupName("group2"), 0, false);
+
+ assert atomicLong != null;
+ assert atomicSeq != null;
+ }
+
/**
* @param singleGrid If {@code true} uses single grid.
* @throws Exception If failed.
