Skip to content
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

[Improve]Improve streampark-common module base on [6 Testing] #3519

Closed
wants to merge 3 commits into from

Conversation

zhengkezhou1
Copy link
Contributor

@zhengkezhou1 zhengkezhou1 commented Jan 28, 2024

What changes were proposed in this pull request

Issue Number: close #3063

Brief change log

add scalatest dependency to streampark-common pom.xml
add mockito-scala_2.12 dependency to streampark-common pom.xml

Verifying this change

This change is already covered by existing tests, such as (please describe tests).

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (yes)

@caicancai
Copy link
Member

I will start reviewing this PR if no one reviews it

import java.io.{File, FileInputStream}
import java.nio.file.{Files, Paths}

object HdfsOperatorTest {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently no e2e test, so you can test whether your results are correct.

Improve add Utils test case

Improve add Utils test case
@zhengkezhou1 zhengkezhou1 force-pushed the streampark-common-test branch from fce6a0a to 4fec209 Compare February 10, 2024 13:39
@caicancai
Copy link
Member

caicancai commented Feb 11, 2024

@zzzk1 Thanks for your contribution. Maybe we can add tests one by one
Because there is no e2e test for similar hdfs, it is certainly not verifiable, but others may be

val timeStampTestCase: Long = 946656001000L;

@Test def stringToDateTest(): Unit = {
val sdf: SimpleDateFormat = new SimpleDateFormat(DateUtils.fullFormat)
Copy link
Member

@caicancai caicancai Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhengkezhou1
Copy link
Contributor Author

Test cases may not take into account time zones

@caicancai
Copy link
Member

Test cases may not take into account time zones

You can leave comments in your code

@zhengkezhou1 zhengkezhou1 changed the title [Improve][WIP] Improve streampark-common module base on [6 Testing] [Improve]Improve streampark-common module base on [6 Testing] Feb 15, 2024
@zhengkezhou1 zhengkezhou1 force-pushed the streampark-common-test branch from e96b8af to 677dd5f Compare February 15, 2024 07:34
@caicancai
Copy link
Member

Good job, i will review it later

@zhengkezhou1 zhengkezhou1 deleted the streampark-common-test branch February 28, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve] Improve streampark-common module base on [6 Testing]
2 participants