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());
}
Aggregations