Changeset 766 for trunk/quest-core-assertions/src/main
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- 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 1 1 package de.ugoe.cs.quest.assertions; 2 3 import java.security.InvalidParameterException;4 2 5 3 import de.ugoe.cs.quest.IReplayDecorator; … … 47 45 * @param actualFile 48 46 * name and path of the actual file 49 * @throws I nvalidParameterException47 * @throws IllegalArgumentException 50 48 * thrown if expectedFile or actualFile are null 51 49 */ 52 50 public FileEqualsReplay(String expectedFile, String actualFile) { 53 51 if (expectedFile == null) { 54 throw new I nvalidParameterException("expected file must not be null");52 throw new IllegalArgumentException("expected file must not be null"); 55 53 } 56 54 if (actualFile == null) { 57 throw new I nvalidParameterException("actual file must not be null");55 throw new IllegalArgumentException("actual file must not be null"); 58 56 } 59 57 this.expectedFile = expectedFile; -
trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions/TextEqualsReplay.java
r655 r766 1 1 package de.ugoe.cs.quest.assertions; 2 3 import java.security.InvalidParameterException;4 2 5 3 import de.ugoe.cs.quest.IReplayDecorator; … … 47 45 * string description of the target whose string value is compared to the expected 48 46 * value 49 * @throws I nvalidParameterException47 * @throws IllegalArgumentException 50 48 * thrown if target is null 51 49 */ 52 50 public TextEqualsReplay(String expectedValue, String target) { 53 51 if (target == null) { 54 throw new I nvalidParameterException("target must not be null");52 throw new IllegalArgumentException("target must not be null"); 55 53 } 56 54 this.expectedValue = expectedValue;
Note: See TracChangeset
for help on using the changeset viewer.