DiscoveryLocatorManagement Interface Requirements

 

ID

DiscoveryLocatorManagement Interface Requirement

Section

Comments

  1.  

The methods that modify the managed set of locators each take a single input parameter: an array of locators, none of whose elements may be null.

2.5.1

IF Tests:

 

  1.  

Invoking any of these methods with an input array that contains duplicate locators (as determined by LookupLocator.equals) is equivalent to performing the invocation with the duplicates removed from the array.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The getLocators method returns an array containing the set of LookupLocator objects in the managed set of locators. The returned set will include both the set of LookupLocator objects corresponding to lookup services that have already been discovered as well as the set of those that have not yet been discovered.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The getLocators … If the managed set is empty, this method will return the empty array.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The getLocators … This method takes no arguments as input, and will return a new array upon each invocation.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The addLocators method adds a set of locators to the managed set.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The addLocators … This method throws an UnsupportedOperationException if there is no managed set of locators to augment.

"

IF Tests: DLMIF

 

  1.  

The addLocators …  If null is input to addLocators, a NullPointerException will be thrown.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The addLocators … If the empty array is input, the managed set of locators will not change.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The setLocators method replaces all of the locators in the managed set with LookupLocator objects from a new set.

"

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The setLocators   If null is input to setLocators, a NullPointerException will be thrown.

 

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The setLocators … If the empty array is input, locator discovery will cease.

 

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The removeLocators method deletes a set of locators from the managed set.

 

IF Tests:

Func. Tests: DLMAR

  1.  

The removeLocators … This method throws an UnsupportedOperationException if there is no managed set of locators from which to remove elements.

 

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The removeLocators … If null is input to removeLocators, a NullPointerException will be thrown.

 

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

The removeLocators … If the empty array is input, the managed set of locators will not change.

 

IF Tests: DLMIF

Func. Tests: DLMAR

  1.  

Any already-discovered lookup service corresponding to a locator that is removed from the managed set by either setLocators or removeLocators will be discarded and will not be eligible for discovery; but only if it is not currently eligible for discovery through other means (such as group discovery).

 

 

Func. Tests: DLMAR