public Requirement basicGetMaster() {
// The Requirement is the supplier of the Copy link between the master
// Requirement and
// current
// This should return the TestCase verifying current Requirement
Requirement master = null;
Copy currentCopy = null;
if(getBase_Class() != null) {
Iterator<Dependency> itDep = getBase_Class().getClientDependencies().iterator();
// Find Copy link
while(itDep.hasNext()) {
Dependency currentDep = itDep.next();
currentCopy = UMLUtil.getStereotypeApplication(currentDep, Copy.class);
if(currentCopy != null) {
EList<NamedElement> suppliers = currentCopy.getBase_Abstraction().getSuppliers();
Iterator<NamedElement> it = suppliers.iterator();
while(it.hasNext() && (master == null)) {
Requirement currentRequirement = UMLUtil.getStereotypeApplication(it.next(), Requirement.class);
if(currentRequirement != null) {
master = currentRequirement;
}
}
}