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

SVV_TABLE tests #21

Open
wants to merge 4 commits into
base: dev-cvv-columns-test
Choose a base branch
from
Open

Conversation

gregflack
Copy link

Added svv_tables.sql for querying data
Added SvvTablesTest test
Added SvvTablesRow POJO object
Removed unused dependencies

@gregflack gregflack force-pushed the dev-svv-table-tests branch from f8eff30 to f6df564 Compare June 6, 2022 10:53
@gregflack gregflack changed the title Dev svv table tests SVV_TABLE tests Jun 6, 2022
@gregflack gregflack force-pushed the dev-svv-table-tests branch from d373a42 to e108163 Compare June 6, 2022 11:24
@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch 4 times, most recently from 5661f9c to d5e6e7e Compare June 6, 2022 20:26
@gregflack gregflack force-pushed the dev-svv-table-tests branch from 5b69b81 to f92b063 Compare June 7, 2022 14:44
@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch 2 times, most recently from 32e7f6e to 8738593 Compare June 15, 2022 15:57
implementation 'org.testng:testng:7.5'
implementation 'org.slf4j:slf4j-api:2.0.0-alpha5'
implementation 'org.slf4j:slf4j-jdk14:2.0.0-alpha5'
implementation 'com.amazon.redshift:redshift-jdbc42:2.1.0.7'
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks to me as if this is only ever used at runtime; shouldn't this be runtimeOnly instead?

dependencies {
implementation 'org.codehaus.groovy:groovy-all:3.0.10'
implementation 'com.google.guava:guava:31.1-jre'
implementation 'org.testng:testng:7.5'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be testImplementation?

@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch from 8738593 to 4e7e799 Compare June 16, 2022 18:44
Copy link
Collaborator

@cyulysses-corp cyulysses-corp left a comment

Choose a reason for hiding this comment

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

After addressing the comments (either change or refuse) please request review again.

/**
* @return String or an empty string if null.
*/
public static String getStringNotNull(String value) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: suggest changing the name to "getStringOrEmpty". Same for the other method named getStringNotNull.

Copy link
Author

Choose a reason for hiding this comment

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

I removed it

/**
* @return int or 0 if "".
*/
public static int getIntNotNull(String value) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: suggest "getIntOrZeroFromString"

Copy link
Author

Choose a reason for hiding this comment

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

I removed it

* @param column Database column name.
* @return String or an empty string if null.
*/
public static String getStringNotNull(ResultSet rs, String column) throws SQLException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

Copy link
Author

Choose a reason for hiding this comment

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

it is inherited from Danila solition

@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch 3 times, most recently from 941ccdd to 42a0b6e Compare June 20, 2022 19:31
1. Added JdbcUtils and methods
2. Added svv_columns.sql for retrieving table's data
3. Added SvvColumnsTest test
4. Removed CsvUtil and methods
5. Added Gradle reporting plugin
6. Setting dumper-integration-tests as a root independent Gradle project
7. Added required EnvVars to build.gradle
@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch from 42a0b6e to 663d9db Compare June 22, 2022 01:48
dmorokov and others added 3 commits June 22, 2022 15:27
1. Test Automation Framework skeleton
2. Gradle config with most likely deps
3. Template Test
4. Logging props
5. Base classes for testing and other utility needs
6. Code style accordingly google-formatter-plugin
1. Added JdbcUtils and methods
2. Added svv_columns.sql for retrieving table's data
3. Added SvvColumnsTest test
4. Added SvvColumnsRow POJO object
5. Added CsvUtil and methods
6. Added Gradle reporting plugin
Added svv_tables.sql for querying  data
Added SvvTablesTest test
@gregflack gregflack force-pushed the dev-svv-table-tests branch from 7ab6bdf to 04d5310 Compare June 22, 2022 13:58
@dmorokov dmorokov force-pushed the dev-cvv-columns-test branch from 663d9db to 03e12df Compare June 28, 2022 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants