-
Notifications
You must be signed in to change notification settings - Fork 13
wildfly‐discovery test plan
Cheng Fang edited this page Jul 25, 2023
·
1 revision
Some classes in wildfly-discovery project are relatively self-contained, and form the basic building blocks of discovery tasks.
This section outlines the plans for verifying these component classes. These classes are under the package org.wildfly.discovery
,
and are referenced with their simple class names.
Generally the following types of tests should be written for each class:
- basic contract of overriding java object methods:
- equals
- equals(self)
- equals(other)
- other.equals(this)
- equals(null)
- equals(clone)
- equals(otherType)
- hashcode
- compare to clone.hashcode()
- toString
- at least no exception
- compare to an expected output
- clone, if cloneable
- equals
- builder and factory methods
- inherited public methods
- declared public methods
- important non-public methods
-
AttributeValue
and its childrenBooleanAttributeValue
NumericAttributeValue
StringAttributeValue
OpaqueAttributeValue
-
FilterSpec
and its childrenGreaterEqualFilterSpec
LessEqualFilterSpec
AnyFilterSpec
AllFilterSpec
NotFilterSpec
SubstringFilterSpec
EqualsFilterSpec
HasFilterSpec
BooleanFilterSpec
- classes related to service description and registration
ServiceDesignation
ServiceURL
ServiceType
-
ServicesQueue
andBlockingQueueServicesQueue
ServiceDescription
-
ServiceRegistration
andAggregateServiceRegistration
- classes related to configuration and its parsing
-
ExternalDiscoveryConfigurator
andDiscoveryXmlParser
InvalidDiscoveryConfigurationException
-
- classes for discovery invocation
DiscoveryRequest
DiscoveryResult
- Discovery provider and registration provider classes
StaticDiscoveryProvider
MutableDiscoveryProvider
AggregateDiscoveryProvider
MutableRegistryProvider
AggregateRegistryProvider
LocalRegistryAndDiscoveryProvider
LocalRegistryAndDiscoveryProvider
Set up various discovery and registry providers, perform discovery with various filter specs, and verify that the discovery results meet expectation.
StaticDiscoveryProvider
MutableRegistryProvider
MutableDiscoveryProvider
LocalRegistryAndDiscoveryProvider
AggregateRegistryProvider
AggregateDiscoveryProvider
- various
FilterSpec
instances - various
ServiceType
instances - various
ServiceDescription
instances - various timeout values