Skip to content
Permalink
Browse files

Merge remote-tracking branch 'origin/sql' into sql

# Conflicts:
#	core/src/test/kotlin/org/evomaster/core/database/extract/postgres/Ind0ExtractTest.kt
#	dbconstraint/src/main/java/org/evomaster/dbconstraint/parser/jsql/JSqlConditionParser.java
#	dbconstraint/src/test/java/org/evomaster/dbconstraint/SqlConditionParserTest.java
  • Loading branch information...
jgaleotti committed May 9, 2019
2 parents 96b28d0 + 1457543 commit 868bc19b9f360de26a1a37201c0fda20b1afe401
@@ -5,6 +5,7 @@ import org.evomaster.client.java.controller.internal.db.SchemaExtractor
import org.evomaster.core.database.SqlInsertBuilder
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Disabled

import org.junit.jupiter.api.Test

/**
@@ -59,5 +60,6 @@ class Ind0ExtractTest : ExtractTestBasePostgres() {
val genes = actions[0].seeGenes()

//TODO check creation of genes for TEXT, UUID, XML and JSONB column types

}
}
@@ -173,6 +173,7 @@ void testSingleLike() throws SqlConditionParserException {
@Test
void testConditionEquals() throws SqlConditionParserException {
SqlCondition actual = parse("((STATUS = 'b') = (P_AT IS NOT NULL))");

SqlCondition expected = eq(
eq(column("STATUS"), str("b")),
isNotNull(column("P_AT")));
@@ -233,6 +234,7 @@ void testPostgresLike() throws SqlConditionParserException {
}



@Test
void testIsNull() throws SqlConditionParserException {
SqlCondition actual = parse("age_max IS NULL".toUpperCase());

0 comments on commit 868bc19

Please sign in to comment.
You can’t perform that action at this time.