Permalink
Browse files

Fix BasicJerseyNexusClientIT expected exceptions

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
  • Loading branch information...
1 parent 6261956 commit 69576e6f55850fc65b7db6b664e383659b2221fd @adreghiciu adreghiciu committed with cstamas Nov 16, 2012
@@ -23,11 +23,10 @@
import org.sonatype.nexus.client.core.condition.VersionConditions;
import org.sonatype.nexus.client.rest.BaseUrl;
import org.sonatype.nexus.client.rest.NexusClientFactory;
-import com.sun.jersey.api.client.ClientHandlerException;
-import junit.framework.Assert;
import org.sonatype.sisu.litmus.testsupport.group.External;
+import junit.framework.Assert;
-@Category(External.class) // This test contacts external servers
+@Category( External.class ) // This test contacts external servers
public class BasicJerseyNexusClientIT
extends JerseyNexusClientTestSupport
{
@@ -78,7 +77,7 @@ public void createWithGoodUrlButNotAcceptableCriteria2()
}
}
- @Test( expected = ClientHandlerException.class )
+ @Test( expected = NexusClientHandlerException.class )
public void createWithWrongBaseUrlNotExists()
throws MalformedURLException
{
@@ -87,7 +86,7 @@ public void createWithWrongBaseUrlNotExists()
factory.createFor( BaseUrl.baseUrlFrom( "https://foobar123.sonatype.org/" ) );
}
- @Test( expected = ClientHandlerException.class )
+ @Test( expected = NexusClientHandlerException.class )
public void createWithWrongBaseUrlNotANexus()
throws MalformedURLException
{

0 comments on commit 69576e6

Please sign in to comment.