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 Log info in Processor Test #1445

Merged
merged 1 commit into from Mar 24, 2023
Merged

Conversation

liuxiaocs7
Copy link
Member

Purpose

Test log in TestBooleanCounterProcessor and TestBooleanInverterProcessor are not very clear now.

before:

2023-03-24T02:14:08.635+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value org.apache.streampipes.model.runtime.field.PrimitiveField@671a5887
2023-03-24T02:14:08.753+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value org.apache.streampipes.model.runtime.field.PrimitiveField@3541cb24
2023-03-24T02:14:08.860+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Expected match count is 1
2023-03-24T02:14:08.862+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Actual match count is 1
2023-03-24T02:14:08.864+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value org.apache.streampipes.model.runtime.field.PrimitiveField@62e7f11d

after:

2023-03-24T02:16:24.829+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value false
2023-03-24T02:16:24.946+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value true
2023-03-24T02:16:25.054+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Expected match count is 1
2023-03-24T02:16:25.055+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Actual match count is 1
2023-03-24T02:16:25.057+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value false
2023-03-24T02:16:25.164+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value true
2023-03-24T02:16:25.271+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Sending event with value false
2023-03-24T02:16:25.381+08:00  INFO   --- [           main] .p.t.j.p.b.c.TestBooleanCounterProcessor : Expected match count is 2

Remarks

PR introduces (a) breaking change(s): <yes/no>

PR introduces (a) deprecation(s): <yes/no>

@github-actions github-actions bot added backend Everything that is related to the StreamPipes backend java Pull requests that update Java code pipeline elements Relates to pipeline elements testing Relates to any kind of test (unit test, integration, or E2E test). labels Mar 23, 2023
@dominikriemer dominikriemer merged commit 7cc4e02 into apache:dev Mar 24, 2023
15 checks passed
@bossenti bossenti added this to the 1.0.0 milestone Mar 24, 2023
@bossenti bossenti added the no release note Issues and PR. Add if they should not be contained in the release notes (e.g., minor refactorings). label Mar 24, 2023
@bossenti bossenti modified the milestones: 1.0.0, 0.92.0 May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Everything that is related to the StreamPipes backend java Pull requests that update Java code no release note Issues and PR. Add if they should not be contained in the release notes (e.g., minor refactorings). pipeline elements Relates to pipeline elements testing Relates to any kind of test (unit test, integration, or E2E test).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants