@@ -0,0 +1,2320 @@
+/*-%0A * Copyright (c) 2013 Red Hat, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fedoraproject.maven.resolver;%0A%0Aimport java.io.IOException;%0Aimport org.codehaus.plexus.PlexusTestCase;%0Aimport org.eclipse.aether.artifact.Artifact;%0Aimport org.eclipse.aether.artifact.DefaultArtifact;%0Aimport org.fedoraproject.maven.config.Configuration;%0Aimport org.fedoraproject.maven.config.Configurator;%0Aimport org.fedoraproject.maven.config.Repository;%0Aimport org.fedoraproject.maven.utils.AtomicFileCounter;%0A%0A/**%0A * @author Michael Simacek%0A */%0Apublic class BisectResolverTest%0A    extends PlexusTestCase%0A%7B%0A    @Override%0A    public void setUp()%0A        throws IOException%0A    %7B%0A        System.setProperty( %22xmvn.bisect.counter%22, %22bisect-counter%22 );%0A        AtomicFileCounter counter = new AtomicFileCounter( %22bisect-counter%22, 1000 );%0A    %7D%0A%0A    @Override%0A    public void tearDown()%0A    %7B%0A        System.clearProperty( %22xmvn.bisect.counter%22 );%0A    %7D%0A%0A    /**%0A     * Test bisection resolution of artifact with no corresponding file%0A     * %0A     * @throws Exception%0A     */%0A    public void testBisectResolverNoFile()%0A        throws Exception%0A    %7B%0A        Configurator configurator = lookup( Configurator.class );%0A        Configuration configuration = configurator.getConfiguration();%0A%0A        Repository repository = new Repository();%0A        repository.setId( %22bisect%22 );%0A        repository.setType( %22flat%22 );%0A        configuration.addRepository( repository );%0A%0A        Artifact artifact = new DefaultArtifact( %22foo:bar:1.2%22 );%0A%0A        Resolver resolver = lookup( Resolver.class );%0A        ResolutionRequest request = new ResolutionRequest( artifact );%0A        ResolutionResult result = resolver.resolve( request );%0A%0A        assertNotNull( result );%0A        assertNull( result.getArtifactFile() );%0A    %7D%0A%7D%0A

Add test for rhbz#1036953