All Downloads are FREE. Search and download functionalities are using the official Maven repository.

entry-point.graphql-api.api-mutations.test.mustache Maven / Gradle / Ivy

Go to download

Gradle plugin to create a clean application in Java that already works, It follows our best practices!

There is a newer version: 3.20.10
Show newest version
package {{package}}.graphqlapi;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
{{#reactive}}
import reactor.test.StepVerifier;
{{/reactive}}

public class ApiMutationsTest {

{{#reactive}}
    @Test
    void addSomethingTest(){
        ApiMutations apiMutations = new ApiMutations();
        var objRequest = "objRequest";
        apiMutations.addSomething(objRequest)
                .as(StepVerifier::create)
                .assertNext(Assertions::assertNotNull)
                .verifyComplete();
    }
{{/reactive}}
{{^reactive}}
    @Test
    void addSomethingTest(){
        ApiMutations apiMutations = new ApiMutations();
        var objRequest = "objRequest";
        var addSomething = apiMutations.addSomething(objRequest);

        Assertions.assertNotNull(addSomething);
    }
{{/reactive}}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy