-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor:sdk keploy #170
refactor:sdk keploy #170
Conversation
Signed-off-by: shivamsouravjha <shivamsouravjha@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
checkstyle
v2/src/main/java/io/keploy/Keploy.java|72 col 38| 'debug' hides a field.
v2/src/main/java/io/keploy/Keploy.java|76 col 9| Class 'RunOptions' looks like designed for extension (can be subclassed), but the method 'getPort' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RunOptions' final or making the method 'getPort' static/final/abstract/empty, or adding allowed annotation for the method.
v2/src/main/java/io/keploy/Keploy.java|76 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|80 col 9| Class 'RunOptions' looks like designed for extension (can be subclassed), but the method 'setPort' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RunOptions' final or making the method 'setPort' static/final/abstract/empty, or adding allowed annotation for the method.
v2/src/main/java/io/keploy/Keploy.java|80 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|80 col 29| Parameter port should be final.
v2/src/main/java/io/keploy/Keploy.java|80 col 33| 'port' hides a field.
v2/src/main/java/io/keploy/Keploy.java|82| Line is longer than 80 characters (found 87).
v2/src/main/java/io/keploy/Keploy.java|87 col 9| Class 'RunOptions' looks like designed for extension (can be subclassed), but the method 'getPath' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RunOptions' final or making the method 'getPath' static/final/abstract/empty, or adding allowed annotation for the method.
v2/src/main/java/io/keploy/Keploy.java|87 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|91 col 9| Class 'RunOptions' looks like designed for extension (can be subclassed), but the method 'setPath' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RunOptions' final or making the method 'setPath' static/final/abstract/empty, or adding allowed annotation for the method.
v2/src/main/java/io/keploy/Keploy.java|91 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|91 col 29| Parameter path should be final.
v2/src/main/java/io/keploy/Keploy.java|91 col 36| 'path' hides a field.
v2/src/main/java/io/keploy/Keploy.java|100 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|100 col 16| Variable 'appId' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|101 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|101 col 16| Variable 'testRunId' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|106 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|106 col 16| Variable 'appId' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|107 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|107 col 16| Variable 'testRunId' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|108 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|108 col 16| Variable 'error' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|110 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|110 col 33| Parameter appId should be final.
v2/src/main/java/io/keploy/Keploy.java|110 col 40| 'appId' hides a field.
v2/src/main/java/io/keploy/Keploy.java|110 col 47| Parameter testRunId should be final.
v2/src/main/java/io/keploy/Keploy.java|110 col 54| 'testRunId' hides a field.
v2/src/main/java/io/keploy/Keploy.java|110 col 65| Parameter error should be final.
v2/src/main/java/io/keploy/Keploy.java|110 col 72| 'error' hides a field.
v2/src/main/java/io/keploy/Keploy.java|131 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|131 col 31| Variable 'errors' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|137| Line has trailing spaces.
v2/src/main/java/io/keploy/Keploy.java|137 col 13| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|137 col 21| Variable 'runTestSet' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|138 col 13| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|138 col 28| Variable 'startHooks' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|139 col 13| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|139 col 21| Variable 'startApp' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|140 col 13| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|140 col 21| Variable 'stopHooks' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|141 col 13| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|141 col 21| Variable 'stopApp' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|158 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|159 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|160 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|161 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|162 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|165 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|165 col 50| Parameter statusStr should be final.
v2/src/main/java/io/keploy/Keploy.java|182| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|249 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|249 col 26| Name 'StopUserApplication' must match pattern '^[a-z][a-zA-Z0-9]$'.
v2/src/main/java/io/keploy/Keploy.java|249 col 46| Parameter appId should be final.
v2/src/main/java/io/keploy/Keploy.java|255| Line is longer than 80 characters (found 95).
v2/src/main/java/io/keploy/Keploy.java|267 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|267 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|273| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|282| Line is longer than 80 characters (found 87).
v2/src/main/java/io/keploy/Keploy.java|285| Line is longer than 80 characters (found 82).
v2/src/main/java/io/keploy/Keploy.java|402 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|402 col 27| Name 'RunTestSet' must match pattern '^[a-z][a-zA-Z0-9]$'.
v2/src/main/java/io/keploy/Keploy.java|402 col 38| Parameter testSetName should be final.
v2/src/main/java/io/keploy/Keploy.java|410| Line is longer than 80 characters (found 86).
v2/src/main/java/io/keploy/Keploy.java|440| Line is longer than 80 characters (found 92).
v2/src/main/java/io/keploy/Keploy.java|440 col 49| Parameter conn should be final.
v2/src/main/java/io/keploy/Keploy.java|442 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|442 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|445| Line is longer than 80 characters (found 94).
v2/src/main/java/io/keploy/Keploy.java|445 col 51| Parameter conn should be final.
v2/src/main/java/io/keploy/Keploy.java|446| Line is longer than 80 characters (found 93).
v2/src/main/java/io/keploy/Keploy.java|456| Line is longer than 80 characters (found 91).
v2/src/main/java/io/keploy/Keploy.java|456 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|456 col 53| Parameter parentPID should be final.
v2/src/main/java/io/keploy/Keploy.java|456 col 71| Parameter pids should be final.
v2/src/main/java/io/keploy/Keploy.java|459| Line is longer than 80 characters (found 83).
v2/src/main/java/io/keploy/Keploy.java|460| Line is longer than 80 characters (found 104).
v2/src/main/java/io/keploy/Keploy.java|475 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|475 col 17| Variable 'success' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|476 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|476 col 16| Variable 'error' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|478 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|478 col 33| Parameter success should be final.
v2/src/main/java/io/keploy/Keploy.java|478 col 41| 'success' hides a field.
v2/src/main/java/io/keploy/Keploy.java|478 col 50| Parameter error should be final.
v2/src/main/java/io/keploy/Keploy.java|478 col 57| 'error' hides a field.
v2/src/main/java/io/keploy/Keploy.java|484 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|484 col 33| Parameter runCmd should be final.
v2/src/main/java/io/keploy/Keploy.java|484 col 48| Parameter runOptions should be final.
v2/src/main/java/io/keploy/Keploy.java|490| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|491 col 26| '5000' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|501| Line is longer than 80 characters (found 82).
v2/src/main/java/io/keploy/Keploy.java|510| Line is longer than 80 characters (found 120).
v2/src/main/java/io/keploy/Keploy.java|513| Line is longer than 80 characters (found 91).
v2/src/main/java/io/keploy/Keploy.java|513 col 88| '10' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|517| Line is longer than 80 characters (found 95).
v2/src/main/java/io/keploy/Keploy.java|520| Line is longer than 80 characters (found 119).
v2/src/main/java/io/keploy/Keploy.java|529 col 34| '5000' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|538| Line is longer than 80 characters (found 91).
v2/src/main/java/io/keploy/Keploy.java|547| Line is longer than 80 characters (found 90).
v2/src/main/java/io/keploy/Keploy.java|551| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|551 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|551 col 38| Parameter runCmd should be final.
v2/src/main/java/io/keploy/Keploy.java|551 col 53| Parameter delay should be final.
v2/src/main/java/io/keploy/Keploy.java|551 col 64| Parameter debug should be final.
v2/src/main/java/io/keploy/Keploy.java|551 col 79| Parameter port should be final.
v2/src/main/java/io/keploy/Keploy.java|558| Line is longer than 80 characters (found 85).
v2/src/main/java/io/keploy/Keploy.java|558 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|558 col 34| Parameter runCmd should be final.
v2/src/main/java/io/keploy/Keploy.java|558 col 49| Parameter delay should be final.
v2/src/main/java/io/keploy/Keploy.java|558 col 60| Parameter debug should be final.
v2/src/main/java/io/keploy/Keploy.java|558 col 75| Parameter port should be final.
v2/src/main/java/io/keploy/Keploy.java|560| Line is longer than 80 characters (found 119).
v2/src/main/java/io/keploy/Keploy.java|566| Line is longer than 80 characters (found 87).
v2/src/main/java/io/keploy/Keploy.java|567| Line is longer than 80 characters (found 104).
v2/src/main/java/io/keploy/Keploy.java|572| Line is longer than 80 characters (found 108).
v2/src/main/java/io/keploy/Keploy.java|580| Line is longer than 80 characters (found 87).
v2/src/main/java/io/keploy/Keploy.java|585 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|588| Line is longer than 80 characters (found 84).
v2/src/main/java/io/keploy/Keploy.java|591| Line is longer than 80 characters (found 99).
v2/src/main/java/io/keploy/Keploy.java|603 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|603 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|612| Line is longer than 80 characters (found 90).
v2/src/main/java/io/keploy/Keploy.java|617| Line is longer than 80 characters (found 94).
v2/src/main/java/io/keploy/Keploy.java|620| Line is longer than 80 characters (found 98).
v2/src/main/java/io/keploy/Keploy.java|622| Line is longer than 80 characters (found 111).
v2/src/main/java/io/keploy/Keploy.java|626| Line is longer than 80 characters (found 95).
v2/src/main/java/io/keploy/Keploy.java|631 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|631 col 17| Variable 'success' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|632 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|632 col 16| Variable 'error' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|634 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|634 col 31| Parameter success should be final.
v2/src/main/java/io/keploy/Keploy.java|634 col 39| 'success' hides a field.
v2/src/main/java/io/keploy/Keploy.java|634 col 48| Parameter error should be final.
v2/src/main/java/io/keploy/Keploy.java|634 col 55| 'error' hides a field.
v2/src/main/java/io/keploy/Keploy.java|640 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|640 col 55| Parameter appId should be final.
v2/src/main/java/io/keploy/Keploy.java|646| Line is longer than 80 characters (found 97).
v2/src/main/java/io/keploy/Keploy.java|658 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|658 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|664| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|667| Line is longer than 80 characters (found 83).
v2/src/main/java/io/keploy/Keploy.java|673| Line is longer than 80 characters (found 115).
v2/src/main/java/io/keploy/Keploy.java|676| Line is longer than 80 characters (found 82).
v2/src/main/java/io/keploy/Keploy.java|677| Line is longer than 80 characters (found 99).
v2/src/main/java/io/keploy/Keploy.java|681| Line is longer than 80 characters (found 88).
v2/src/main/java/io/keploy/Keploy.java|681 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|681 col 33| Name 'FetchTestSetStatus' must match pattern '^[a-z][a-zA-Z0-9]$'.
v2/src/main/java/io/keploy/Keploy.java|681 col 52| Parameter testRunId should be final.
v2/src/main/java/io/keploy/Keploy.java|681 col 70| Parameter testSetId should be final.
v2/src/main/java/io/keploy/Keploy.java|689| Line is longer than 80 characters (found 139).
v2/src/main/java/io/keploy/Keploy.java|711| Line is longer than 80 characters (found 94).
v2/src/main/java/io/keploy/Keploy.java|715| Line is longer than 80 characters (found 81).
v2/src/main/java/io/keploy/Keploy.java|720| Line is longer than 80 characters (found 98).
v2/src/main/java/io/keploy/Keploy.java|720 col 50| Parameter testRunId should be final.
v2/src/main/java/io/keploy/Keploy.java|720 col 68| Parameter testSet should be final.
v2/src/main/java/io/keploy/Keploy.java|720 col 84| Parameter appId should be final.
v2/src/main/java/io/keploy/Keploy.java|722 col 14| Name 'MAX_TIMEOUT' must match pattern '^[a-z][a-zA-Z0-9]$'.
v2/src/main/java/io/keploy/Keploy.java|722 col 28| '6000000' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|728 col 30| '2000' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|743| Line is longer than 80 characters (found 98).
v2/src/main/java/io/keploy/Keploy.java|744| Line is longer than 80 characters (found 108).
v2/src/main/java/io/keploy/Keploy.java|746| Line is longer than 80 characters (found 95).
v2/src/main/java/io/keploy/Keploy.java|751| Line is longer than 80 characters (found 91).
v2/src/main/java/io/keploy/Keploy.java|755| Line is longer than 80 characters (found 97).
v2/src/main/java/io/keploy/Keploy.java|755 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|755 col 47| Parameter testRunId should be final.
v2/src/main/java/io/keploy/Keploy.java|755 col 65| Parameter testSetId should be final.
v2/src/main/java/io/keploy/Keploy.java|755 col 83| Parameter appId should be final.
v2/src/main/java/io/keploy/Keploy.java|762| Line is longer than 80 characters (found 127).
v2/src/main/java/io/keploy/Keploy.java|775 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|775 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|781| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|784| Line is longer than 80 characters (found 85).
v2/src/main/java/io/keploy/Keploy.java|788| Line is longer than 80 characters (found 107).
v2/src/main/java/io/keploy/Keploy.java|792| Line is longer than 80 characters (found 92).
v2/src/main/java/io/keploy/Keploy.java|797 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|797 col 17| Variable 'success' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|798 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|798 col 16| Variable 'error' must be private and have accessor methods.
v2/src/main/java/io/keploy/Keploy.java|800 col 9| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|800 col 32| Parameter success should be final.
v2/src/main/java/io/keploy/Keploy.java|800 col 40| 'success' hides a field.
v2/src/main/java/io/keploy/Keploy.java|800 col 49| Parameter error should be final.
v2/src/main/java/io/keploy/Keploy.java|800 col 56| 'error' hides a field.
v2/src/main/java/io/keploy/Keploy.java|806 col 43| Parameter reportPath should be final.
v2/src/main/java/io/keploy/Keploy.java|806 col 62| Parameter timeout should be final.
v2/src/main/java/io/keploy/Keploy.java|811 col 67| '1000L' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|818 col 30| '1000' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|828 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|846 col 33| '200' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|846 col 55| '300' is a magic number.
v2/src/main/java/io/keploy/Keploy.java|852| Line is longer than 80 characters (found 89).
v2/src/main/java/io/keploy/Keploy.java|855| Line is longer than 80 characters (found 83).
v2/src/main/java/io/keploy/Keploy.java|861| Line is longer than 80 characters (found 103).
v2/src/main/java/io/keploy/Keploy.java|865| Line is longer than 80 characters (found 88).
v2/src/main/java/io/keploy/Keploy.java|869| Line is longer than 80 characters (found 86).
v2/src/main/java/io/keploy/Keploy.java|869 col 43| Parameter conn should be final.
v2/src/main/java/io/keploy/Keploy.java|870| Line is longer than 80 characters (found 93).
v2/src/main/java/io/keploy/Keploy.java|880 col 5| Missing a Javadoc comment.
v2/src/main/java/io/keploy/Keploy.java|880 col 46| Parameter appId should be final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related Issue
How did you test your code changes?
Refactored the SDK as per new keploy serve command.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)Shows combined coverage of unit test case with Keploy test case
Checklist:
Sample
Screenshots (if any)