Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2311

DiscoverSchemaExtended validation is too strict

Apply templateInsert Lucidchart DiagramXMLWordPrintable

      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'

       

       

            emmanuel_g emmanuel gallois
            emmanuel_g emmanuel gallois
            emmanuel gallois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: