test_class.declarator: validator
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private XlsDraftValidator validator;
test_class.type: XlsDraftValidator
test_class.var_name: validator
test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/schema/xls/XlsDraftValidatorTest.java
test_class.identifier: XlsDraftValidatorTest
test_class.superclass: extends AbstractSchemaTestUtils
test_case.body: @Test
      public void shouldNotValidateDraft() throws Exception {
          // given
          final DataSetMetadata metadata = metadataBuilder.metadata().id("#456").sheetName("").build();
          // when
          final DraftValidator.Result result = validator.validate(metadata);
          // then
          assertThat(result.isDraft(), is(true));
      }
test_case.class_method_signature: XlsDraftValidatorTest.shouldNotValidateDraft()
test_case.full_signature: @Test public void shouldNotValidateDraft()
test_case.identifier: shouldNotValidateDraft
test_case.invocations: build sheetName id metadata validate assertThat isDraft is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldNotValidateDraft()
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/schema/xls/XlsDraftValidator.java
focal_class.identifier: XlsDraftValidator
focal_class.interfaces: implements DraftValidator
focal_class.class_method_signature: XlsDraftValidator.validate(DataSetMetadata dataSetMetadata)
focal_class.full_signature: @Override public Result validate(DataSetMetadata dataSetMetadata)
focal_class.identifier: validate
focal_class.modifiers: @Override public
focal_class.parameters: (DataSetMetadata dataSetMetadata)
focal_class.return: Result
focal_class.signature: Result validate(DataSetMetadata dataSetMetadata)
focal_method.body: @Override
      public Result validate(DataSetMetadata dataSetMetadata) {
          if (StringUtils.isEmpty(dataSetMetadata.getSheetName())) {
              return new DraftValidator.Result(true);
          }
          return new DraftValidator.Result(false);
      }
focal_method.class_method_signature: XlsDraftValidator.validate(DataSetMetadata dataSetMetadata)
focal_method.full_signature: @Override public Result validate(DataSetMetadata dataSetMetadata)
focal_method.identifier: validate
focal_method.invocations: isEmpty getSheetName
focal_method.modifiers: @Override public
focal_method.parameters: (DataSetMetadata dataSetMetadata)
focal_method.return: Result
focal_method.signature: Result validate(DataSetMetadata dataSetMetadata)