Search in sources :

Example 1 with TextConfiguration

use of io.questdb.cutlass.text.TextConfiguration in project questdb by bluestreak01.

the class TypeManagerTest method testIllegalParameterForGetTypeAdapter.

private void testIllegalParameterForGetTypeAdapter(int columnType) {
    TextConfiguration textConfiguration = new DefaultTextConfiguration();
    TypeManager typeManager = new TypeManager(textConfiguration, utf8Sink);
    try {
        typeManager.getTypeAdapter(columnType);
        Assert.fail();
    } catch (CairoException e) {
        TestUtils.assertContains(e.getFlyweightMessage(), "no adapter for type");
    }
}
Also used : DefaultTextConfiguration(io.questdb.cutlass.text.DefaultTextConfiguration) CairoException(io.questdb.cairo.CairoException) TextConfiguration(io.questdb.cutlass.text.TextConfiguration) DefaultTextConfiguration(io.questdb.cutlass.text.DefaultTextConfiguration)

Aggregations

CairoException (io.questdb.cairo.CairoException)1 DefaultTextConfiguration (io.questdb.cutlass.text.DefaultTextConfiguration)1 TextConfiguration (io.questdb.cutlass.text.TextConfiguration)1