use of com.google.cloud.dialogflow.cx.v3beta1.Version in project dcache by dCache.
the class DCapDoorInterpreterV3Tests method versionShouldEqual.
@Test
public void versionShouldEqual() {
Version v1_2 = new Version(1, 2);
Version v1_1 = new Version(1, 1);
Version v2_2 = new Version(2, 2);
Version v1_1_1 = new Version(1, 1, 1, null);
Version v1_1_1_1 = new Version(1, 1, 1, "1");
assertThat(v1_1, is(equalTo(v1_1)));
assertThat(v1_2, is(equalTo(v1_2)));
assertThat(v2_2, is(equalTo(v2_2)));
assertThat(v1_1_1, is(equalTo(v1_1_1)));
assertThat(v1_1_1_1, is(equalTo(v1_1_1_1)));
assertThat(new Version(1, 1), is(equalTo(v1_1)));
assertThat(new Version(1, 2), is(equalTo(v1_2)));
assertThat(new Version(2, 2), is(equalTo(v2_2)));
assertThat(new Version(1, 1, 1, null), is(equalTo(v1_1_1)));
assertThat(new Version(1, 1, 1, "1"), is(equalTo(v1_1_1_1)));
assertThat(v1_1, not(equalTo(v1_2)));
assertThat(v1_2, not(equalTo(v1_1)));
assertThat(v2_2, not(equalTo(v1_2)));
assertThat(v1_2, not(equalTo(v2_2)));
assertThat(v2_2, not(equalTo(v1_1)));
assertThat(v1_1, not(equalTo(v2_2)));
assertThat(v1_1, is(not(equalTo(v1_1_1))));
assertThat(v1_1_1, is(not(equalTo(v1_1))));
assertThat(v1_1, is(not(equalTo(v1_1_1_1))));
assertThat(v1_1_1_1, is(not(equalTo(v1_1))));
assertThat(v1_1_1, is(not(equalTo(v1_1_1_1))));
assertThat(v1_1_1_1, is(not(equalTo(v1_1_1))));
}
Aggregations