Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

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

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    7372     * <li>minLength must be less than or equal to maxLength 
    7473     * </ul> 
    75      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     74     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    7675     * </p> 
    7776     *  
     
    9796        // check validity of the parameters 
    9897        if (numSequences < 1) { 
    99             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     98            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    10099                numSequences); 
    101100        } 
    102101        if (maxLength < 1) { 
    103             throw new InvalidParameterException( 
     102            throw new IllegalArgumentException( 
    104103                                                "maximal allowed length of test cases must be at least 1 but is " + 
    105104                                                    maxLength); 
    106105        } 
    107106        if (minLength > maxLength) { 
    108             throw new InvalidParameterException( 
     107            throw new IllegalArgumentException( 
    109108                                                "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 
    110109                                                    minLength + " ; max length: " + maxLength + ")"); 
     
    128127    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    129128        if (model == null) { 
    130             throw new InvalidParameterException("model must not be null!"); 
     129            throw new IllegalArgumentException("model must not be null!"); 
    131130        } 
    132131 
Note: See TracChangeset for help on using the changeset viewer.