You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/02/28 17:51:11 UTC
[ignite] branch ignite-11189-java11 updated: Modules test
playground added
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch ignite-11189-java11
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/ignite-11189-java11 by this push:
new 0e04e8b Modules test playground added
0e04e8b is described below
commit 0e04e8b946745e18afd7a563d2c1dfd6f73e48cd
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Thu Feb 28 20:50:59 2019 +0300
Modules test playground added
---
modules/dev-utils/ignite-modules-test/build.gradle | 54 ++++++++++++++++++++++
.../src/main/java/module-info.java | 19 ++++++++
.../ignite/modulestest/ModulesLaunchTest.java | 37 +++++++++++++++
3 files changed, 110 insertions(+)
diff --git a/modules/dev-utils/ignite-modules-test/build.gradle b/modules/dev-utils/ignite-modules-test/build.gradle
new file mode 100644
index 0000000..cef8eca
--- /dev/null
+++ b/modules/dev-utils/ignite-modules-test/build.gradle
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+plugins {
+ id 'java'
+}
+
+group 'org.apache.ignite'
+version '1.0'
+
+sourceCompatibility = 11
+targetCompatibility = 11
+
+ext {
+ //ignVer = '2.8.0-SNAPSHOT'
+ ignVer = '2.7.0'
+}
+
+ext.moduleName = 'org.apache.ignite.ignite_modules_test'
+
+compileJava {
+ inputs.property("moduleName", moduleName)
+ doFirst {
+ options.compilerArgs = [
+ '--module-path', classpath.asPath,
+ ]
+ classpath = files()
+ }
+}
+
+repositories {
+ mavenLocal()
+ mavenCentral()
+}
+
+dependencies {
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+
+ compile group: 'org.apache.ignite', name: 'ignite-core', version: ignVer
+}
diff --git a/modules/dev-utils/ignite-modules-test/src/main/java/module-info.java b/modules/dev-utils/ignite-modules-test/src/main/java/module-info.java
new file mode 100644
index 0000000..42d32bc
--- /dev/null
+++ b/modules/dev-utils/ignite-modules-test/src/main/java/module-info.java
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+module ignite_modules_test {
+}
\ No newline at end of file
diff --git a/modules/dev-utils/ignite-modules-test/src/test/java/org/apache/ignite/modulestest/ModulesLaunchTest.java b/modules/dev-utils/ignite-modules-test/src/test/java/org/apache/ignite/modulestest/ModulesLaunchTest.java
new file mode 100644
index 0000000..c13a1c1
--- /dev/null
+++ b/modules/dev-utils/ignite-modules-test/src/test/java/org/apache/ignite/modulestest/ModulesLaunchTest.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.modulestest;
+
+import org.apache.ignite.Ignite;
+import org.apache.ignite.Ignition;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ModulesLaunchTest {
+ /**
+ * Tests ignite startup without any features used.
+ */
+ @Test
+ public void testSimpleLaunch() {
+ Ignite ignite = Ignition.start();
+
+ ignite.close();
+ }
+}