Refine search
@Ignore("This is not a separate class anymore") @Test public void constructorShouldBePrivate() { // TestHelper.checkUtilityClass(BlockingOperatorToIterator.class); }
@Ignore( "until resolved: any requirement on nullability (DRILL-2420?)" ) @Test public void test_IS_NULLABLE_hasRightNullability() throws SQLException { assertThat( "ResultSetMetaData.column...Null... nullability code:", rowsMetadata.isNullable( 18 ), equalTo( columnNoNulls ) ); }
@Ignore( "TODO(DRILL-2683): unignore when REAL is implemented" ) @Test public void test_getColumnType_forREAL() throws SQLException { assertThat( rowMetadata.getColumnType( ordReqREAL ), equalTo( Types.REAL ) ); }
@Ignore( "TODO(DRILL-3368): unignore when BINARY is implemented enough" ) @Test public void test_getColumnTypeName_forBINARY() throws SQLException { assertThat( rowMetadata.getColumnTypeName( ordOptBINARY_1048576 ), equalTo( "BINARY" ) ); }
@Ignore( "TODO(DRILL-2470): unignore when SMALLINT is implemented" ) @Test public void test_getColumnClassName_forSMALLINT_matches() throws SQLException { assertThat( rowMetadata.getColumnClassName( ordReqSMALLINT ), // (equalTo because Short is final) equalTo( viewRow.getObject( ordReqSMALLINT ).getClass().getName() ) ); }
@Ignore( "unless and until all COLUMNS columns are present" ) @Test public void testMetadataHasRightNumberOfColumns() throws SQLException { // Is this check valid? (Are extra columns allowed?) assertThat( "column count", rowsMetadata.getColumnCount(), equalTo( 50 ) ); }
@Ignore( "TODO(DRILL-2470): unignore when TINYINT is implemented" ) @Test public void test_getBigDecimal_handles_TINYINT() throws SQLException { assertThat( testDataRow.getBigDecimal( "C_TINYINT_1" ), equalTo( new BigDecimal( 1 ) ) ); }
@Ignore( "TODO(DRILL-3367): unignore when DECIMAL is no longer DOUBLE" ) @Test public void test_getPrecision_forDECIMAL_5_3() throws SQLException { assertThat( rowMetadata.getPrecision( ordReqDECIMAL_5_3 ), equalTo( 5 ) ); }
@Ignore( "TODO(DRILL-2470): unignore when SMALLINT is implemented" ) @Test public void test_getColumnClassName_forSMALLINT_isShort() throws SQLException { assertThat( rowMetadata.getColumnClassName( ordReqSMALLINT ), equalTo( Short.class.getName() ) ); }
@Test @Ignore("interferes with LuceneSingleIndexLanguageModel") public void testSort() { URL ngramUrl = JLanguageTool.getDataBroker().getFromResourceDirAsUrl("/yy/ngram-index"); try (LuceneLanguageModel model = new LuceneLanguageModel(new File(ngramUrl.getFile()))) { SuggestionSorter sorter = new SuggestionSorter(model); assertThat(sorter.sortSuggestions(Arrays.asList("thee", "the", "teh")), is(Arrays.asList("the", "thee", "teh"))); assertThat(sorter.sortSuggestions(Arrays.asList("nuce", "foo", "nice")), is(Arrays.asList("nice", "nuce", "foo"))); assertThat(sorter.sortSuggestions(Arrays.asList("nuce")), is(Arrays.asList("nuce"))); assertThat(sorter.sortSuggestions(Arrays.asList("nice")), is(Arrays.asList("nice"))); assertThat(sorter.sortSuggestions(Arrays.asList("")), is(Arrays.asList(""))); } }