ruper2/src/test/core/org/krysalis/ruper2/misc HttpClientTest.java,1.2,1.3 VfsTests.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/misc
In directory sc8-pr-cvs1:/tmp/cvs-serv16855/src/test/core/org/krysalis/ruper2/misc

Modified Files:
	HttpClientTest.java VfsTests.java 
Log Message:
1) Monitoring (so we can sniff out failures in testing, to improve)
2) First step in removing VFS...

Index: HttpClientTest.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/misc/HttpClientTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** HttpClientTest.java	9 Oct 2003 16:02:21 -0000	1.2
--- HttpClientTest.java	9 Oct 2003 20:30:26 -0000	1.3
***************
*** 19,23 ****
   */
  public class HttpClientTest {
! 	public static void main(String args[])throws Exception {
  		System.setProperty(
  			"org.apache.commons.logging.Log",
--- 19,23 ----
   */
  public class HttpClientTest {
! 	public static void main(String args[]) throws Exception {
  		System.setProperty(
  			"org.apache.commons.logging.Log",
***************
*** 36,53 ****
  		String url = "http://www.ibiblio.org/maven/HTTPClient/jars/";
  
! 		HttpClient client = new HttpClient(new MultiThreadedHttpConnectionManager());
! 		HeadMethod head = new HeadMethod(url);
! 		client.executeMethod(head);
! 		
! 		GetMethod get = new GetMethod(url);
  
! 		client.executeMethod(get);
! 		get.getResponseBody();
! 		
! 		GetMethod get2 = new GetMethod(url);
  
- 		client.executeMethod(get);
- 		get2.getResponseBody();
- 		
  		System.out.println("Done...");
  	}
--- 36,60 ----
  		String url = "http://www.ibiblio.org/maven/HTTPClient/jars/";
  
! 		for (int i = 0; i < 100; ++i) {
  
! 			System.out.println("--------------------------------------");
! 			System.out.println("Doing " + i);
! 			
! 			HttpClient client =
! 				new HttpClient(new MultiThreadedHttpConnectionManager());
! 			HeadMethod head = new HeadMethod(url);
! 			client.executeMethod(head);
! 
! 			GetMethod get = new GetMethod(url);
! 
! 			client.executeMethod(get);
! 			get.getResponseBody();
! 
! 			GetMethod get2 = new GetMethod(url);
! 
! 			client.executeMethod(get);
! 			get2.getResponseBody();
! 		}
  
  		System.out.println("Done...");
  	}

Index: VfsTests.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/test/core/org/krysalis/ruper2/misc/VfsTests.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VfsTests.java	9 Oct 2003 16:02:21 -0000	1.1
--- VfsTests.java	9 Oct 2003 20:30:26 -0000	1.2
***************
*** 17,24 ****
  		DebugUtils.enableHttpClientDebug();
  
! 		String url = "http://www.ibiblio.org/maven/HTTPClient/jars/";
  
  		FileObject fo = VfsUtils.getDefaultFSM().resolveFile(url);
! 		List kids = VfsUtils.getChildren(fo);
  
  		System.out.println("Done...");
--- 17,33 ----
  		DebugUtils.enableHttpClientDebug();
  
! 		String url = "http://www.ibiblio.org/maven/junit/jars";
  
  		FileObject fo = VfsUtils.getDefaultFSM().resolveFile(url);
! 
! 		for (int i = 0; i < 100; ++i) {
! 
! 			boolean exists = fo.exists();
! 
! 			System.out.println("--------------------------------------");
! 			System.out.println("Doing " + i);
! 
! 			List kids = VfsUtils.getChildren(fo);
! 		}
  
  		System.out.println("Done...");




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.