Class TagLibraryComparitor
java.lang.Object
com.sun.ts.tests.common.taglibsig.TagLibraryComparitor
Provides the ability to compare two TagLibraryDescriptor objects and return any differences found.
-
Constructor Summary
ConstructorsConstructorDescriptionTagLibraryComparitor
(ValidationConfiguration configuration) Constructs a new TagLibraryComparitor that will use the providedValidationConfiguration
to perform its comparison. -
Method Summary
Modifier and TypeMethodDescriptionString[]
compare
(TagLibraryDescriptor control, TagLibraryDescriptor underTest) Performs a comparison of twoTagLibraryDescriptor
objects using the configuredValidationConfiguration
.void
setConfiguration
(ValidationConfiguration configuration) Sets a newValidationConfiguration
to use when performing comparisons.
-
Constructor Details
-
TagLibraryComparitor
Constructs a new TagLibraryComparitor that will use the providedValidationConfiguration
to perform its comparison.- Parameters:
configuration
- - ValidationConfiguration
-
-
Method Details
-
setConfiguration
Sets a newValidationConfiguration
to use when performing comparisons.- Parameters:
configuration
- - ValidationConfiguration
-
compare
Performs a comparison of twoTagLibraryDescriptor
objects using the configuredValidationConfiguration
.- Parameters:
control
- - thecontrol
TagLibraryDescriptorunderTest
- - the TagLibraryDescriptor that we are validating for correctness- Returns:
- an empty array if no differences are found
- Throws:
IllegalStateException
- if the provided ValidationConfiguration is null, or has not be configured.
-