You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2016/05/01 12:56:39 UTC
[37/50] [abbrv] maven-aether git commit: Cleaned up WebDAv test
Cleaned up WebDAv test
Project: http://git-wip-us.apache.org/repos/asf/maven-aether/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-aether/commit/a29e4329
Tree: http://git-wip-us.apache.org/repos/asf/maven-aether/tree/a29e4329
Diff: http://git-wip-us.apache.org/repos/asf/maven-aether/diff/a29e4329
Branch: refs/heads/master
Commit: a29e432956de384a4ca6127c644986da2f981624
Parents: 07e1a84
Author: Benjamin Bentmann <be...@sonatype.com>
Authored: Sun Oct 19 17:21:05 2014 +0200
Committer: Benjamin Bentmann <be...@sonatype.com>
Committed: Sun Oct 19 17:21:05 2014 +0200
----------------------------------------------------------------------
.../eclipse/aether/transport/http/HttpTransporterTest.java | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-aether/blob/a29e4329/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
----------------------------------------------------------------------
diff --git a/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java b/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
index eed95b4..50d4fee 100644
--- a/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
+++ b/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
@@ -831,8 +831,6 @@ public class HttpTransporterTest
{
session.setConfigProperty( "aether.connector.http.webDav." + REPO_ID, "false" );
httpServer.setWebDav( HttpServer.WebDav.OPTIONAL );
- httpServer.setAuthentication( "testuser", "testpass" );
- auth = new AuthenticationBuilder().addUsername( "testuser" ).addPassword( "testpass" ).build();
newTransporter( httpServer.getHttpUrl() );
RecordingTransportListener listener = new RecordingTransportListener();
PutTask task =
@@ -844,10 +842,9 @@ public class HttpTransporterTest
assertTrue( "Count: " + listener.progressedCount, listener.progressedCount > 0 );
assertEquals( "upload", TestFileUtils.readString( new File( repoDir, "dir1/dir2/file.txt" ) ) );
- assertEquals( httpServer.getLogEntries().toString(), 3, httpServer.getLogEntries().size() );
+ assertEquals( httpServer.getLogEntries().toString(), 2, httpServer.getLogEntries().size() );
assertEquals( "OPTIONS", httpServer.getLogEntries().get( 0 ).method );
- assertEquals( "OPTIONS", httpServer.getLogEntries().get( 1 ).method );
- assertEquals( "PUT", httpServer.getLogEntries().get( 2 ).method );
+ assertEquals( "PUT", httpServer.getLogEntries().get( 1 ).method );
}
@Test