oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfos...@apache.org
Subject svn commit: r1145271 - in /oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http: TestHttpProtocol.java util/TestHttpUtils.java
Date Mon, 11 Jul 2011 18:23:23 GMT
Author: bfoster
Date: Mon Jul 11 18:23:23 2011
New Revision: 1145271

URL: http://svn.apache.org/viewvc?rev=1145271&view=rev
Log:
Update HTTP test to point to new source location

Modified:
    oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java
    oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/util/TestHttpUtils.java

Modified: oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java
URL: http://svn.apache.org/viewvc/oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java?rev=1145271&r1=1145270&r2=1145271&view=diff
==============================================================================
--- oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java
(original)
+++ oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java
Mon Jul 11 18:23:23 2011
@@ -49,7 +49,7 @@ public class TestHttpProtocol extends Te
 		HttpProtocol httpProtocol = new HttpProtocol();
 		httpProtocol.connect("svn.apache.org", new NoAuthentication());
 		assertTrue(httpProtocol.connected());
-		httpProtocol.cd(new ProtocolFile("repos/asf/oodt/branches/protocol/protocol-http/src/main/java/org/apache/oodt/cas/protocol/http",
true));
+		httpProtocol.cd(new ProtocolFile("repos/asf/oodt/trunk/protocol/protocol-http/src/main/java/org/apache/oodt/cas/protocol/http",
true));
 		List<ProtocolFile> files = httpProtocol.ls();
 		boolean foundFile = false;
 		for (ProtocolFile file : files) {
@@ -65,7 +65,7 @@ public class TestHttpProtocol extends Te
 		HttpProtocol httpProtocol = new HttpProtocol();
 		httpProtocol.connect("svn.apache.org", new NoAuthentication());
 		assertTrue(httpProtocol.connected());
-		ProtocolFile gotoDir = new ProtocolFile(httpProtocol.pwd(), "repos/asf/oodt/branches/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http",
true);
+		ProtocolFile gotoDir = new ProtocolFile(httpProtocol.pwd(), "repos/asf/oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http",
true);
 		httpProtocol.cd(gotoDir);
 		ProtocolFile currentDir = httpProtocol.pwd();
 		System.out.println(gotoDir.getAbsoluteFile());
@@ -77,7 +77,7 @@ public class TestHttpProtocol extends Te
 		HttpProtocol httpProtocol = new HttpProtocol();
 		httpProtocol.connect("svn.apache.org", new NoAuthentication());
 		assertTrue(httpProtocol.connected());
-		httpProtocol.cd(new ProtocolFile("repos/asf/oodt/branches/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http",
true));
+		httpProtocol.cd(new ProtocolFile("repos/asf/oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http",
true));
 		File bogus = File.createTempFile("bogus", "bogus");
 		File tmpDir = new File(bogus.getParentFile(), "TestHttpProtocol");
 		bogus.delete();
@@ -92,7 +92,7 @@ public class TestHttpProtocol extends Te
 		while(scanner.hasNextLine()) {
 			fileContent += scanner.nextLine();
 		}
-		assertEquals(fileContent, HttpUtils.readUrl(HttpUtils.connect(new URL("http://svn.apache.org/repos/asf/oodt/branches/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java"))));
+		assertEquals(fileContent, HttpUtils.readUrl(HttpUtils.connect(new URL("http://svn.apache.org/repos/asf/oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/TestHttpProtocol.java"))));
 		FileUtils.forceDelete(tmpDir);
 	}
 }

Modified: oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/util/TestHttpUtils.java
URL: http://svn.apache.org/viewvc/oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/util/TestHttpUtils.java?rev=1145271&r1=1145270&r2=1145271&view=diff
==============================================================================
--- oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/util/TestHttpUtils.java
(original)
+++ oodt/trunk/protocol/protocol-http/src/test/org/apache/oodt/cas/protocol/http/util/TestHttpUtils.java
Mon Jul 11 18:23:23 2011
@@ -41,7 +41,7 @@ public class TestHttpUtils extends TestC
 	
 	private static final String APACHE_SVN_SITE = "http://svn.apache.org";
 	
-	private static final String PROTOCOL_HTTP_SVN_LOC = "/repos/asf/oodt/branches/protocol/protocol-http";
+	private static final String PROTOCOL_HTTP_SVN_LOC = "/repos/asf/oodt/trunk/protocol/protocol-http";
 	private static final String PARENT_URL_OF_THIS_TEST = PROTOCOL_HTTP_SVN_LOC + "/src/test/org/apache/oodt/cas/protocol/http/util";
 	private static final String URL_OF_THIS_TEST = PARENT_URL_OF_THIS_TEST + "/TestHttpUtils.java";
 	



Mime
View raw message