This is an automated email from the ASF dual-hosted git repository. mattjuntunen pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
from 319b1d07 Use forEach() and stream. new e5029984 CONFIGURATION-817: upgrade to JUnit 5 new 24901b37 CONFIGURATION-817: update the last modified date when copying files in unit tests, to make tests succeed on Windows as well new 36ad0945 CONFIGURATION-817: removed assertion messages that are not based on method parameters or loop variables new 0809670d CONFIGURATION-817: replaced EasyMock with Mockito completely The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: pom.xml | 49 +- .../configuration2/BaseNonStringProperties.java | 6 +- .../configuration2/ConfigurationAssert.java | 16 +- .../configuration2/InterpolationTestHelper.java | 71 +- .../configuration2/MockInitialContextFactory.java | 149 ++- .../configuration2/NonStringTestHolder.java | 56 +- .../configuration2/SynchronizerTestImpl.java | 15 +- .../commons/configuration2/TempDirUtils.java | 80 ++ .../configuration2/TestAbstractConfiguration.java | 83 +- .../TestAbstractConfigurationBasicFeatures.java | 231 ++-- .../TestAbstractConfigurationSynchronization.java | 68 +- .../TestAbstractHierarchicalConfiguration.java | 233 ++-- .../configuration2/TestBaseConfiguration.java | 337 +++-- .../TestBaseConfigurationXMLReader.java | 35 +- ...seHierarchicalConfigurationSynchronization.java | 55 +- .../configuration2/TestBaseNullConfiguration.java | 184 ++- .../configuration2/TestCatalogResolver.java | 34 +- .../configuration2/TestCombinedConfiguration.java | 253 ++-- .../configuration2/TestCompositeConfiguration.java | 207 ++- ...tCompositeConfigurationNonStringProperties.java | 4 +- .../configuration2/TestConfigurationConverter.java | 50 +- .../configuration2/TestConfigurationLookup.java | 28 +- .../configuration2/TestConfigurationMap.java | 22 +- .../configuration2/TestConfigurationSet.java | 22 +- .../configuration2/TestConfigurationUtils.java | 159 ++- .../configuration2/TestDataConfiguration.java | 1343 +++++++------------- .../configuration2/TestDatabaseConfiguration.java | 163 +-- .../TestDefaultImmutableConfiguration.java | 30 +- .../TestDynamicCombinedConfiguration.java | 66 +- .../TestEnvironmentConfiguration.java | 37 +- .../commons/configuration2/TestEqualBehavior.java | 39 +- .../commons/configuration2/TestEqualsProperty.java | 8 +- .../TestHierarchicalConfiguration.java | 137 +- .../TestHierarchicalConfigurationXMLReader.java | 20 +- .../TestHierarchicalXMLConfiguration.java | 62 +- .../configuration2/TestINIConfiguration.java | 216 ++-- .../configuration2/TestImmutableConfiguration.java | 68 +- .../configuration2/TestJNDIConfiguration.java | 69 +- .../configuration2/TestJNDIEnvironmentValues.java | 39 +- .../configuration2/TestJSONConfiguration.java | 26 +- .../configuration2/TestMapConfiguration.java | 28 +- .../configuration2/TestNonStringProperties.java | 4 +- .../TestNullCompositeConfiguration.java | 77 +- .../TestNullJNDIEnvironmentValues.java | 36 +- .../TestPatternSubtreeConfiguration.java | 26 +- .../TestPropertiesConfiguration.java | 285 ++--- .../TestPropertiesConfigurationLayout.java | 186 ++- .../configuration2/TestPropertiesSequence.java | 26 +- .../TestStrictConfigurationComparator.java | 18 +- .../configuration2/TestSubnodeConfiguration.java | 130 +- .../configuration2/TestSubsetConfiguration.java | 103 +- .../configuration2/TestSystemConfiguration.java | 28 +- .../configuration2/TestThreesomeConfiguration.java | 12 +- .../configuration2/TestXMLConfiguration.java | 348 +++-- .../configuration2/TestXMLConfiguration_605.java | 12 +- .../configuration2/TestXMLDocumentHelper.java | 105 +- .../configuration2/TestXMLListHandling.java | 35 +- .../TestXMLPropertiesConfiguration.java | 65 +- .../configuration2/TestYAMLConfiguration.java | 60 +- .../configuration2/beanutils/TestBeanHelper.java | 134 +- .../beanutils/TestCombinedBeanDeclaration.java | 189 +-- .../beanutils/TestConfigurationDynaBean.java | 239 ++-- .../beanutils/TestConstructorArg.java | 32 +- .../beanutils/TestDefaultBeanFactory.java | 78 +- .../beanutils/TestXMLBeanDeclaration.java | 94 +- .../builder/BuilderEventListenerImpl.java | 12 +- .../builder/TestAutoSaveListener.java | 68 +- .../builder/TestBasicBuilderParameters.java | 261 ++-- .../builder/TestBasicConfigurationBuilder.java | 144 ++- .../TestBasicConfigurationBuilderEvents.java | 44 +- .../TestBuilderConfigurationWrapperFactory.java | 69 +- .../builder/TestCopyObjectDefaultHandler.java | 25 +- .../builder/TestDatabaseBuilderParametersImpl.java | 47 +- .../builder/TestDefaultParametersManager.java | 48 +- .../TestDefaultReloadingDetectorFactory.java | 18 +- .../builder/TestEventListenerParameters.java | 27 +- .../builder/TestFileBasedBuilderParameters.java | 150 ++- .../builder/TestFileBasedConfigurationBuilder.java | 221 ++-- .../TestHierarchicalBuilderParametersImpl.java | 31 +- .../builder/TestJndiBuilderParametersImpl.java | 32 +- .../TestPropertiesBuilderParametersImpl.java | 65 +- .../TestReloadingBuilderSupportListener.java | 35 +- ...TestReloadingFileBasedConfigurationBuilder.java | 99 +- .../builder/TestXMLBuilderParametersImpl.java | 73 +- .../AbstractMultiFileConfigurationBuilderTest.java | 4 +- .../TestBaseConfigurationBuilderProvider.java | 47 +- .../TestCombinedBuilderParametersImpl.java | 188 +-- .../combined/TestCombinedConfigurationBuilder.java | 251 ++-- .../TestCombinedConfigurationBuilderVFS.java | 6 +- .../combined/TestConfigurationDeclaration.java | 45 +- ...tFileExtensionConfigurationBuilderProvider.java | 47 +- .../TestMultiFileBuilderParametersImpl.java | 54 +- .../TestMultiFileConfigurationBuilder.java | 101 +- .../builder/combined/TestMultiWrapDynaBean.java | 53 +- .../TestReloadingCombinedConfigurationBuilder.java | 30 +- ...adingCombinedConfigurationBuilderFileBased.java | 48 +- ...TestReloadingMultiFileConfigurationBuilder.java | 78 +- .../builder/fluent/TestConfigurations.java | 44 +- .../builder/fluent/TestParameters.java | 144 ++- .../convert/TestDefaultConversionHandler.java | 80 +- .../convert/TestDefaultListDelimiterHandler.java | 43 +- .../convert/TestDisabledListDelimiterHandler.java | 76 +- .../convert/TestPropertyConverter.java | 83 +- .../event/AbstractEventListenerTestImpl.java | 20 +- .../event/AbstractTestConfigurationEvents.java | 6 +- .../event/ErrorListenerTestImpl.java | 8 +- .../event/EventListenerTestImpl.java | 8 +- .../event/TestConfigurationEventTypes.java | 48 +- .../event/TestDatabaseConfigurationEvents.java | 8 +- .../commons/configuration2/event/TestEvent.java | 15 +- .../event/TestEventListenerList.java | 128 +- .../configuration2/event/TestEventSource.java | 95 +- .../configuration2/event/TestEventType.java | 10 +- .../event/TestHierarchicalConfigurationEvents.java | 19 +- .../interpol/TestConfigurationInterpolator.java | 284 +++-- .../interpol/TestConstantLookup.java | 30 +- .../configuration2/interpol/TestDummyLookup.java | 8 +- .../interpol/TestEnvironmentLookup.java | 16 +- .../configuration2/interpol/TestExprLookup.java | 26 +- .../interpol/TestInterpolatorSpecification.java | 93 +- .../interpol/TestSystemPropertiesLookup.java | 14 +- .../io/TestAbsoluteNameLocationStrategy.java | 23 +- .../io/TestBasePathLocationStrategy.java | 21 +- .../io/TestClasspathLocationStrategy.java | 17 +- .../io/TestCombinedLocationStrategy.java | 93 +- .../configuration2/io/TestConfigurationLogger.java | 121 +- .../configuration2/io/TestDefaultFileSystem.java | 22 +- .../commons/configuration2/io/TestFileHandler.java | 459 ++++--- .../commons/configuration2/io/TestFileLocator.java | 55 +- .../configuration2/io/TestFileLocatorUtils.java | 185 +-- .../io/TestFileSystemLocationStrategy.java | 26 +- .../io/TestHomeDirectoryLocationStrategy.java | 56 +- .../io/TestProvidedURLLocationStrategy.java | 22 +- .../plist/AbstractTestPListEvents.java | 2 +- .../plist/TestPropertyListConfiguration.java | 208 ++- .../plist/TestPropertyListParser.java | 35 +- .../plist/TestXMLPropertyListConfiguration.java | 186 ++- .../reloading/TestCombinedReloadingController.java | 101 +- .../TestFileHandlerReloadingDetector.java | 112 +- .../reloading/TestManagedReloadingDetector.java | 18 +- .../reloading/TestPeriodicReloadingTrigger.java | 111 +- .../reloading/TestReloadingController.java | 119 +- .../TestVFSFileHandlerReloadingDetector.java | 62 +- .../TestConfigurationPropertiesFactoryBean.java | 40 +- .../spring/TestConfigurationPropertySource.java | 14 +- .../sync/TestReadWriteSynchronizer.java | 28 +- .../configuration2/tree/AbstractCombinerTest.java | 14 +- .../tree/AbstractImmutableNodeHandlerTest.java | 88 +- .../configuration2/tree/NodeStructureHelper.java | 39 +- .../tree/TestDefaultConfigurationKey.java | 257 ++-- .../tree/TestDefaultExpressionEngine.java | 189 ++- .../tree/TestDefaultExpressionEngineSymbols.java | 30 +- .../configuration2/tree/TestImmutableNode.java | 99 +- .../configuration2/tree/TestInMemoryNodeModel.java | 315 +++-- .../tree/TestInMemoryNodeModelReferences.java | 62 +- .../tree/TestInMemoryNodeModelTrackedNodes.java | 310 +++-- .../configuration2/tree/TestMergeCombiner.java | 72 +- .../configuration2/tree/TestNodeAddData.java | 27 +- .../configuration2/tree/TestNodeNameMatchers.java | 28 +- .../configuration2/tree/TestNodeSelector.java | 45 +- .../configuration2/tree/TestNodeTreeWalker.java | 33 +- .../configuration2/tree/TestNodeUpdateData.java | 42 +- .../configuration2/tree/TestOverrideCombiner.java | 70 +- .../configuration2/tree/TestQueryResult.java | 26 +- .../tree/TestTrackedNodeHandler.java | 32 +- .../configuration2/tree/TestTrackedNodeModel.java | 126 +- .../configuration2/tree/TestUnionCombiner.java | 50 +- .../tree/xpath/AbstractXPathTest.java | 8 +- .../xpath/TestConfigurationAttributePointer.java | 57 +- .../xpath/TestConfigurationIteratorAttributes.java | 34 +- .../TestConfigurationNodeIteratorChildren.java | 58 +- .../tree/xpath/TestConfigurationNodePointer.java | 41 +- .../xpath/TestConfigurationNodePointerFactory.java | 46 +- .../tree/xpath/TestXPathContextFactory.java | 16 +- .../tree/xpath/TestXPathExpressionEngine.java | 126 +- .../xpath/TestXPathExpressionEngineInConfig.java | 26 +- .../web/TestAppletConfiguration.java | 22 +- .../web/TestServletConfiguration.java | 50 +- .../web/TestServletContextConfiguration.java | 59 +- .../web/TestServletFilterConfiguration.java | 12 +- .../web/TestServletRequestConfiguration.java | 61 +- 181 files changed, 7549 insertions(+), 8004 deletions(-) create mode 100644 src/test/java/org/apache/commons/configuration2/TempDirUtils.java