Skip to content

Commit

Permalink
test: include test for queryType
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Aug 28, 2024
1 parent 3098dd5 commit 87d5691
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
package org.eclipse.jnosql.communication.semistructured;

import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
Expand Down Expand Up @@ -67,4 +68,11 @@ void shouldThrowNullPointerExceptionForNullQuery() {
assertThatThrownBy(() -> QueryType.parse(query))
.isInstanceOf(NullPointerException.class);
}

@Test
void shouldReturnIsNotSelect() {
Assertions.assertThat(QueryType.SELECT.isNotSelect()).isFalse();
Assertions.assertThat(QueryType.DELETE.isNotSelect()).isTrue();
Assertions.assertThat(QueryType.UPDATE.isNotSelect()).isTrue();
}
}

0 comments on commit 87d5691

Please sign in to comment.