Skip to content

[Bug] [Plugin TIS] Misuseing PowerMockito.spy lead to UT faild #6367

@baisui1981

Description

@baisui1981

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

In Plugin TIS TestCase , by misuseing PowerMockito.spy lead to UT faild
https://github.com/apache/dolphinscheduler/pull/6363/checks

Error:  Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.786 s <<< FAILURE! - in org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest
Error:  testInit(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest)  Time elapsed: 0.531 s  <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
	at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)

Error:  testGetTISConfigParams(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
	at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)

Error:  testHandle(org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest)  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalArgumentException: name argument cannot be null
	at org.apache.dolphinscheduler.plugin.task.tis.TISTaskTest.before(TISTaskTest.java:71)

What you expected to happen

make the UT pass

How to reproduce

for fix this bug ,shoud remote PowerMockito.spy() invoking

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions