rwaldhoff 2003/02/18 04:14:49
Modified: jux/src/test/org/apache/commons/jux
TestStringObjectTestCase.java
Log:
remove diagnostic test, problem is solved
Revision Changes Path
1.3 +2 -49
jakarta-commons-sandbox/jux/src/test/org/apache/commons/jux/TestStringObjectTestCase.java
Index: TestStringObjectTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/jux/src/test/org/apache/commons/jux/TestStringObjectTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestStringObjectTestCase.java 13 Feb 2003 12:12:50 -0000 1.2
+++ TestStringObjectTestCase.java 18 Feb 2003 12:14:49 -0000 1.3
@@ -108,51 +108,4 @@
return stream;
}
- // some diagnostics for the gump failure, which I can't
- // seem to recreate in any other environment (even
- // running gump locally)
- public void testDiagnose() throws Exception {
- System.out.println("");
- System.out.println("java.home: " + System.getProperty("java.home"));
- System.out.println("java.version: " + System.getProperty("java.version"));
- System.out.println("java.vendor: " + System.getProperty("java.vendor"));
- System.out.println("java.class.path: " +
System.getProperty("java.class.path"));
- System.out.println("");
- URL url = this.getClass().getResource("String.ser");
- System.out.println("getResource(\"String.ser\"): " + url);
- System.out.println("url.getPath(): " + url.getPath());
- File file = new File(url.getPath());
- System.out.println("File.exists()? " + file.exists());
- System.out.println("File.canRead()? " + file.canRead());
-
- System.out.println("");
- System.out.println("From file:");
- if(file.exists()) {
- DataInputStream din = null;
- try {
- din = new DataInputStream(new FileInputStream(file));
- System.out.println("magic number: " + din.readShort());
- System.out.println("(expect : " + (short)0xaced + ")");
- System.out.println("version: " + din.readShort());
- System.out.println("(expect: " + 5 + ")");
- } finally {
- try { din.close(); } catch(Exception e) { }
- }
- }
-
- System.out.println("");
- System.out.println("From resource:");
- DataInputStream din = null;
- try {
- din = new DataInputStream(getSerializedCanonicalInstanceStream());
- System.out.println("magic number: " + din.readShort());
- System.out.println("(expect : " + (short)0xaced + ")");
- System.out.println("version: " + din.readShort());
- System.out.println("(expect: " + 5 + ")");
- } finally {
- try { din.close(); } catch(Exception e) { }
- }
-
- }
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]