Browse Source

#3504: [Improvement][Test] Give an example on replacing Powermock with Mockito (#11588)

* Give an example on replacing powermock with mockito

* Remove redundant comments

* Refactoring related UTs for better readability.
git-as-svn/v1/dev
Eric Gao 2 years ago committed by GitHub
parent
commit
2f25df7d08
  1. 2
      commit.ref
  2. 170
      commit.yml

2
commit.ref

@ -1 +1 @@
Subproject commit b3bbf69b2ecd44962b612e4456fe2d7d2c3530f1 Subproject commit e1b55db72ad14ac8372c495a6b1398d686f02365

170
commit.yml

@ -3,42 +3,138 @@ branches: {
} }
fileChange: fileChange:
/dolphinscheduler-task-plugin: /dolphinscheduler-task-plugin:
newFile: !uuid '0865e42186c35b81a06459d3447f86e1e3825c19' newFile: !uuid '448758d5fa505d73db14d30c4c6c1a620efe5576'
oldFile: !uuid '02664d04a2716f0507595782ebf7dfca5fe2b806' oldFile: !uuid '0865e42186c35b81a06459d3447f86e1e3825c19'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter:
newFile: !uuid '675baa76a3f8be1864fa17c10a1dabfb11f9be1b' newFile: !uuid '623a64023afa8ccf4a5904e94851fe12143a6eeb'
oldFile: !uuid '4750607452eeba7cb4ef3e633955fd5a16d00d9d' oldFile: !uuid '2f35ae9e55781e280d029d7c22ec711294ca80f7'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src:
newFile: !uuid '29465fcf6b812a175730f0c597ae6b400d07eb41' newFile: !uuid 'f7d4a233ca0b838d0890d33d656f0ebc6a0b4797'
oldFile: !uuid 'a0e5a99df534325f2ac9aa15b662eb23c22958a5' oldFile: !uuid 'f16ca8c200b448fdccf734ff65ab56af261e120e'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main:
newFile: !uuid 'b73a4ddca0a779071a58f19c4f3637daedb7964d' newFile: !uuid '58ffcafc5cb9ca8b5a05bc006220a6bde6e38b7c'
oldFile: !uuid 'a0270239ac0b41023e2c06f5c0e3ac5a143af276' oldFile: !uuid 'a26825f101e29ac36b01a9323e7fc85574c2bbdc'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java:
newFile: !uuid '571acf0d5d5e531f8109a7160a6f6bbb23bceac9' newFile: !uuid '5a07116fb65ec4af4753d131b21f9a334b5ba52d'
oldFile: !uuid '48797ce4eaec5f6ae4e1d6a63ec7c4407fe79c6e' oldFile: !uuid '8a63596dfee98020f037f2c8d5a92f5773364682'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org:
newFile: !uuid '8525c4182170c2a204e7f825460bc0332ad64f6d' newFile: !uuid 'd29a98df1527eec84db6497d4a70ce4283e955cf'
oldFile: !uuid '42b9c31d94a9d933ecf8c958a0f1c62ae5e0681f' oldFile: !uuid '4fac0245285067a0caf4d72635c927b7b0f8c13c'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache:
newFile: !uuid '5678d3947a1a9011f069e8b2724f1d16d9d00517' newFile: !uuid '6f3eacede5208df835b6ca7d041cf997a316fba0'
oldFile: !uuid '62c08529868183f99028b8d004c802e1f405ea42' oldFile: !uuid '72a3a578ffbc911801b522584e16901cddbe3ba2'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler:
newFile: !uuid 'c90c9da02f76517159bcb73c1eafaaa9a614224c' newFile: !uuid '6859f6f9f73cda0a68d122af4484546e1562f3f7'
oldFile: !uuid 'ce4565b00fedbd129ac375d124331f8c3bb61c9a' oldFile: !uuid 'b4e2a32df9d6d0c94e5fd2b16633d3912029d092'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler/plugin:
newFile: !uuid '7d70e014d34586049d0da9531406043db38e9d09' newFile: !uuid '67d6ba7af2ca773d4feb646569b6b42f6740be22'
oldFile: !uuid 'df8f0787af85fa27573770390d2f9267459ae86f' oldFile: !uuid 'd18714c1955c54bb605dd4a2c8e862a1f1a0cc89'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler/plugin/task:
newFile: !uuid 'e323c1c405381a0d0a4c0005d6408b9fb859b5a7' newFile: !uuid '4e1733ad6d95254d057ba719ffc438ace2973a70'
oldFile: !uuid '43449b36023063ca3169362c4ee6a64b8ca2b6cf' oldFile: !uuid '5c02e8354c533db4e2325db5eac44e3f431400da'
/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql: /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler/plugin/task/jupyter:
newFile: !uuid 'aa283d02b2948d86ccb595130b5c4ffbb7782e43' newFile: !uuid '6ff12e4b34c8153646238d8bcbdb55f3a1b09498'
oldFile: !uuid '46a73964b5a8dce2e9b208e09d762df8e33416bc' oldFile: !uuid '6c690aff3fd30bcaa968385670d11ebeac77d590'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java ? /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler/plugin/task/jupyter/JupyterParameters.java
: newFile: !uuid '92bf2e6e2d4d42eb33a5d88d523807b818dcb270' : newFile: !uuid 'caf28f699f55568aaa604e86480271f85a795fdc'
oldFile: !uuid '2a9672b11a5d654d38831fd2a7f570af8214bc95' oldFile: !uuid 'dd380494927baea943fe2b7a16fac3b814f51fe4'
gitCommitId: !uuid 'b3bbf69b2ecd44962b612e4456fe2d7d2c3530f1' ? /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/main/java/org/apache/dolphinscheduler/plugin/task/jupyter/JupyterTask.java
: newFile: !uuid 'a1b9ec430f34887a2d6b9060b0fb53915c44d9d6'
oldFile: !uuid 'a83f4081ff9e0d44471f58d08ebc5d5aa08a8b7e'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test:
newFile: !uuid 'f5ba87ed57abc67fd19f9a77f7fa017007112e0f'
oldFile: !uuid '1f615beb431e263cf3581c52789c29ba880feb5a'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java:
newFile: !uuid '87d573a0b06c436a8062dbe434c9403b0ffa8554'
oldFile: !uuid '9642ae21a248497e770dce80464578a521b66c10'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org:
newFile: !uuid 'f16dd6dcef84235c008c011741670cee1f278838'
oldFile: !uuid '2d313fb8822a8cd91ec2c7396984b617b3660016'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache:
newFile: !uuid '7e98fad986722c1c8c106928f4408747d6c181a2'
oldFile: !uuid '2d60606e38d6372146305bb4c71a2b69adfdb8aa'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache/dolphinscheduler:
newFile: !uuid 'b64563e23ce8321eff2b70114b43e6fca6aa8c70'
oldFile: !uuid '399ba0572a77a62cf41c975c7b5ab763f2f5e1a5'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache/dolphinscheduler/plugin:
newFile: !uuid '23faf8bedfa37217e016f5f36f1b6483446347c8'
oldFile: !uuid '089827ab80822dc8346e50fabbe51bd50883ec51'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache/dolphinscheduler/plugin/task:
newFile: !uuid '0ada26fa79a0c88aac3423bd4096bcecbaa6ea1a'
oldFile: !uuid '80b5bee067f0efa3ed34df7038f4c9ec73327b37'
/dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache/dolphinscheduler/plugin/task/jupyter:
newFile: !uuid '2ffcf58b09c499348102521e1297b9ac0d1b85ba'
oldFile: !uuid 'd83c0be1e20cb4d45e1b63141c0712a9b3e6d740'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-jupyter/src/test/java/org/apache/dolphinscheduler/plugin/task/jupyter/JupyterTaskTest.java
: newFile: !uuid '1fe03b96407f4384896b3cad89dbc109533dd087'
oldFile: !uuid '3007a4ee257c905adc87578d057746acc2e7f32e'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin:
newFile: !uuid '6f08559dd8ca0d24a2d2bd5b338dd0f46df11328'
oldFile: !uuid '53c5eea19c4bb5e7c65e9b36b0aade810f198496'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/pom.xml:
newFile: !uuid '69a5a6699465c6cfeecc4f09f8b5d0884c577c3e'
oldFile: !uuid '4ae533bcc1d6b9ddaa44da9a60207bc6d0e57bcc'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src:
newFile: !uuid '69a848ea39e4bf57f99cfe764c1d2d9e8b1449aa'
oldFile: !uuid '8a507c894fae009d6be2063737d76776dda5b075'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main:
newFile: !uuid '91f8396d721d5405605a8ce3e6963f7b23ee9ba0'
oldFile: !uuid '84e93bbb6c38950f4aa2e7c34baf6bf8d0084622'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java:
newFile: !uuid '70af2fa8593088250f19d6a5d48c4e141b92444c'
oldFile: !uuid '5e9973137154e5656982ce418352ce0d1d8a78fd'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org:
newFile: !uuid '2aaacb6ce4b69c82fabadab6bc0d2d1e683cc989'
oldFile: !uuid '5f564d84f13ba70881f528ad2e7f72a03b4973d6'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache:
newFile: !uuid '5ce7774d728d3e773cb47ca9f0585a622bd802e8'
oldFile: !uuid 'bb84a5e21d61246cf58e92b6746d0e9f7cf9f597'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler:
newFile: !uuid 'e2d8316f7ca2b5e2fe13701f73aa3b449a241dbc'
oldFile: !uuid '5c5d4d90286cdffcb018f8dc5b73c104336a49a3'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin:
newFile: !uuid '5f14fbf0e349f621837db8015d38ab550c658465'
oldFile: !uuid '7478073bd60cf900fd7ed0dfb67b009d6eddb455'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task:
newFile: !uuid '9e87f6aa817d0eec70d32e8c14d2147119d93d0c'
oldFile: !uuid '68a9ff8cd22aa912cae59802f72ebd7207d39684'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin
: newFile: !uuid '9be3ff64f7a36cb386f0dd00e2f7a590eb6722ea'
oldFile: !uuid '987e9e557d715cccce199b354f040f5012b86cc7'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/main/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTask.java
: newFile: !uuid '7fc0f09adb5d37ae6edcdb54aea2aa4f5c4279e1'
oldFile: !uuid '5c0473154e3ea77e3bf56fce01dff0a3aea70656'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test:
newFile: !uuid '7ea6bd0a05072515ca48b84fe7e2bb2bef8700fe'
oldFile: !uuid '055c844559c143f69a994766519cb42bb67025a8'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java:
newFile: !uuid '82655c20d8df746ea3a952a6b4354c654efbe366'
oldFile: !uuid '99dbeb260c179d7a275cb43af9cfab7b5452a922'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org:
newFile: !uuid 'e0de814affc152cc06fa59759500e1cec812bae4'
oldFile: !uuid '938a6ef14a4fedf7c5b9d40d094d4da0d1fab999'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache:
newFile: !uuid '4888023ea0be75c962ccb519b0ad9658440b8e64'
oldFile: !uuid '260604ae2d0485761e1d21f635267eefbca10257'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache/dolphinscheduler:
newFile: !uuid 'f3fb3177dce84288a7d82e0ec68273577bda7348'
oldFile: !uuid '94209ef3abdc630628df40130eed59b915c325f8'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache/dolphinscheduler/plugin:
newFile: !uuid '5230a261c89c0bbb183b1759c8aa5151a2b30300'
oldFile: !uuid '1d1558fdfebdd865ebc0810d715f91e84e0bbdc2'
/dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache/dolphinscheduler/plugin/task:
newFile: !uuid '4fa5a246aab756e4b2beac7373f2c4923344c89e'
oldFile: !uuid '393092ec4aa442f07d04d33eee95291131b7d6c1'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache/dolphinscheduler/plugin/task/zeppelin
: newFile: !uuid 'b86cd8da1ed027dd4b6db172980a38f5a66947d8'
oldFile: !uuid '3ab563add513f67d1a244151b0c30dfe17b1c4ea'
? /dolphinscheduler-task-plugin/dolphinscheduler-task-zeppelin/src/test/java/org/apache/dolphinscheduler/plugin/task/zeppelin/ZeppelinTaskTest.java
: newFile: !uuid 'b33b4d43ff0602f3061e58b3f2a4021de4e48598'
oldFile: !uuid '70a0945a947538faeeeb93ed7feebcded3229692'
/dolphinscheduler-task-plugin/pom.xml:
newFile: !uuid 'b5e5c06572d78ca299b4d3994884d1f810ad7284'
oldFile: !uuid '744a2858265cab0c76dab45721310aeada31167d'
gitCommitId: !uuid 'e1b55db72ad14ac8372c495a6b1398d686f02365'
renames: { renames: {
} }
revisionId: 3503 revisionId: 3504

Loading…
Cancel
Save