Add unittest + doc about jgetinfo 26/12226/1
Sylvestre Ledru [Mon, 5 Aug 2013 10:20:01 +0000 (12:20 +0200)]
Change-Id: Iee0afaccac8da52af83f3dd24bb00d59f117bad3

scilab/modules/external_objects_java/help/en_US/jgetinfo.xml [new file with mode: 0644]
scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.dia.ref [new file with mode: 0644]
scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.tst [new file with mode: 0644]

diff --git a/scilab/modules/external_objects_java/help/en_US/jgetinfo.xml b/scilab/modules/external_objects_java/help/en_US/jgetinfo.xml
new file mode 100644 (file)
index 0000000..32a6fd6
--- /dev/null
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+*
+* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+* Copyright (C) 2013 - S/E - Sylvestre Ledru
+*
+* This file must be used under the terms of the CeCILL.
+* This source file is licensed as described in the file COPYING, which
+* you should have received as part of this distribution.  The terms
+* are also available at
+* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+*
+*
+-->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="jgetinfo">
+    <refnamediv>
+        <refname>jgetinfo</refname>
+        <refpurpose>Returns information about the Java virtual machine</refpurpose>
+    </refnamediv>
+    <refsynopsisdiv>
+        <title>Calling Sequence</title>
+        <synopsis>
+            jinfo = jgetinfo()
+        </synopsis>
+    </refsynopsisdiv>
+    <refsection>
+        <title>Parameters</title>
+        <variablelist>
+            <varlistentry>
+                <term>jinfo</term>
+                <listitem>
+                    <para>A string matrix containing the information about the Java VM</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+    </refsection>
+    <refsection>
+        <title>Description</title>
+        <para>
+            Can be used for debug purposes, the jgetinfo function returns the information about the Java virtual machine.
+        </para>
+    </refsection>
+    <refsection>
+        <title>Examples</title>
+        <programlisting role="example"><![CDATA[
+disp(jgetinfo());
+      ]]></programlisting>
+    </refsection>
+</refentry>
diff --git a/scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.dia.ref b/scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.dia.ref
new file mode 100644 (file)
index 0000000..2b16683
--- /dev/null
@@ -0,0 +1,8 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Sylvestre Ledru
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+a=jgetinfo();
+assert_checkequal(typeof(a), "string");
diff --git a/scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.tst b/scilab/modules/external_objects_java/tests/unit_tests/jgetinfo.tst
new file mode 100644 (file)
index 0000000..d817f9a
--- /dev/null
@@ -0,0 +1,10 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Sylvestre Ledru
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+
+a=jgetinfo();
+assert_checkequal(typeof(a), "string");