You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-commits@maven.apache.org by do...@apache.org on 2003/12/06 06:36:05 UTC
cvs commit: maven-wagon/wagon-api/src/test/java/org/apache/maven/wagon/request GetRequestTest.java
donaldp 2003/12/05 21:36:05
Modified: wagon-api/src/test/java/org/apache/maven/wagon/request
GetRequestTest.java
Log:
Make sure class compiles
Revision Changes Path
1.3 +13 -14 maven-wagon/wagon-api/src/test/java/org/apache/maven/wagon/request/GetRequestTest.java
Index: GetRequestTest.java
===================================================================
RCS file: /home/cvs/maven-wagon/wagon-api/src/test/java/org/apache/maven/wagon/request/GetRequestTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- GetRequestTest.java 26 Nov 2003 20:59:15 -0000 1.2
+++ GetRequestTest.java 6 Dec 2003 05:36:05 -0000 1.3
@@ -3,9 +3,9 @@
/*
* ====================================================================
* The Apache Software License, Version 1.1
- *
+ *
* Copyright (c) 2001 The Apache Software Foundation. All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: 1.
* Redistributions of source code must retain the above copyright notice, this
@@ -24,7 +24,7 @@
* Products derived from this software may not be called "Apache", "Apache
* MavenSession", nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
- *
+ *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
@@ -36,33 +36,33 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
- *
+ *
* This software consists of voluntary contributions made by many individuals
* on behalf of the Apache Software Foundation. For more information on the
* Apache Software Foundation, please see <http://www.apache.org/> .
- *
+ *
* ====================================================================
*/
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.OutputStream;
import junit.framework.TestCase;
import org.apache.maven.wagon.result.ByteArrayResult;
import org.apache.maven.wagon.result.FileResult;
import org.apache.maven.wagon.result.StreamResult;
import org.apache.maven.wagon.result.WagonResult;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.OutputStream;
-
/**
* @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
* @version $Id$
*/
-public class GetRequestTest extends TestCase
+public class GetRequestTest
+ extends TestCase
{
public void testFetchCommand()
+ throws Exception
{
-
final WagonResult result = new ByteArrayResult();
final File file = new File( "foo.txt" );
@@ -88,7 +88,7 @@
assertNotNull( request.getResource() );
assertEquals( StreamResult.class, request.getResult().getClass() );
- final StreamResult streamResult = ( StreamResult ) request.getResult();
+ final StreamResult streamResult = (StreamResult)request.getResult();
assertEquals( out, streamResult.getOutputStream() );
//deafult value for "binary" is true
@@ -98,6 +98,5 @@
assertFalse( request.isBinary() );
request.setBinary( true );
assertTrue( request.isBinary() );
-
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org