[FOray-commit] SF.net SVN: foray: [8730] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2007-02-18 18:47:51
|
Revision: 8730
http://svn.sourceforge.net/foray/?rev=8730&view=rev
Author: victormote
Date: 2007-02-18 10:47:45 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
Add a test to the Renderer package.
Modified Paths:
--------------
trunk/foray/foray-app/src/javatest/org/foray/app/TestFOrayAll.java
trunk/foray/foray-render/.classpath
Added Paths:
-----------
trunk/foray/foray-render/src/javatest/
trunk/foray/foray-render/src/javatest/org/
trunk/foray/foray-render/src/javatest/org/foray/
trunk/foray/foray-render/src/javatest/org/foray/render/
trunk/foray/foray-render/src/javatest/org/foray/render/TestFOrayRender.java
trunk/foray/foray-render/src/javatest/org/foray/render/TestRenderer.java
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/TestFOrayAll.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/TestFOrayAll.java 2007-02-18 18:18:09 UTC (rev 8729)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/TestFOrayAll.java 2007-02-18 18:47:45 UTC (rev 8730)
@@ -32,6 +32,7 @@
import org.foray.graphic.TestFOrayGraphic;
import org.foray.hyphenR.TestFOrayHyphenR;
import org.foray.ps.TestFOrayPS;
+import org.foray.render.TestFOrayRender;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -51,6 +52,7 @@
testSuite.addTest(TestFOrayGraphic.suite());
testSuite.addTest(TestFOrayHyphenR.suite());
testSuite.addTest(TestFOrayFOTree.suite());
+ testSuite.addTest(TestFOrayRender.suite());
return testSuite;
}
Modified: trunk/foray/foray-render/.classpath
===================================================================
--- trunk/foray/foray-render/.classpath 2007-02-18 18:18:09 UTC (rev 8729)
+++ trunk/foray/foray-render/.classpath 2007-02-18 18:47:45 UTC (rev 8730)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding=".#*" kind="src" path="src/java"/>
+ <classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayCommon"/>
<classpathentry kind="src" path="/axslFont-R"/>
@@ -15,5 +16,6 @@
<classpathentry kind="src" path="/axslPDF-W"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPS"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/>
+ <classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
<classpathentry kind="output" path="build/eclipse"/>
</classpath>
Added: trunk/foray/foray-render/src/javatest/org/foray/render/TestFOrayRender.java
===================================================================
--- trunk/foray/foray-render/src/javatest/org/foray/render/TestFOrayRender.java (rev 0)
+++ trunk/foray/foray-render/src/javatest/org/foray/render/TestFOrayRender.java 2007-02-18 18:47:45 UTC (rev 8730)
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2006 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed 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.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.render;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Handles testing for the FOrayFOTree module.
+ */
+public class TestFOrayRender extends TestCase {
+
+ /**
+ * Builds a test suite for all classes in this module.
+ * @return The built test suite.
+ */
+ public static Test suite() {
+ final TestSuite testSuite = new TestSuite();
+
+ testSuite.addTestSuite(TestRenderer.class);
+
+ return testSuite;
+ }
+
+}
Property changes on: trunk/foray/foray-render/src/javatest/org/foray/render/TestFOrayRender.java
___________________________________________________________________
Name: svn:keywords
+ "Author Id Rev Date URL"
Name: svn:eol-style
+ native
Added: trunk/foray/foray-render/src/javatest/org/foray/render/TestRenderer.java
===================================================================
--- trunk/foray/foray-render/src/javatest/org/foray/render/TestRenderer.java (rev 0)
+++ trunk/foray/foray-render/src/javatest/org/foray/render/TestRenderer.java 2007-02-18 18:47:45 UTC (rev 8730)
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2007 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed 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.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.render;
+
+import junit.framework.TestCase;
+
+/**
+ * JUnit test class for the class {@link Renderer}.
+ */
+public class TestRenderer extends TestCase {
+
+ /**
+ * Unit test for the method {@link Renderer#toPoints(int)}.
+ */
+ public void testToPoints() {
+ final float testValue = Renderer.toPoints(749);
+ assertEquals(.749, testValue, .0005);
+ }
+
+}
Property changes on: trunk/foray/foray-render/src/javatest/org/foray/render/TestRenderer.java
___________________________________________________________________
Name: svn:keywords
+ "Author Id Rev Date URL"
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|