<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<artifactId>micronaut-function-web</artifactId>
<scope>test</scope>
</dependency>
For further information on the use of @FunctionClient , please see . |
void "test invoking a local function"() {
given:
expect:
mathClient.max() == Integer.MAX_VALUE.toLong()
mathClient.rnd(1.6) == 2
mathClient.sum(new Sum(a:5,b:10)) == 15