/** @test_category queries:builder */ @Test(groups = "unit") public void should_handle_allow_filtering() { assertThat(select().all().from("foo").allowFiltering().toString()) .isEqualTo("SELECT * FROM foo ALLOW FILTERING;"); assertThat(select().all().from("foo").where(eq("x", 42)).allowFiltering().toString()) .isEqualTo("SELECT * FROM foo WHERE x=42 ALLOW FILTERING;"); } }
/** @test_category queries:builder */ @Test(groups = "unit") public void should_handle_allow_filtering() { assertThat(select().all().from("foo").allowFiltering().toString()) .isEqualTo("SELECT * FROM foo ALLOW FILTERING;"); assertThat(select().all().from("foo").where(eq("x", 42)).allowFiltering().toString()) .isEqualTo("SELECT * FROM foo WHERE x=42 ALLOW FILTERING;"); }