Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 844581 Details for
Bug 1036953
xmvn: NPE in FileUtils.followSymlink()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
testcase
0001-test-Add-test-for-rhbz-1036953.patch (text/plain), 3.14 KB, created by
Michael Simacek
on 2014-01-02 14:52:04 UTC
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Michael Simacek
Created:
2014-01-02 14:52:04 UTC
Size:
3.14 KB
patch
obsolete
>From c3a510ce9c98d96ff2b9fe16a72b8b9139237a91 Mon Sep 17 00:00:00 2001 >From: Michael Simacek <msimacek@redhat.com> >Date: Thu, 2 Jan 2014 15:45:22 +0100 >Subject: [PATCH] [test] Add test for rhbz#1036953 > >Signed-off-by: Michael Simacek <msimacek@redhat.com> >--- > .../maven/resolver/BisectResolverTest.java | 72 ++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > create mode 100644 xmvn-core/src/test/java/org/fedoraproject/maven/resolver/BisectResolverTest.java > >diff --git a/xmvn-core/src/test/java/org/fedoraproject/maven/resolver/BisectResolverTest.java b/xmvn-core/src/test/java/org/fedoraproject/maven/resolver/BisectResolverTest.java >new file mode 100644 >index 0000000..3ce0fe4 >--- /dev/null >+++ b/xmvn-core/src/test/java/org/fedoraproject/maven/resolver/BisectResolverTest.java >@@ -0,0 +1,72 @@ >+/*- >+ * Copyright (c) 2013 Red Hat, Inc. >+ * >+ * Licensed 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. >+ */ >+package org.fedoraproject.maven.resolver; >+ >+import java.io.IOException; >+import org.codehaus.plexus.PlexusTestCase; >+import org.eclipse.aether.artifact.Artifact; >+import org.eclipse.aether.artifact.DefaultArtifact; >+import org.fedoraproject.maven.config.Configuration; >+import org.fedoraproject.maven.config.Configurator; >+import org.fedoraproject.maven.config.Repository; >+import org.fedoraproject.maven.utils.AtomicFileCounter; >+ >+/** >+ * @author Michael Simacek >+ */ >+public class BisectResolverTest >+ extends PlexusTestCase >+{ >+ >+ @Override >+ public void setUp() throws IOException >+ { >+ System.setProperty( "xmvn.bisect.counter", "bisect-counter" ); >+ AtomicFileCounter counter = new AtomicFileCounter( "bisect-counter", 1000 ); >+ } >+ >+ @Override >+ public void tearDown() >+ { >+ System.clearProperty( "xmvn.bisect.counter" ); >+ } >+ >+ /** >+ * Test bisection resolution of artifact with no corresponding file >+ * >+ * @throws Exception >+ */ >+ public void testBisectResolverNoFile() >+ throws Exception >+ { >+ Configurator configurator = lookup( Configurator.class ); >+ Configuration configuration = configurator.getConfiguration(); >+ >+ Repository repository = new Repository(); >+ repository.setId( "bisect" ); >+ repository.setType( "flat" ); >+ configuration.addRepository( repository ); >+ >+ Artifact artifact = new DefaultArtifact( "foo:bar:1.2" ); >+ >+ Resolver resolver = lookup( Resolver.class ); >+ ResolutionRequest request = new ResolutionRequest( artifact ); >+ ResolutionResult result = resolver.resolve( request ); >+ >+ assertNotNull( result ); >+ assertNull( result.getArtifactFile() ); >+ } >+} >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1036953
:
831839
| 844581