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/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update UpdateCommandTckTest.java
Date Fri, 07 Jan 2005 15:43:20 GMT
evenisse    2005/01/07 07:43:20

  Modified:    maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update
                        UpdateCommandTckTest.java
  Log:
  Add more test on executed commands
  
  Revision  Changes    Path
  1.11      +9 -1      maven-scm/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update/UpdateCommandTckTest.java
  
  Index: UpdateCommandTckTest.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update/UpdateCommandTckTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- UpdateCommandTckTest.java	3 Jan 2005 06:50:57 -0000	1.10
  +++ UpdateCommandTckTest.java	7 Jan 2005 15:43:20 -0000	1.11
  @@ -84,6 +84,10 @@
       {
           AddScmResult result = getScmManager().add( repository, new ScmFileSet( workingDirectory,
file ) );
           assertTrue( "Check result was successful, output: " + result.getCommandOutput(),
result.isSuccess() );
  +
  +        List addedFiles = result.getAddedFiles();
  +
  +        assertEquals( "Expected 1 files in the added files list " + addedFiles, 1, addedFiles.size()
);
       }
   
       private void commit( File workingDirectory, ScmRepository repository )
  @@ -91,6 +95,10 @@
       {
           CheckInScmResult result = getScmManager().checkIn( repository, new ScmFileSet(
workingDirectory ), null, "No msg" );
           assertTrue( "Check result was successful, output: " + result.getCommandOutput(),
result.isSuccess() );
  +
  +        List committedFiles = result.getCheckedInFiles();
  +
  +        assertEquals( "Expected 3 files in the committed files list " + committedFiles,
3, committedFiles.size() );
       }
   
       // ----------------------------------------------------------------------
  
  
  

Mime
View raw message