harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r417165 - in /incubator/harmony/standard/site: docs/subcomponents/classlibrary/ser_testing.html xdocs/subcomponents/classlibrary/ser_testing.xml
Date Mon, 26 Jun 2006 11:01:46 GMT
Author: smishura
Date: Mon Jun 26 04:01:44 2006
New Revision: 417165

URL: http://svn.apache.org/viewvc?rev=417165&view=rev
Log:
Adding SerializableAssert interface description

Modified:
    incubator/harmony/standard/site/docs/subcomponents/classlibrary/ser_testing.html
    incubator/harmony/standard/site/xdocs/subcomponents/classlibrary/ser_testing.xml

Modified: incubator/harmony/standard/site/docs/subcomponents/classlibrary/ser_testing.html
URL: http://svn.apache.org/viewvc/incubator/harmony/standard/site/docs/subcomponents/classlibrary/ser_testing.html?rev=417165&r1=417164&r2=417165&view=diff
==============================================================================
--- incubator/harmony/standard/site/docs/subcomponents/classlibrary/ser_testing.html (original)
+++ incubator/harmony/standard/site/docs/subcomponents/classlibrary/ser_testing.html Mon Jun
26 04:01:44 2006
@@ -226,19 +226,16 @@
 		Verifies that an object serialized on certified implementation is
 		correctly deserialized on Harmony implementation.<br /><br />
 		The support class provides 4 methods for compatibility testing:
-		<ul>
-			<li><code>verifyGolden(TestCase, Object)</code></li>
-			<li><code>verifyGolden(TestCase, Object, SerializableAssert)</code></li>
-			<li><code>verifyGolden(TestCase, Object[])</code></li>
-			<li><code>verifyGolden(TestCase, Object[], SerializableAssert)</code></li>
-		</ul>
+		<ul><code>
+			<li>verifyGolden(TestCase, Object)</li>
+			<li>verifyGolden(TestCase, Object, <a href="#assert">SerializableAssert</a>)</li>
+			<li>verifyGolden(TestCase, Object[])</li>
+			<li>verifyGolden(TestCase, Object[], <a href="#assert">SerializableAssert</a>)</li>
+		</code></ul>
 		The first parameter <code>TestCase</code> is used to locate resource
 		file(s) that contains serialized object(s). The second parameter is an object
 		or an array of objects to be compared with object(s) deserialized from
-		resource file(s). And the third parameter is optional. It should be
-		provided in case if class of object(s) to be compared doesn't have
-		equals(Object) method or the testing framework can not find appropriate
-		comparator.<br /><br />
+		resource file(s). And the third parameter is optional.<br /><br />
 		
 		So to create a <em>compatibility</em> test for selected class a developer should:
 		<ul>
@@ -271,12 +268,12 @@
 		Verifies that an object can be smoothly serialized and deserialized on
 		Harmony implementation<br /><br />
 		The support class provides 4 methods for self-testing:
-		<ul>
+		<ul><code>
 			<li>verifySelf(Object)</li>
-			<li>verifySelf(Object, SerializableAssert)</li>
+			<li>verifySelf(Object, <a href="#assert">SerializableAssert</a>)</li>
 			<li>verifySelf(Object[])</li>
-			<li>verifySelf(Object[], SerializableAssert)</li>
-		</ul>
+			<li>verifySelf(Object[], <a href="#assert">SerializableAssert</a>)</li>
+		</code></ul>
 		The provided object(s) is(are) serialized/deserialized and compared with
 		initial object(s).<br /><br />
 
@@ -303,6 +300,16 @@
                                                 <p>
 		<b>3) Negative testing</b><br />
 		<big><em>TBD</em></big>
+	</p>
+                                                <p>
+		<a name="assert"><big><em>Interface SerializableAssert</em></big></a><br
/>
+		A test has to implement the interface in case if class of object(s)
+		to be compared doesn't have equals(Object) method or the testing
+		framework can not find appropriate comparator. The interface has only
+		one method to be implemented:<br /><br />
+		<code>
+			void assertDeserialized(Serializable reference, Serializable test);
+		</code>
 	</p>
                             </blockquote>
       </td></tr>

Modified: incubator/harmony/standard/site/xdocs/subcomponents/classlibrary/ser_testing.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/standard/site/xdocs/subcomponents/classlibrary/ser_testing.xml?rev=417165&r1=417164&r2=417165&view=diff
==============================================================================
--- incubator/harmony/standard/site/xdocs/subcomponents/classlibrary/ser_testing.xml (original)
+++ incubator/harmony/standard/site/xdocs/subcomponents/classlibrary/ser_testing.xml Mon Jun
26 04:01:44 2006
@@ -48,19 +48,16 @@
 		Verifies that an object serialized on certified implementation is
 		correctly deserialized on Harmony implementation.<br/><br/>
 		The support class provides 4 methods for compatibility testing:
-		<ul>
-			<li><code>verifyGolden(TestCase, Object)</code></li>
-			<li><code>verifyGolden(TestCase, Object, SerializableAssert)</code></li>
-			<li><code>verifyGolden(TestCase, Object[])</code></li>
-			<li><code>verifyGolden(TestCase, Object[], SerializableAssert)</code></li>
-		</ul>
+		<ul><code>
+			<li>verifyGolden(TestCase, Object)</li>
+			<li>verifyGolden(TestCase, Object, <a href="#assert">SerializableAssert</a>)</li>
+			<li>verifyGolden(TestCase, Object[])</li>
+			<li>verifyGolden(TestCase, Object[], <a href="#assert">SerializableAssert</a>)</li>
+		</code></ul>
 		The first parameter <code>TestCase</code> is used to locate resource
 		file(s) that contains serialized object(s). The second parameter is an object
 		or an array of objects to be compared with object(s) deserialized from
-		resource file(s). And the third parameter is optional. It should be
-		provided in case if class of object(s) to be compared doesn't have
-		equals(Object) method or the testing framework can not find appropriate
-		comparator.<br/><br/>
+		resource file(s). And the third parameter is optional.<br/><br/>
 		
 		So to create a <em>compatibility</em> test for selected class a developer should:
 		<ul>
@@ -93,12 +90,12 @@
 		Verifies that an object can be smoothly serialized and deserialized on
 		Harmony implementation<br/><br/>
 		The support class provides 4 methods for self-testing:
-		<ul>
+		<ul><code>
 			<li>verifySelf(Object)</li>
-			<li>verifySelf(Object, SerializableAssert)</li>
+			<li>verifySelf(Object, <a href="#assert">SerializableAssert</a>)</li>
 			<li>verifySelf(Object[])</li>
-			<li>verifySelf(Object[], SerializableAssert)</li>
-		</ul>
+			<li>verifySelf(Object[], <a href="#assert">SerializableAssert</a>)</li>
+		</code></ul>
 		The provided object(s) is(are) serialized/deserialized and compared with
 		initial object(s).<br/><br/>
 
@@ -125,6 +122,16 @@
 	<p>
 		<b>3) Negative testing</b><br/>
 		<big><em>TBD</em></big>
+	</p>
+	<p>
+		<a name="assert"><big><em>Interface SerializableAssert</em></big></a><br/>
+		A test has to implement the interface in case if class of object(s)
+		to be compared doesn't have equals(Object) method or the testing
+		framework can not find appropriate comparator. The interface has only
+		one method to be implemented:<br/><br/>
+		<code>
+			void assertDeserialized(Serializable reference, Serializable test);
+		</code>
 	</p>
 </subsection>
 



Mime
View raw message