[PLUGIN-1705] Sink job label support #1998
Annotations
26 errors and 20 warnings
BigQueryOutputFormatTest.commitJobTestInsertBQInvocations:
src/test/java/io/cdap/plugin/gcp/bigquery/sink/BigQueryOutputFormatTest.java#L109
No method found with name 'handleUpdateUpsertOperation' with parameter types: [ null, java.lang.Boolean, null, null, null, null ] in class io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormat$BigQueryOutputCommitter.
|
Test mechanism:
Test mechanism#L1
Misplaced or misused argument matcher detected here:
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:91)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:92)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:93)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:94)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:95)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:96)
You cannot use argument matchers outside of verification or stubbing.
Examples of correct usage of argument matchers:
when(mock.get(anyInt())).thenReturn(null);
doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());
verify(mock).someMethod(contains("foo"))
This message may appear after an NullPointerException if the last matcher is returning an object
like any() but the stubbed method signature expect a primitive argument, in this case,
use primitive alternatives.
when(mock.get(any())); // bad use, will raise NPE
when(mock.get(anyInt())); // correct usage use
Also, this error might show up because you use argument matchers with methods that cannot be mocked.
Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().
Mocking methods declared on non-public parent classes is not supported.
|
BigQueryOutputFormatTest.commitJobTestInsert10000BQInvocations:
src/test/java/io/cdap/plugin/gcp/bigquery/sink/BigQueryOutputFormatTest.java#L125
Unfinished stubbing detected here:
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:91)
E.g. thenReturn() may be missing.
Examples of correct stubbing:
when(mock.isOk()).thenReturn(true);
when(mock.isOk()).thenThrow(exception);
doThrow(exception).when(mock).someVoidMethod();
Hints:
1. missing thenReturn()
2. you are trying to stub a final method, which is not supported
3: you are stubbing the behaviour of another mock inside before 'thenReturn' instruction if completed
|
BigQueryOutputFormatTest.commitJobTestUpdateBQInvocations:
src/test/java/io/cdap/plugin/gcp/bigquery/sink/BigQueryOutputFormatTest.java#L141
No method found with name 'handleUpdateUpsertOperation' with parameter types: [ null, java.lang.Boolean, null, null, null, null ] in class io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormat$BigQueryOutputCommitter.
|
Test mechanism:
Test mechanism#L1
Misplaced or misused argument matcher detected here:
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:91)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:92)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:93)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:94)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:95)
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:96)
You cannot use argument matchers outside of verification or stubbing.
Examples of correct usage of argument matchers:
when(mock.get(anyInt())).thenReturn(null);
doThrow(new RuntimeException()).when(mock).someVoidMethod(anyObject());
verify(mock).someMethod(contains("foo"))
This message may appear after an NullPointerException if the last matcher is returning an object
like any() but the stubbed method signature expect a primitive argument, in this case,
use primitive alternatives.
when(mock.get(any())); // bad use, will raise NPE
when(mock.get(anyInt())); // correct usage use
Also, this error might show up because you use argument matchers with methods that cannot be mocked.
Following methods *cannot* be stubbed/verified: final/private/equals()/hashCode().
Mocking methods declared on non-public parent classes is not supported.
|
BigQuerySQLEngineTest.initializationError:
src/test/java/io/cdap/plugin/gcp/bigquery/sqlengine/BigQuerySQLEngineTest.java#L1
Unfinished stubbing detected here:
-> at io.cdap.plugin.gcp.bigquery.sink.BigQueryOutputFormatTest.initMocks(BigQueryOutputFormatTest.java:91)
E.g. thenReturn() may be missing.
Examples of correct stubbing:
when(mock.isOk()).thenReturn(true);
when(mock.isOk()).thenThrow(exception);
doThrow(exception).when(mock).someVoidMethod();
Hints:
1. missing thenReturn()
2. you are trying to stub a final method, which is not supported
3: you are stubbing the behaviour of another mock inside before 'thenReturn' instruction if completed
|
build (bigquery)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (bigquery)
Process completed with exit code 1.
|
build (bigqueryexecute)
Process completed with exit code 1.
|
build (bigqueryexecute)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (common)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (common)
Process completed with exit code 1.
|
build (gcs)
Process completed with exit code 1.
|
build (gcs)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (gcscopy)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (gcscopy)
Process completed with exit code 1.
|
build (gcscreate)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (gcscreate)
Process completed with exit code 1.
|
build (gcsdelete)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (gcsdelete)
Process completed with exit code 1.
|
build (gcsmove)
Process completed with exit code 1.
|
build (gcsmove)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (pubsub)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (pubsub)
Process completed with exit code 1.
|
build (spanner)
google-github-actions/upload-cloud-storage failed with: ENOENT: no such file or directory, lstat '/tmp/google-cloud/google-cloud/plugin/target/cucumber-reports'
|
build (spanner)
Process completed with exit code 1.
|
build (bigquery)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (bigquery)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (bigqueryexecute)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (bigqueryexecute)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (common)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (common)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcs)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (gcs)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcscopy)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcscopy)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (gcscreate)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcscreate)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (gcsdelete)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (gcsdelete)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcsmove)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (gcsmove)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (pubsub)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|
build (pubsub)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (spanner)
No files were found with the provided path: ./**/target/e2e-debug. No artifacts will be uploaded.
|
build (spanner)
No files were found with the provided path: ./plugin/target/cucumber-reports. No artifacts will be uploaded.
|