Testy czarnoskrzynkowe klasy

0

witam!

jakie mogą być testy czarnoskrzynkowe dla klasy:

 import flanagan.complex.Complex;

public class DelayLine extends BlackBox{

    // Constructor
    public DelayLine(double delayTime, int orderPade){
        super("DelayLine");
        super.setDeadTime(delayTime, orderPade);
    }

    // Constructor
    // Default Pade approximation order = 2
    public DelayLine(double delayTime){
        super("DelayLine");
        super.fixedName="DelayLine";
        super.setDeadTime(delayTime);
    }

    // Constructor
    // for deep copy purposes
    private DelayLine(){
        super("DelayLine");
    }

    // Set the delay time
    public void setDelayTime(double delayTime){
        super.setDeadTime(delayTime);
    }

    // Set the delay time and the Pade approximation order
    public void setDelayTime(double delayTime, int orderPade){
        super.setDeadTime(delayTime, orderPade);
    }

    // Get the delay time
    public double getDelayTime(){
        return super.deadTime;
    }

    // Deep copy
    public DelayLine copy(){
        if(this==null){
            return null;
        }
        else{
            DelayLine bb = new DelayLine();
            this.copyBBvariables(bb);

            return bb;
        }
    }

    // Clone - overrides Java.Object method clone
    public Object clone(){
        return (Object)this.copy();
    }
}
0

Testy czarno skrzynkowe robi się na podstawie założeń funkcjonalnych a nie na podstawie kodu :)

1 użytkowników online, w tym zalogowanych: 0, gości: 1