Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Mar 2, 2024
1 parent 407c538 commit 3bca2af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Expand Up @@ -21,9 +21,6 @@
import java.util.Objects;
import java.util.stream.StreamSupport;

import static java.util.Arrays.asList;
import static java.util.Objects.requireNonNull;


/**
* Represents the state of column queries, including a condition and a value, as an {@link Element},
Expand Down Expand Up @@ -135,10 +132,15 @@ private void validateReadOnly() {

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CriteriaCondition that = (CriteriaCondition) o;
return readOnly == that.readOnly && Objects.equals(element, that.element) && condition == that.condition;
return Objects.equals(element, that.element)
&& condition == that.condition;
}

@Override
Expand Down
Expand Up @@ -11,7 +11,6 @@
package org.eclipse.jnosql.communication.semistructured;



import jakarta.data.Sort;

import java.util.Arrays;
Expand All @@ -23,8 +22,6 @@
import java.util.function.Supplier;
import java.util.stream.Stream;

import static java.util.Objects.requireNonNull;

/**
* Class that contains information to perform a select operation on {@link CommunicationEntity}.
*
Expand Down
Expand Up @@ -29,7 +29,7 @@ class DefaultElementQueryTest {

@BeforeEach
public void setUp() {
query = select().from("columnFamily").build();
query = select().from("entity").build();
}

@Test
Expand Down

0 comments on commit 3bca2af

Please sign in to comment.