Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
Location:
trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions/FileEqualsReplay.java

    r655 r766  
    11package de.ugoe.cs.quest.assertions; 
    2  
    3 import java.security.InvalidParameterException; 
    42 
    53import de.ugoe.cs.quest.IReplayDecorator; 
     
    4745     * @param actualFile 
    4846     *            name and path of the actual file 
    49      * @throws InvalidParameterException 
     47     * @throws IllegalArgumentException 
    5048     *             thrown if expectedFile or actualFile are null 
    5149     */ 
    5250    public FileEqualsReplay(String expectedFile, String actualFile) { 
    5351        if (expectedFile == null) { 
    54             throw new InvalidParameterException("expected file must not be null"); 
     52            throw new IllegalArgumentException("expected file must not be null"); 
    5553        } 
    5654        if (actualFile == null) { 
    57             throw new InvalidParameterException("actual file must not be null"); 
     55            throw new IllegalArgumentException("actual file must not be null"); 
    5856        } 
    5957        this.expectedFile = expectedFile; 
  • trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions/TextEqualsReplay.java

    r655 r766  
    11package de.ugoe.cs.quest.assertions; 
    2  
    3 import java.security.InvalidParameterException; 
    42 
    53import de.ugoe.cs.quest.IReplayDecorator; 
     
    4745     *            string description of the target whose string value is compared to the expected 
    4846     *            value 
    49      * @throws InvalidParameterException 
     47     * @throws IllegalArgumentException 
    5048     *             thrown if target is null 
    5149     */ 
    5250    public TextEqualsReplay(String expectedValue, String target) { 
    5351        if (target == null) { 
    54             throw new InvalidParameterException("target must not be null"); 
     52            throw new IllegalArgumentException("target must not be null"); 
    5553        } 
    5654        this.expectedValue = expectedValue; 
Note: See TracChangeset for help on using the changeset viewer.