Menu

#25 fix cases which are visible at logs files when running tests

open
nobody
None
5
2010-09-13
2010-09-02
zmicer
No

Guys, I have studied log files a little bit, and found the following:

1) check algo of gettings files and properties. Seems to be we get properties too ofthen...

2010-09-02 09:30:17,941 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPEngine from the custom properties: the custom properties file is absent
2010-09-02 09:30:17,941 DEBUG [PropertiesManagerImpl] The value for the key [IJPEngine] was found using the default properties.
2010-09-02 09:30:18,066 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPEngine from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,066 DEBUG [PropertiesManagerImpl] The value for the key [IJPEngine] was found using the default properties.
2010-09-02 09:30:18,097 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPConfigurator from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,097 DEBUG [PropertiesManagerImpl] The value for the key [IJPConfigurator] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key jpatterns.configuration.xml.use.only.custom.framework.settings.if.present from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [jpatterns.configuration.xml.use.only.custom.framework.settings.if.present] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key jpatterns.configuration.props.use.only.custom.if.present from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [jpatterns.configuration.props.use.only.custom.if.present] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key jpatterns.configuration.xml.overriding.depth from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [jpatterns.configuration.xml.overriding.depth] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPatternsConfigBeansBuilder from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [IJPatternsConfigBeansBuilder] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key jpatterns.configuration.xml.custom.overrides.not.depending.on.priorities from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [jpatterns.configuration.xml.custom.overrides.not.depending.on.priorities] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key jpatterns.configuration.xml.use.only.custom.consumer.settings.if.present from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [jpatterns.configuration.xml.use.only.custom.consumer.settings.if.present] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IPropertiesManager from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [IPropertiesManager] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPEngine from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [IJPEngine] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPFactory from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [IJPFactory] was found using the default properties.
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] Trying to obtain the bundle with the key IJPConfigurator from the custom properties: the custom properties file is absent
2010-09-02 09:30:18,207 DEBUG [PropertiesManagerImpl] The value for the key [IJPConfigurator] was found using the default properties.

2) difference under running tests under eclipse and maven

2010-09-02 09:29:56,847 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\test-classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:00,347 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:02,097 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/323/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:02,097 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/324/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:02,129 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\test-classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:05,629 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:07,363 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/323/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:07,363 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/324/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:07,379 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\test-classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:10,879 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:12,629 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/323/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:12,629 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/324/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:12,644 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\test-classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:16,129 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [H:\projects\jpatterns\dev\trunk\jpatterns\target\classes] and pattern [^.*testdata.?$]
2010-09-02 09:30:17,847 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/323/1/.cp/] and pattern [^.*testdata.?$]
2010-09-02 09:30:17,847 DEBUG [OBTAIN_RESOURCES] [FileUtils] Start finding the folders using string dir [/E:/program_files/eclipse_helios_3.6/configuration/org.eclipse.osgi/bundles/324/1/.cp/] and pattern [^.*testdata.?$]

3) when searching for custom properties the following is visible at logs:
2010-09-02 09:30:34,535 DEBUG [JPConfiguratorImpl] Please be noticed the JVM param based value for the custom consumer XML is used. This value is : H:\projects\jpatterns\dev\trunk\jpatterns\target\test-classes\testdata\JPCommandImplTest\nullnot_existed
2010-09-02 09:30:34,535 DEBUG [OBTAIN_RESOURCES] [FileUtils] Searching for the files using pattern [.*jpatterns.*(?<!^jpatterns_framework)(?<!^jpatterns_framework_custom)\.xml] in the following classpathes dirs

use JPCommandImplTest\ to reproduce

4) is it possible to choose loader properly without too much checking?
2010-09-02 09:45:29,551 DEBUG [OBTAIN_RESOURCES] [ResourceUtils] Trying to obtain resource [target/test-classes/testdata\00_common_props_for_tests\jpatterns.properties] using classloaders.
2010-09-02 09:45:29,551 DEBUG [OBTAIN_RESOURCES] [ResourceUtils] Can not obtain resource [target/test-classes/testdata\00_common_props_for_tests\jpatterns.properties] using classloaders.
2010-09-02 09:45:29,551 DEBUG [OBTAIN_RESOURCES] [FileUtils] Trying to obtain resource [target/test-classes/testdata\00_common_props_for_tests\jpatterns.properties] using File class facility. Name of file [target/test-classes/testdata\00_common_props_for_tests\jpatterns.properties]
2010-09-02 09:45:29,551 DEBUG [OBTAIN_RESOURCES] [FileUtils] The ResourceBundle with the name [target/test-classes/testdata\00_common_props_for_tests\jpatterns.properties] was obtained via the FileInputStream (name is anot a base name but file name)
2010-09-02 09:45:29,566 DEBUG [OBTAIN_RESOURCES] [ResourceUtils] Trying to obtain resource [target/test-classes/testdata\PropertiesManagerImplTest\allPropertiesCase\jpatterns_custom.properties] using classloaders.
2010-09-02 09:45:29,566 DEBUG [OBTAIN_RESOURCES] [ResourceUtils] Can not obtain resource [target/test-classes/testdata\PropertiesManagerImplTest\allPropertiesCase\jpatterns_custom.properties] using classloaders.
2010-09-02 09:45:29,566 DEBUG [OBTAIN_RESOURCES] [FileUtils] Trying to obtain resource [target/test-classes/testdata\PropertiesManagerImplTest\allPropertiesCase\jpatterns_custom.properties] using File class facility. Name of file [target/test-classes/testdata\PropertiesManagerImplTest\allPropertiesCase\jpatterns_custom.properties]
2010-09-02 09:45:29,566 DEBUG [OBTAIN_RESOURCES] [FileUtils] The ResourceBundle with the name [target/test-classes/testdata\PropertiesManagerImplTest\allPropertiesCase\jpatterns_custom.properties] was obtained via the FileInputStream (name is anot a base name but file name)

Thanks.

Discussion

  • zmicer

    zmicer - 2010-09-13
    • labels: 995466 -->
    • milestone: 1215320 -->
     
  • zmicer

    zmicer - 2010-09-13

    Please provide here a plan you are going to follow, using steps like:
    1) do smth., 1 h.
    2) do smth. 1 h
    3 do smth. 2 h

    Thanks

     

Log in to post a comment.