Skip to content

Commit

Permalink
minor changes, plus re-enabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuri82 committed Dec 7, 2020
1 parent a68172e commit 1ebde7c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 71 deletions.
Expand Up @@ -13,12 +13,11 @@ import org.junit.jupiter.api.Test
class BaseGraphQLApplicationTest{


@Disabled

@Test
fun testIntrospectiveQuery(){

val driver = BaseGQDriver()
//driver.startTheControllerServer()

try {
val sutServer = driver.startSut()
Expand All @@ -41,9 +40,9 @@ class BaseGraphQLApplicationTest{
val arrayUser= (all.parameters[0].gene as OptionalGene).gene as ArrayGene<*>
val objUser=arrayUser.template as ObjectGene
assertEquals(4, objUser.fields.size)
assertFalse(objUser.fields.get(0) is OptionalGene)
assertTrue(objUser.fields.get(0) is StringGene)
assertTrue((objUser.fields.get(3) as OptionalGene).gene is IntegerGene)
assertFalse(objUser.fields.first { it.name == "id" } is OptionalGene)
assertTrue(objUser.fields.first { it.name == "id" } is StringGene)
assertTrue((objUser.fields.first { it.name == "age" } as OptionalGene).gene is IntegerGene)
assertTrue(objUser.fields.any{ it is StringGene && it.name == "id"})


Expand Down

0 comments on commit 1ebde7c

Please sign in to comment.