You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2017/07/16 13:36:08 UTC

[Bug 61308] New: Refactoring of JMeterUtils

https://bz.apache.org/bugzilla/show_bug.cgi?id=61308

            Bug ID: 61308
           Summary: Refactoring of JMeterUtils
           Product: JMeter
           Version: 3.0
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: lemesmachado@gmail.com
  Target Milestone: ---

Hello everyone.
I was analyzing the modularization of some classes, and I identified that the
class JMeterUtils has an opportunity for cohesion improvement. 
The class SaveService was in the same situation and the problem was solved as
follows: The OldSaveService class was created, and several get() and set()
methods that were used only to configure the class parameters were moved from
SaveService to OldSaveService. 
The new class was then accessed through an instance variable in SaveService.
This strategy has cleaned and improved SaveService cohesion.
With this in mind, I would recommend creating a new class: JMeterUtilsConfig ,
and moving the following methods:

getLocalHostDetails
getParsedLabel
getResStringDefault
getJMeterCopyright
getPatternCache
setLocale
getResString
getResourceFileAsText
getSearchPaths
getHashtable
getJMeterHome
getLocale
getPattern
getLocaleString
getProperty
getJMeterBinDir
getMatcher
getVisualizers
getJMeterVersion
getVector
getLocalHostIP
getXMLParser
getPropDefault
getAlias
setProperty
getControllers
getHiDPIScaleFactor
getHiDPIMode
getTestSamples
getImage
setJMeterHome
getJMeterProperties
getLocalHostName
getLocalHostFullName
getRandomInt
getTimers
getProperties

from the JMeterUtils.
Those parameters accessed by an instance variable in the JMeterUtils.
Moreover, the orthogonality is the design would be enhanced.

What do you think about that?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 61308] Refactoring of JMeterUtils

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61308

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |RESOLVED
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|---                         |WONTFIX

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Thanks for proposal, but approach seems to theorical for me and we have to make
some choices regarding our time.
Unless you propose a PR and impact does not break all plugins , I doubt we will
move on this.
Closing as WONTFIX.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.