
entry-point.graphql-api.api-mutations.test.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scaffold-clean-architecture Show documentation
Show all versions of scaffold-clean-architecture Show documentation
Gradle plugin to create a clean application in Java that already works, It follows our best practices!
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