### Question:
IndexerConf { public String getTable() { return table; } IndexerConf(String table); String getTable(); boolean tableNameIsRegex(); MappingType getMappingType(); RowReadMode getRowReadMode(); String getUniqueKeyField(); String getRowField(); String getColumnFamilyField(); String getTableNameField(); Class<? extends ResultToSolrMapper> getMapperClass(); Class<? extends UniqueKeyFormatter> getUniqueKeyFormatterClass(); List<FieldDefinition> getFieldDefinitions(); List<DocumentExtractDefinition> getDocumentExtractDefinitions(); Map<String, String> getGlobalParams(); void setColumnFamilyField(String columnFamilyField); void setTableNameField(String tableNameField); void setGlobalParams(Map<String, String> globalParams); static final MappingType DEFAULT_MAPPING_TYPE; static final RowReadMode DEFAULT_ROW_READ_MODE; static final String DEFAULT_UNIQUE_KEY_FIELD; static final Class<? extends UniqueKeyFormatter> DEFAULT_UNIQUE_KEY_FORMATTER; static final ValueSource DEFAULT_VALUE_SOURCE; static final String DEFAULT_FIELD_TYPE; static final String DEFAULT_EXTRACT_TYPE; }### Answer:
@Test public void testGetTable_BasicLiteral() throws Exception { assertEquals("myTableName", new IndexerConf("myTableName").getTable()); }
@Test public void testGetTable_QualifiedLiteral() { assertEquals("myTableName", new IndexerConf("literal:myTableName").getTable()); }
@Test public void testGetTable_Regex() { assertEquals("my.*Name", new IndexerConf("regex:my.*Name").getTable()); }