Ignore:
Timestamp:
10/03/11 23:06:06 (13 years ago)
Author:
sherbold
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/assertions/FileEqualsReplay.java

    r217 r229  
    66/** 
    77 * <p> 
    8  * This class defines the fileEquals assertion type. This type does have two 
    9  * parameters, actualFile and expectedFile. 
     8 * This class defines the replay for file equals assertions. 
    109 * </p> 
    1110 *  
    12  * @author jeffrey.hall 
    13  * @version 1.0 
    14  *  
     11 * @author Jeffrey Hall, Steffen Herbold 
     12 * @version 2.0 
    1513 */ 
    1614public class FileEqualsReplay implements IReplayable { 
     
    2725 
    2826        /** 
     27         * <p> 
    2928         * Id for object serialization. 
     29         * </p> 
    3030         */ 
    3131        private static final long serialVersionUID = 1L; 
    3232 
    3333        /** 
     34         * <p> 
     35         * Constructor. Creates a new FileEqualsReplay. 
     36         * </p> 
    3437         *  
     38         * @param expectedFile 
     39         *            name and path of the expected file 
    3540         * @param actualFile 
    36          *            The file that should be equal to expectedFile. 
     41         *            name and path of the actual file 
    3742         */ 
    38         public void setActualFile(String actualFile) { 
     43        public FileEqualsReplay(String expectedFile, String actualFile) { 
     44                this.expectedFile = expectedFile; 
    3945                this.actualFile = actualFile; 
    4046        } 
    4147 
    42         /** 
    43          * @param exptectedFile 
    44          *            The file that is used as the reference. 
    45          */ 
    46         public void setExpectedFile(String expectedFile) { 
    47                 this.expectedFile = expectedFile; 
    48         } 
    49  
    50         /** 
    51          * Returns the string that has to be written to the replay file. 
     48        /* 
     49         * (non-Javadoc) 
     50         *  
     51         * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() 
    5252         */ 
    5353        public String getReplay() { 
     
    6464        } 
    6565 
    66         /** 
    67          * No target used by fileEquals. 
     66        /* 
     67         * (non-Javadoc) 
     68         *  
     69         * @see de.ugoe.cs.eventbench.data.IReplayable#getTarget() 
    6870         */ 
     71        @Override 
    6972        public String getTarget() { 
    7073                return "targetNotUsed"; 
Note: See TracChangeset for help on using the changeset viewer.