test_class.file: bigquery/src/test/java/com/google/cloud/hadoop/io/bigquery/BigQueryStringsTest.java
test_class.identifier: BigQueryStringsTest
test_case.body: @Test
    public void testToStringThrowsWhenTableIdIsEmpty() {
      TableReference tableRef = new TableReference()
          .setProjectId("foo-proj")
          .setDatasetId("foo")
          .setTableId("");
      assertThrows(IllegalArgumentException.class, () -> BigQueryStrings.toString(tableRef));
    }
test_case.class_method_signature: BigQueryStringsTest.testToStringThrowsWhenTableIdIsEmpty()
test_case.full_signature: @Test public void testToStringThrowsWhenTableIdIsEmpty()
test_case.identifier: testToStringThrowsWhenTableIdIsEmpty
test_case.invocations: setTableId setDatasetId setProjectId assertThrows toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToStringThrowsWhenTableIdIsEmpty()
focal_class.declarator: DATASET_AND_TABLE_REGEX = "[a-zA-Z0-9_]+\\.[a-zA-Z0-9_$]+"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATASET_AND_TABLE_REGEX = "[a-zA-Z0-9_]+\\.[a-zA-Z0-9_$]+";
focal_class.type: String
focal_class.var_name: DATASET_AND_TABLE_REGEX
focal_class.declarator: DOT_SPLITTER = Splitter.on('.')
focal_class.modifier: private static final
focal_class.original_string: private static final Splitter DOT_SPLITTER = Splitter.on('.');
focal_class.type: Splitter
focal_class.var_name: DOT_SPLITTER
focal_class.file: bigquery/src/main/java/com/google/cloud/hadoop/io/bigquery/BigQueryStrings.java
focal_class.identifier: BigQueryStrings
focal_class.class_method_signature: BigQueryStrings.toString(TableReference tableRef)
focal_class.full_signature: public static String toString(TableReference tableRef)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (TableReference tableRef)
focal_class.return: String
focal_class.signature: String toString(TableReference tableRef)
focal_class.class_method_signature: BigQueryStrings.parseTableReference(String tableRefString)
focal_class.full_signature: public static TableReference parseTableReference(String tableRefString)
focal_class.identifier: parseTableReference
focal_class.modifiers: public static
focal_class.parameters: (String tableRefString)
focal_class.return: TableReference
focal_class.signature: TableReference parseTableReference(String tableRefString)
focal_method.body: public static String toString(TableReference tableRef) {
      Preconditions.checkArgument(!Strings.isNullOrEmpty(tableRef.getDatasetId()),
          "tableRef must contain non-empty DatasetId.");
      Preconditions.checkArgument(!Strings.isNullOrEmpty(tableRef.getTableId()),
          "tableRef must contain non-empty TableId.");
      if (Strings.isNullOrEmpty(tableRef.getProjectId())) {
        return String.format("%s.%s", tableRef.getDatasetId(), tableRef.getTableId());
      } else {
        return String.format("%s:%s.%s",
            tableRef.getProjectId(), tableRef.getDatasetId(), tableRef.getTableId());
      }
    }
focal_method.class_method_signature: BigQueryStrings.toString(TableReference tableRef)
focal_method.full_signature: public static String toString(TableReference tableRef)
focal_method.identifier: toString
focal_method.invocations: checkArgument isNullOrEmpty getDatasetId checkArgument isNullOrEmpty getTableId isNullOrEmpty getProjectId format getDatasetId getTableId format getProjectId getDatasetId getTableId
focal_method.modifiers: public static
focal_method.parameters: (TableReference tableRef)
focal_method.return: String
focal_method.signature: String toString(TableReference tableRef)