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 providedValidationConfigurationto perform its comparison. -
Method Summary
Modifier and TypeMethodDescriptionString[]compare(TagLibraryDescriptor control, TagLibraryDescriptor underTest) Performs a comparison of twoTagLibraryDescriptorobjects using the configuredValidationConfiguration.voidsetConfiguration(ValidationConfiguration configuration) Sets a newValidationConfigurationto use when performing comparisons.
-
Constructor Details
-
TagLibraryComparitor
Constructs a new TagLibraryComparitor that will use the providedValidationConfigurationto perform its comparison.- Parameters:
configuration- - ValidationConfiguration
-
-
Method Details
-
setConfiguration
Sets a newValidationConfigurationto use when performing comparisons.- Parameters:
configuration- - ValidationConfiguration
-
compare
Performs a comparison of twoTagLibraryDescriptorobjects using the configuredValidationConfiguration.- Parameters:
control- - thecontrolTagLibraryDescriptorunderTest- - 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.
-