Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
All
-
Small
Description
Validation passes only when full signature is matched.
Use-case not passing:
static class ActionDiscoverProcessorSchema { @DiscoverSchemaExtended("test-all") public Schema guessProcessorSchemaOk(final Schema incomingSchema, @Option FakeDataSet configuration, final String branch) { return null; } @DiscoverSchemaExtended("test-schema") public Schema guessProcessorSchemaOk(final Schema incomingSchema, @Option FakeDataSet configuration) { return null; } @DiscoverSchemaExtended("test-branch") public Schema guessProcessorSchemaOk(@Option FakeDataSet configuration, final String branch) { return null; } @DiscoverSchemaExtended("test-min") public Schema guessProcessorSchemaOk(@Option FakeDataSet configuration) { return null; } }
Only first method passes, not others.
[validateDiscoverProcessorSchema] public org.talend.sdk.component.api.record.Schema org.talend.sdk.component.tools.validator.ActionValidatorTest$ActionDiscoverProcessorSchemaOk.guessProcessorSchemaOk(org.talend.sdk.component.tools.validator.ActionValidatorTest$FakeDataSet) should have its Schema `incomingSchema' parameter named `incomingSchema' [validateDiscoverProcessorSchema] public org.talend.sdk.component.api.record.Schema org.talend.sdk.component.tools.validator.ActionValidatorTest$ActionDiscoverProcessorSchemaOk.guessProcessorSchemaOk(org.talend.sdk.component.tools.validator.ActionValidatorTest$FakeDataSet,java.lang.String) should have its Schema `incomingSchema' parameter named `incomingSchema' [validateDiscoverProcessorSchema] public org.talend.sdk.component.api.record.Schema org.talend.sdk.component.tools.validator.ActionValidatorTest$ActionDiscoverProcessorSchemaOk.guessProcessorSchemaOk(org.talend.sdk.component.api.record.Schema,org.talend.sdk.component.tools.validator.ActionValidatorTest$FakeDataSet) should have its String `branch' parameter named `branch' [validateDiscoverProcessorSchema] public org.talend.sdk.component.api.record.Schema org.talend.sdk.component.tools.validator.ActionValidatorTest$ActionDiscoverProcessorSchemaOk.guessProcessorSchemaOk(org.talend.sdk.component.tools.validator.ActionValidatorTest$FakeDataSet) should have its String `branch' parameter named `branch'
Attachments
Issue Links
- is related to
-
TCOMP-2186 Guess schema service for processors
- Done