maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject cvs commit: maven-scm/generic-scm-api/src/test/org/apache/maven/genericscm/util StreamPumperTest.java
Date Tue, 20 Jan 2004 08:50:33 GMT
evenisse    2004/01/20 00:50:33

  Modified:    generic-scm-api/src/test/org/apache/maven/genericscm/util
                        StreamPumperTest.java
  Log:
  Remove deprecated api
  
  Revision  Changes    Path
  1.3       +3 -2      maven-scm/generic-scm-api/src/test/org/apache/maven/genericscm/util/StreamPumperTest.java
  
  Index: StreamPumperTest.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/generic-scm-api/src/test/org/apache/maven/genericscm/util/StreamPumperTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StreamPumperTest.java	8 Dec 2003 20:47:02 -0000	1.2
  +++ StreamPumperTest.java	20 Jan 2004 08:50:33 -0000	1.3
  @@ -88,10 +88,11 @@
       
       public void testPumpingWithPrintWriter()
       {
  -        StringBufferInputStream sbis = new StringBufferInputStream("This a test string");
  +        String inputString = "This a test string";
  +        ByteArrayInputStream bais = new ByteArrayInputStream(inputString.getBytes());
           StringWriter sw = new StringWriter();
           PrintWriter pw = new PrintWriter(sw);
  -        StreamPumper pumper = new StreamPumper(sbis, pw);
  +        StreamPumper pumper = new StreamPumper(bais, pw);
           pumper.run();
           pumper.flush();
           System.out.println("aaa"+sw.toString());
  
  
  

Mime
View raw message