Test Name &
Motivation
|
Description
|
Categorization
|
Specification
Requirements
|
LookupDiscoverServiceEqualityTest
(LDSET)
|
- Start
LUS1 and LUS2
- Start
LDS1 and LDS2 that join both LUS1 & 2
- Get
reference to LDS1 (LDS1R1) from LUS1
- Get
reference to LDS1 (LDS1R2) from LUS2
- Verify
that LDS1R1.equals(LDS1R1) returns true [LDS 1]
- Verify
that LDS1R2.equals(LDS1R2) returns true
- Verify
that LDS1R1.equals(LDS1R2) returns true
- Verify
that LDS1R2.equals(LDS1R1) returns true
- Get
reference to LDS2 (LDS2R1) from LUS1
- Get
reference to LDS2 (LDS2R2) from LUS2
- Verify
that LDS2R1.equals(LDS2R1) returns true
- Verify
that LDS2R2.equals(LDS2R2) returns true
- Verify
that LDS2R1.equals(LDS2R2) returns true
- Verify
that LDS2R2.equals(LDS2R1) returns true
- Verify
that LDS1R1.equals(LDS2R1) returns false
- Verify
that LDS1R1.equals(LDS2R2) returns false
- Verify
that LDS1R2.equals(LDS2R1) returns false
- Verify
that LDS1R2.equals(LDS2R2) returns false
- Verify
that LDS2R1.equals(LDS1R1) returns false
- Verify
that LDS2R1.equals(LDS1R2) returns false
- Verify
that LDS2R2.equals(LDS1R1) returns false
- Verify
that LDS2R2.equals(LDS1R2) returns false
|
|
|
LookupDiscoverServiceInterfaceTest
(LDSIFT)
|
- Start
LUS
- Start
LDS that joins LUS
- Obtain
reference to LDS
- Pass
LDS lease to a LeaseRenewalManager (LRM)
- Call
LDS.register(null, null, REL, null, Lease.FOREVER) [LDS 2, 5, 8, 10, 12,
13, 15, 16]
- Verify
that a LookupDiscoveryServiceRegistration (LDR) object is returned [LDSR
19]
- Call
LDS.register(ARRAY, null, REL, null, Lease.FOREVER) where ARRAY contains
null entries [LDS 6]
- Verify
that an IllegalArgumentException is thrown [1]
- Call
LDS.register(ARRAY, null, REL, null, Lease.FOREVER) where ARRAY contains
duplicate entries [LDS 11]
- Verify
that an LDSR object is returned
- Call
LDS.register(null, ARRAY, REL, null, Lease.FOREVER) where ARRAY contains
null entries [LDS 10]
- Verify
that an IllegalArgumentException is thrown [1]
- Call
LDS.register( null, ARRAY, REL, null, Lease.FOREVER) where ARRAY
contains duplicate entries
- Verify
that an LDSR object is returned
- Call
LDS.register( null, null, null, null, Lease.FOREVER)
- Verify
that a NullPointerException is thrown [LDS 14]
- Call
LDS.register( null, null, REL, null, -123)
- Verify
that a IllegalArgumentException is thrown [LDS 18]
- Call
LDS.register( null, null, REL, null, Lease.ANY)
- Verify
that an LDSR object is returned
|
|
Notes:
[1] Not specified behavior
|
LookupDiscoverRegistrationEqualityTest
(LDSRET)
|
- Start
LUS
- Start
LDS1 and LDS2 to join LUS
- Get
reference to LDS1 (LDS1R1) and LDS2 (LDS2R1)
- Call
LDS1.register(null, null, REL, null, Lease.ANY) (LDSR1)
- Verify
that LDSR1.equals(LDSR1) returns true [LDS 29]
- Call
LDS1.register(null, null, REL, null, Lease.ANY) (LDSR2)
- Verify
that LDSR1.equals(LDSR2) returns false
- Verify
that LDSR2.equals(LDSR1) returns false
- Verify
that LDSR2.equals(LDSR2) returns true
- Call
LDS2.register(null, null, REL, null, Lease.ANY) (LDSR3)
- Verify
that LDSR3.equals(LDSR3) returns true
- Verify
that LDSR3.equals(LDSR1) returns false
- Verify
that LDSR3.equals(LDSR2) returns false
- Verify
that LDSR1.equals(LDSR3) returns false
- Verify
that LDSR2.equals(LDSR3) returns false
|
|
|
LookupDiscoverRegistrationLocalInterfaceTest
(LDSRLIFT)
|
- Start
LUS
- Start
LDS that joins LUS
- Get
a reference to LDS
- Call
LDS.register(null, null, REL, null, Lease.FOREVER) (LDSR) where REL is a
no-op
- Verify
that LDSR.getEventRegistration returns an EventRegistration (ER) object
[LDS 31]
- Verify
that LDSR.getLease() returns a Lease object [LDS 32]
- Verify
that lease objects from LDSR.getLease() and ER.getLease() reference the
same object [LDS 33]
|
|
|
LookupDiscoverRegistrationGroupInterfaceTest
(LDSRGIFT)
|
- Start
LUS
- Start
LDS that joins LUS
- Get
reference to LDS
- Call
LDS.register([], [], REL, null, Lease.FOREVER) (LDSR) where REL is a
no-op and [] denotes an empty array
- Verify
that LDSR.getRegistrars returns the empty set [LDS 34]
- Verify
that LDS.getGroups returns the empty set [LDS 35, 36]
- Call
setGroups(LD.NO_GROUPS) [LDS 41, 42]
- Verify
that getGroups returns the empty set
- Call
addGroups(LIST) where LIST contains duplicate entries [LDS 44, 45, 48]
- Verify
that an UnsupportedOperationException is thrown
- Call
addGroups(null)
- Verify
that a NullPointerException is thrown [LDS 49]
- Call
setGroups(LIST)
- Verify
that getGroups returns a set without duplicate entries from LIST [LDS
46]
- Call
addGroups(LIST2) where LIST2 contains duplicate entries and entries from
LIST
- Verify
that getGroups returns the proper set without duplicates
- Call
addGroups([empty]) [LDS 50]
- Verify
that getGroups returns an unmodified set
- Call
setGroups(LIST)
- Verify
that getGroups returns the appropriate set w/o duplicates [LDS 51]
- Call
setGroups(null) [LDS 43, 53]
- Verify
that getGroups returns null [LDS 37]
- Call
setGroups(LIST2)
- Verify
that getGroups returns the appropriate set w/o duplicates
- Call
removeGroups(LIST) [LDS 55]
- Verify
that the appropriate subset is returned
- Call
removeGroups([empty])
- Verify
that getGroups returns an unmodified set [LDS 58]
- Call
removeGroups(null) [LDS 57]
- Verify
that a NullPointerException is thrown
- Call
removeGroups(LIST2)
- Verify
that getGroups returns the empty set
- Call
removeGroups(LIST2)
- Verify
that an UnsupportedOperationException is thrown [LDS 56]
|
|
|