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/TextEqualsReplay.java

    r218 r229  
    66/** 
    77 * <p> 
    8  * This class defines the textEquals assertion type. This type does have two 
    9  * parameters, expectedValue and target. 
     8 * This class defines the replay for a textEquals assertion. 
    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 TextEqualsReplay implements IReplayable { 
    1715 
    1816        /** 
    19          * The reference value which is compared to the targets text. 
     17         * <p> 
     18         * Reference value which is compared to the targets text. 
     19         * </p> 
    2020         */ 
    21         private String expectedValue = null; 
     21        private String expectedValue; 
    2222 
    2323        /** 
    24          * The window which text is compared to expectedValue. 
     24         * <p> 
     25         * Target to which the text is compared. 
     26         * </p> 
    2527         */ 
    26         private String target = null; 
     28        private String target; 
    2729 
    2830        /** 
     31         * <p> 
    2932         * Id for object serialization. 
     33         * </p> 
    3034         */ 
    3135        private static final long serialVersionUID = 1L; 
    3236 
    33         /** 
    34          * @param expectedValue 
    35          *            The reference value which is compared to the targets text. 
    36          */ 
    37         public void setExpectedValue(String expectedValue) { 
     37        public TextEqualsReplay(String expectedValue, String target) { 
    3838                this.expectedValue = expectedValue; 
    39         } 
    40  
    41         /** 
    42          * @param target 
    43          *            The window which text is compared to expectedValue. 
    44          */ 
    45         public void setTarget(String target) { 
    4639                this.target = target; 
    4740        } 
    4841 
    49         /** 
    50          * Returns the string that has to be written to the replay file. 
     42        /* 
     43         * (non-Javadoc) 
     44         *  
     45         * @see de.ugoe.cs.eventbench.data.IReplayable#getReplay() 
    5146         */ 
     47        @Override 
    5248        public String getReplay() { 
    5349 
     
    6965        } 
    7066 
    71         /** 
    72          * Returns the target window. 
     67        /* 
     68         * (non-Javadoc) 
     69         *  
     70         * @see de.ugoe.cs.eventbench.data.IReplayable#getTarget() 
    7371         */ 
     72        @Override 
    7473        public String getTarget() { 
    7574                return target; 
Note: See TracChangeset for help on using the changeset viewer.