public VersionNumberAssert hasMajorMinorPatch(int major, int minor, int patch) { assertThat(actual.getMajor()).isEqualTo(major); assertThat(actual.getMinor()).isEqualTo(minor); assertThat(actual.getPatch()).isEqualTo(patch); return this; }
/** * Validates aggregates with DynamicCompositeType state types and an initcond value that is a * literal, i.e.: 's@foo:i@32' can be appropriately parsed and generate a CQL string with the init * cond as a hex string, i.e.: 0x80730003666f6f00806900040000002000. * * @jira_ticket JAVA-1046 * @test_category metadata * @since 3.0.1 */ @Test(groups = "short") @CassandraVersion("2.2.0") public void should_parse_and_format_aggregate_with_composite_type_literal_initcond() { VersionNumber ver = ccm().getCassandraVersion(); if (ver.getMajor() == 3) { if ((ver.getMinor() >= 1 && ver.getMinor() < 4) || (ver.getMinor() == 0 && ver.getPatch() < 4)) { throw new SkipException("Requires C* 2.2.X, 3.0.4+ or 3.4.X+"); } } parse_and_format_aggregate_with_composite_type("ag0", "'s@foo:i@32'"); }
CassandraConnection.DB_REVISION = firstHost.getCassandraVersion().getPatch();
public VersionNumberAssert hasMajorMinorPatch(int major, int minor, int patch) { assertThat(actual.getMajor()).isEqualTo(major); assertThat(actual.getMinor()).isEqualTo(minor); assertThat(actual.getPatch()).isEqualTo(patch); return this; }
/** * Validates aggregates with DynamicCompositeType state types and an initcond value that is a * literal, i.e.: 's@foo:i@32' can be appropriately parsed and generate a CQL string with the init * cond as a hex string, i.e.: 0x80730003666f6f00806900040000002000. * * @jira_ticket JAVA-1046 * @test_category metadata * @since 3.0.1 */ @Test(groups = "short") @CassandraVersion("2.2.0") public void should_parse_and_format_aggregate_with_composite_type_literal_initcond() { VersionNumber ver = ccm().getCassandraVersion(); if (ver.getMajor() == 3) { if ((ver.getMinor() >= 1 && ver.getMinor() < 4) || (ver.getMinor() == 0 && ver.getPatch() < 4)) { throw new SkipException("Requires C* 2.2.X, 3.0.4+ or 3.4.X+"); } } parse_and_format_aggregate_with_composite_type("ag0", "'s@foo:i@32'"); }