diff --git a/metadata/com.hazelcast/hazelcast/5.2.1/index.json b/metadata/com.hazelcast/hazelcast/5.2.0/index.json similarity index 100% rename from metadata/com.hazelcast/hazelcast/5.2.1/index.json rename to metadata/com.hazelcast/hazelcast/5.2.0/index.json diff --git a/metadata/com.hazelcast/hazelcast/5.2.1/jni-config.json b/metadata/com.hazelcast/hazelcast/5.2.0/jni-config.json similarity index 100% rename from metadata/com.hazelcast/hazelcast/5.2.1/jni-config.json rename to metadata/com.hazelcast/hazelcast/5.2.0/jni-config.json diff --git a/metadata/com.hazelcast/hazelcast/5.2.1/reflect-config.json b/metadata/com.hazelcast/hazelcast/5.2.0/reflect-config.json similarity index 100% rename from metadata/com.hazelcast/hazelcast/5.2.1/reflect-config.json rename to metadata/com.hazelcast/hazelcast/5.2.0/reflect-config.json diff --git a/metadata/com.hazelcast/hazelcast/5.2.1/resource-config.json b/metadata/com.hazelcast/hazelcast/5.2.0/resource-config.json similarity index 100% rename from metadata/com.hazelcast/hazelcast/5.2.1/resource-config.json rename to metadata/com.hazelcast/hazelcast/5.2.0/resource-config.json diff --git a/metadata/com.hazelcast/hazelcast/index.json b/metadata/com.hazelcast/hazelcast/index.json index c178fbbfe..bc25992be 100644 --- a/metadata/com.hazelcast/hazelcast/index.json +++ b/metadata/com.hazelcast/hazelcast/index.json @@ -1,10 +1,10 @@ [ { "latest": true, - "metadata-version": "5.2.1", + "metadata-version": "5.2.0", "module": "com.hazelcast:hazelcast", "tested-versions": [ - "5.2.1" + "5.2.0" ] } ] diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/.gitignore b/tests/src/com.hazelcast/hazelcast/5.2.0/.gitignore similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/.gitignore rename to tests/src/com.hazelcast/hazelcast/5.2.0/.gitignore diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/build.gradle b/tests/src/com.hazelcast/hazelcast/5.2.0/build.gradle similarity index 94% rename from tests/src/com.hazelcast/hazelcast/5.2.1/build.gradle rename to tests/src/com.hazelcast/hazelcast/5.2.0/build.gradle index dd8782832..458e93429 100644 --- a/tests/src/com.hazelcast/hazelcast/5.2.1/build.gradle +++ b/tests/src/com.hazelcast/hazelcast/5.2.0/build.gradle @@ -17,10 +17,6 @@ dependencies { testImplementation 'javax.cache:cache-api:1.1.1' } -test { - jvmArgs = Arrays.asList("-Xmx4g") -} - graalvmNative { agent { defaultMode = "conditional" diff --git a/tests/src/com.hazelcast/hazelcast/5.2.0/gradle.properties b/tests/src/com.hazelcast/hazelcast/5.2.0/gradle.properties new file mode 100644 index 000000000..0569ba946 --- /dev/null +++ b/tests/src/com.hazelcast/hazelcast/5.2.0/gradle.properties @@ -0,0 +1,2 @@ +library.version = 5.2.0 +metadata.dir = com.hazelcast/hazelcast/5.2.0/ diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/settings.gradle b/tests/src/com.hazelcast/hazelcast/5.2.0/settings.gradle similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/settings.gradle rename to tests/src/com.hazelcast/hazelcast/5.2.0/settings.gradle diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java similarity index 91% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java index 97c75b7af..caa615845 100644 --- a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java +++ b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/HazelcastTest.java @@ -35,9 +35,11 @@ import javax.cache.Cache; import javax.cache.CacheManager; import javax.cache.Caching; +import javax.cache.configuration.CompleteConfiguration; import javax.cache.configuration.MutableConfiguration; import javax.cache.expiry.AccessedExpiryPolicy; import javax.cache.expiry.Duration; +import javax.cache.spi.CachingProvider; import java.util.Collection; import java.util.List; import java.util.Set; @@ -256,4 +258,21 @@ void testTopic() { IntStream.range(0, 3).mapToObj(i -> "Hello to distributed world").forEach(topic::publish); client.shutdown(); } + + @Test + void testJCacheOrigin() { + CachingProvider cachingProvider = Caching.getCachingProvider(HazelcastCachingProvider.class.getName()); + CacheManager cacheManager = cachingProvider.getCacheManager(); + CompleteConfiguration config = new MutableConfiguration() + .setTypes(String.class, String.class) + .setStatisticsEnabled(true) + .setReadThrough(false) + .setManagementEnabled(true) + .setStoreByValue(false) + .setWriteThrough(false); + Cache cache = cacheManager.createCache("example", config); + cache.put("world", "Hello World"); + assertThat(cache.get("world")).isEqualTo("Hello World"); + assertThat(cacheManager.getCache("example", String.class, String.class)).isNotNull(); + } } diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializable.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializable.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializable.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializable.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializer.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializer.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializer.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/customSerializer/CustomSerializer.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/globalSerializer/GlobalSerializer.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/globalSerializer/GlobalSerializer.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/globalSerializer/GlobalSerializer.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/globalSerializer/GlobalSerializer.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/Employee.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/Employee.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/Employee.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/Employee.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/SampleDataSerializableFactory.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/SampleDataSerializableFactory.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/SampleDataSerializableFactory.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/identifiedDataSerializable/SampleDataSerializableFactory.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/portableSerializable/Customer.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/portableSerializable/Customer.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/portableSerializable/Customer.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/portableSerializable/Customer.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/portableSerializable/SamplePortableFactory.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/portableSerializable/SamplePortableFactory.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/portableSerializable/SamplePortableFactory.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/portableSerializable/SamplePortableFactory.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/query/ThePortableFactory.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/query/ThePortableFactory.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/query/ThePortableFactory.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/query/ThePortableFactory.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/query/User.java b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/query/User.java similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/query/User.java rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/java/com_hazelcast/hazelcast/query/User.java diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/resource-config.json b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/resource-config.json similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/resource-config.json rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/resource-config.json diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/serialization-config.json b/tests/src/com.hazelcast/hazelcast/5.2.0/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/serialization-config.json similarity index 100% rename from tests/src/com.hazelcast/hazelcast/5.2.1/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/serialization-config.json rename to tests/src/com.hazelcast/hazelcast/5.2.0/src/test/resources/META-INF/native-image/javax.cache/cache-api/1.1.1/serialization-config.json diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/gradle.properties b/tests/src/com.hazelcast/hazelcast/5.2.1/gradle.properties deleted file mode 100644 index 5d914fe02..000000000 --- a/tests/src/com.hazelcast/hazelcast/5.2.1/gradle.properties +++ /dev/null @@ -1,2 +0,0 @@ -library.version = 5.2.1 -metadata.dir = com.hazelcast/hazelcast/5.2.1/ diff --git a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/JCacheTest.java b/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/JCacheTest.java deleted file mode 100644 index e950946a6..000000000 --- a/tests/src/com.hazelcast/hazelcast/5.2.1/src/test/java/com_hazelcast/hazelcast/JCacheTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright and related rights waived via CC0 - * - * You should have received a copy of the CC0 legalcode along with this - * work. If not, see . - */ -package com_hazelcast.hazelcast; - -import com.hazelcast.cache.HazelcastCachingProvider; -import com.hazelcast.config.Config; -import com.hazelcast.core.Hazelcast; -import com.hazelcast.core.HazelcastInstance; -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; - -import javax.cache.Cache; -import javax.cache.CacheManager; -import javax.cache.Caching; -import javax.cache.configuration.CompleteConfiguration; -import javax.cache.configuration.MutableConfiguration; -import javax.cache.spi.CachingProvider; - -import static org.assertj.core.api.Assertions.assertThat; - -public class JCacheTest { - static HazelcastInstance hazelcastInstance; - - @BeforeAll - static void beforeAll() { - hazelcastInstance = Hazelcast.newHazelcastInstance(); - } - - @AfterAll - static void afterAll() { - hazelcastInstance.shutdown(); - } - - @Test - void testJCacheOrigin() { - HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(new Config()); - CachingProvider cachingProvider = Caching.getCachingProvider(HazelcastCachingProvider.class.getName()); - CacheManager cacheManager = cachingProvider.getCacheManager(); - CompleteConfiguration config = new MutableConfiguration() - .setTypes(String.class, String.class) - .setStatisticsEnabled(true) - .setReadThrough(false) - .setManagementEnabled(true) - .setStoreByValue(false) - .setWriteThrough(false); - Cache cache = cacheManager.createCache("example", config); - cache.put("world", "Hello World"); - assertThat(cache.get("world")).isEqualTo("Hello World"); - assertThat(cacheManager.getCache("example", String.class, String.class)).isNotNull(); - hazelcastInstance.shutdown(); - } -} diff --git a/tests/src/index.json b/tests/src/index.json index ee814afd0..62407ab99 100644 --- a/tests/src/index.json +++ b/tests/src/index.json @@ -209,12 +209,12 @@ ] }, { - "test-project-path": "com.hazelcast/hazelcast/5.2.1", + "test-project-path": "com.hazelcast/hazelcast/5.2.0", "libraries": [ { "name": "com.hazelcast:hazelcast", "versions": [ - "5.2.1" + "5.2.0" ] } ]