-
Notifications
You must be signed in to change notification settings - Fork 288
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
Week3 java consolidate test code #18
base: master
Are you sure you want to change the base?
Week3 java consolidate test code #18
Conversation
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.
Thank you for the PR, always appreciated.
-
AstraConnectionInfo: Even I totally agree with dedicated bean or properties injected instead of static constants you need to know that most of people are total beginner and we got very basic questions, idea was to have same code as Python and Node.
-
Landing and takeoff really don't need the journey Summary as this is only when creating Journey I would rather not touching them (align with other code is a strong part here)
-
methods : Delete, switching parameters ok why not, externalization of statement in utility methods, I like that it does not make the code more complex I guess
-
Fixture: Ok that's a good idea but please change the READ_JAVA also then to reflect your changes people do copy paste :)
-
Testutils and properties : Simply update the
application.conf
with relevant values and the connection will created https://docs.datastax.com/en/developer/java-driver/4.6/manual/core/configuration/ no need for properties :) Again here idea is to align with other language.
Could you please update the PR accordingly to merge. I really appreciate all efforts you put in there.
@clun Thanks for the thorough review.
This is true. The reason I introduce this summary update is because the The developer must pay attention when verifying the data by Astra CQL Console. Ultimately, I agree that there is no need to update the |
Can you please elaborate on |
switching parameters position: this is probably unnecessary indeed. It just that the partition key is externalization of statement, this whole thing was to avoid code repetition b/c I added |
Oh this is good thanks for the help! I like HOCON config format. But was concerned of adding additional dependencies. I saw the |
@clun Can you please review again. Changes:
Actually we can add assertions in every test (as you suggested suing the live workshop). But I'll stop there. A motivated student could follow the pattern and add the missing assertions. |
858f334
to
f3822a6
Compare
7c0fd37
to
d8f13bb
Compare
Thank you for this updates. Will execute the workshop with this code, eventually update the read me accordingly an MERGE ! |
logback-test.xml
now log from ALL tests are visibleEx05_Query5c_Travel
is now idempotent (each run only add 50 new sensors reading, previous reading are deleted)