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

entry-point.graphql-api.api-queries.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 ApiQueriesTest {

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy