de.oio.bugkilla.protocol
Class Scenario

java.lang.Object
  |
  +--de.oio.bugkilla.protocol.TestSpecification
        |
        +--de.oio.bugkilla.protocol.ComplexTestSpecification
              |
              +--de.oio.bugkilla.protocol.Scenario
All Implemented Interfaces:
java.io.Serializable

public class Scenario
extends ComplexTestSpecification
implements java.io.Serializable

Represent one Scenario (child of TestSeries) with one or more TestSequence(s)

Author:
aspall, cdedek
See Also:
TestSeries, TestSequence, Serialized Form

Constructor Summary
Scenario()
          Default construtor
 
Method Summary
 boolean add(TestSequence sequence)
          Returns the number of TestSequence elements in this scenario.
 boolean contains(TestSequence sequence)
          Returns true if this scenario contains the specified TestSequence element.
 java.lang.String getDescription()
          Returns the description.
 java.lang.String getQualifiedName()
          Returns the qualifiedName.
 TestSequence next()
          Returns the next TestSequence element in the iteration.
 boolean remove(TestSequence sequence)
          Removes the first occurrence of the specified TestStep element in this sequence.
 void setDescription(java.lang.String description)
          Sets the description.
 void setQualifiedName(java.lang.String qualifiedName)
          Sets the qualifiedName.
 
Methods inherited from class de.oio.bugkilla.protocol.ComplexTestSpecification
beforeFirst, clear, getElements, hasNext, isEmpty, size
 
Methods inherited from class de.oio.bugkilla.protocol.TestSpecification
getID, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scenario

public Scenario()
Default construtor

Method Detail

add

public boolean add(TestSequence sequence)
Returns the number of TestSequence elements in this scenario.

Parameters:
sequence - number of TestSequence elements in this scenario
Returns:
true, if the adding does not failed

contains

public boolean contains(TestSequence sequence)
Returns true if this scenario contains the specified TestSequence element.

Parameters:
sequence - - TestSequence element whose presence in this scenario is to be tested.
Returns:
true if this scenario contains the specified TestSequence element

remove

public boolean remove(TestSequence sequence)
Removes the first occurrence of the specified TestStep element in this sequence.

Parameters:
sequence - TestStep element to be removed from this sequence, if present.
Returns:
true if the sequence contained the specified TestStep element.
See Also:
Vector.remove(Object)

next

public TestSequence next()
Returns the next TestSequence element in the iteration.

Returns:
the next TestSequence element in the iteration it is not possible to invoke this method because there will be no iterator instance.

getDescription

public java.lang.String getDescription()
Returns the description.

Returns:
String

getQualifiedName

public java.lang.String getQualifiedName()
Returns the qualifiedName.

Returns:
String

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description to set

setQualifiedName

public void setQualifiedName(java.lang.String qualifiedName)
Sets the qualifiedName.

Parameters:
qualifiedName - The qualifiedName to set


Copyright © Orientation in Objects GmbH. All Rights Reserved.