Coverage Report - org.apache.maven.scm.command.status.StatusScmResult
 
Classes in this File Line Coverage Branch Coverage Complexity
StatusScmResult
0 %
0/14
0 %
0/4
2
 
 1  
 package org.apache.maven.scm.command.status;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  * http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.maven.scm.ScmFile;
 23  
 import org.apache.maven.scm.ScmResult;
 24  
 
 25  
 import java.util.Collections;
 26  
 import java.util.List;
 27  
 
 28  
 /**
 29  
  * @author <a href="mailto:brett@apache.org">Brett Porter</a>
 30  
  * @version $Id: StatusScmResult.java 1054126 2010-12-31 15:18:11Z olamy $
 31  
  */
 32  
 public class StatusScmResult
 33  
     extends ScmResult
 34  
 {
 35  
     private static final long serialVersionUID = 7152442589455369403L;
 36  
     
 37  
     private List<ScmFile> changedFiles;
 38  
 
 39  
     public StatusScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
 40  
     {
 41  0
         super( commandLine, providerMessage, commandOutput, success );
 42  
 
 43  0
         this.changedFiles = Collections.emptyList();
 44  0
     }
 45  
 
 46  
     public StatusScmResult( String commandLine, List<ScmFile> changedFiles )
 47  
     {
 48  0
         super( commandLine, null, null, true );
 49  
 
 50  0
         if ( changedFiles == null )
 51  
         {
 52  0
             throw new NullPointerException( "changedFiles can't be null." );
 53  
         }
 54  
 
 55  0
         this.changedFiles = changedFiles;
 56  0
     }
 57  
 
 58  
     public StatusScmResult( List<ScmFile> changedFiles, ScmResult result )
 59  
     {
 60  0
         super( result );
 61  
 
 62  0
         if ( changedFiles == null )
 63  
         {
 64  0
             throw new NullPointerException( "changedFiles can't be null." );
 65  
         }
 66  
 
 67  0
         this.changedFiles = changedFiles;
 68  0
     }
 69  
 
 70  
     public List<ScmFile> getChangedFiles()
 71  
     {
 72  0
         return changedFiles;
 73  
     }
 74  
 }