Author: jcouteau Date: 2010-06-18 16:36:26 +0200 (Fri, 18 Jun 2010) New Revision: 218 Url: http://nuiton.org/repositories/revision/nuiton-j2r/218 Log: Update to JRI 0.8-4 Add test for graphics Modified: trunk/pom.xml trunk/src/test/java/org/nuiton/j2r/JNITest.java trunk/src/test/java/org/nuiton/j2r/NetTest.java Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-06-16 13:46:50 UTC (rev 217) +++ trunk/pom.xml 2010-06-18 14:36:26 UTC (rev 218) @@ -51,7 +51,7 @@ <dependency> <groupId>org.nuiton.thirdparty</groupId> <artifactId>JRI</artifactId> - <version>0.8-2</version> + <version>0.8-4</version> <scope>compile</scope> </dependency> <dependency> Modified: trunk/src/test/java/org/nuiton/j2r/JNITest.java =================================================================== --- trunk/src/test/java/org/nuiton/j2r/JNITest.java 2010-06-16 13:46:50 UTC (rev 217) +++ trunk/src/test/java/org/nuiton/j2r/JNITest.java 2010-06-18 14:36:26 UTC (rev 218) @@ -420,4 +420,10 @@ double d = (Double)engine.evalScript("t<-sin(0)\nt"); Assert.assertEquals(0.0,d,0.001); } + + @Test + public void testGraphics() throws Exception { + engine.eval("plot(seq(1,10))"); + } + } // JNITest Modified: trunk/src/test/java/org/nuiton/j2r/NetTest.java =================================================================== --- trunk/src/test/java/org/nuiton/j2r/NetTest.java 2010-06-16 13:46:50 UTC (rev 217) +++ trunk/src/test/java/org/nuiton/j2r/NetTest.java 2010-06-18 14:36:26 UTC (rev 218) @@ -8,16 +8,16 @@ * Copyright (C) 2006 - 2010 CodeLutin * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see * <http://www.gnu.org/licenses/lgpl-3.0.html>. * #L% @@ -381,5 +381,10 @@ Assert.assertEquals(0.0, d, 0.001); } + @Test + public void testGraphics() throws Exception { + engine.eval("plot(seq(1,10))"); + } + } // NetTest