You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2015/02/13 23:37:11 UTC

[08/10] archiva git commit: test not needed anymore

test not needed anymore


Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/d1248025
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/d1248025
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/d1248025

Branch: refs/heads/master
Commit: d12480258874fc79025a9abb34bdf149b5aa605a
Parents: d533e27
Author: Olivier Lamy <ol...@apache.org>
Authored: Fri Feb 13 09:42:40 2015 +1100
Committer: Olivier Lamy <ol...@apache.org>
Committed: Fri Feb 13 09:42:40 2015 +1100

----------------------------------------------------------------------
 .../RepositoryServletProxiedRelocatedTest.java  | 78 --------------------
 1 file changed, 78 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/d1248025/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java
----------------------------------------------------------------------
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java
deleted file mode 100644
index 0f9a123..0000000
--- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedRelocatedTest.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.apache.archiva.webdav;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *  http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-import com.gargoylesoftware.htmlunit.WebRequest;
-import com.gargoylesoftware.htmlunit.WebResponse;
-import org.apache.archiva.policies.ReleasesPolicy;
-import org.junit.Test;
-
-/**
- * RepositoryServlet Tests, Proxied, Get of Release Artifacts, with varying policy settings.
- *
- */
-public class RepositoryServletProxiedRelocatedTest
-    extends AbstractRepositoryServletProxiedTestCase
-{
-
-    @Test
-    public void testGetProxiedReleaseArtifactPolicyOncePass()
-        throws Exception
-    {
-        // --- Setup
-        setupCentralRemoteRepo();
-        setupCleanInternalRepo();
-
-        String resourcePath = "org/apache/archiva/test/1.0/test-1.0.jar";
-        String expectedRemoteContents = "archiva-test-1.0|jar-remote-contents";
-        populateRepo( remoteCentral, resourcePath, expectedRemoteContents );
-
-        resourcePath = "archiva/test/1.0/test-1.0.pom";
-        String pom = "<project>" +
-                "<modelVersion>4.0.0</modelVersion>" +
-                "<groupId>archiva</groupId>" +
-                "<artifactId>test</artifactId>" +
-                "<version>1.0</version>" +
-                "<distributionManagement>" +
-                "<relocation>" +
-                "<groupId>org.apache.archiva</groupId>" +
-                "</relocation>" +
-                "</distributionManagement>" +
-                "</project>";
-        populateRepo( remoteCentral, resourcePath, pom );
-
-        resourcePath = "archiva/jars/test-1.0.jar";
-
-        setupReleaseConnector( REPOID_INTERNAL, remoteCentral, ReleasesPolicy.ONCE );
-        saveConfiguration();
-
-        // --- Execution
-        // process the response code later, not via an exception.
-        //HttpUnitOptions.setExceptionsThrownOnErrorStatus( false );
-
-        WebRequest request = new GetMethodWebRequest( "http://machine.com/repository/internal/" + resourcePath );
-        WebResponse response = getServletUnitClient().getResponse( request );
-
-        // --- Verification
-        assertResponseNotFound( response );
-
-    }
-}