Search in sources :

Example 1 with MemberInput

use of com.graphql_java_generator.samples.forum.client.graphql.forum.client.MemberInput in project graphql-maven-plugin-project by graphql-java-generator.

the class AbstractIT method test_createMember.

@Test
void test_createMember() throws GraphQLRequestExecutionException, GraphQLRequestPreparationException {
    // Preparation
    MemberInput input = new MemberInput();
    input.setAlias("an alias");
    input.setEmail("an.email@my.domain.com");
    input.setName("a member name");
    input.setType(MemberType.MODERATOR);
    // Go, go, go
    Member member = queries.createMember(input);
    // Verification
    assertNotNull(member.getId());
    assertEquals("an alias", member.getAlias());
    assertEquals("an.email@my.domain.com", member.getEmail());
    assertEquals("a member name", member.getName());
    assertEquals(MemberType.MODERATOR, member.getType());
}
Also used : MemberInput(com.graphql_java_generator.samples.forum.client.graphql.forum.client.MemberInput) Member(com.graphql_java_generator.samples.forum.client.graphql.forum.client.Member) Test(org.junit.jupiter.api.Test)

Aggregations

Member (com.graphql_java_generator.samples.forum.client.graphql.forum.client.Member)1 MemberInput (com.graphql_java_generator.samples.forum.client.graphql.forum.client.MemberInput)1 Test (org.junit.jupiter.api.Test)1