-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(core): test useFqn configuration in core integration test
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../test/java/io/github/springwolf/core/integrationtests/application/fqn/FqnApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package io.github.springwolf.core.integrationtests.application.fqn; | ||
|
||
import io.github.springwolf.core.asyncapi.annotations.AsyncListener; | ||
import io.github.springwolf.core.asyncapi.annotations.AsyncOperation; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.Bean; | ||
|
||
import java.util.List; | ||
|
||
@SpringBootApplication | ||
public class FqnApplication { | ||
@Bean | ||
public Listener listener() { | ||
return new Listener(); | ||
} | ||
|
||
static class Listener { | ||
@AsyncListener(operation = @AsyncOperation(channelName = "listener-channel")) | ||
public void listen(String payload) {} | ||
|
||
@AsyncListener(operation = @AsyncOperation(channelName = "listener-channel")) | ||
public void listen2(List<String> payload) {} | ||
|
||
@AsyncListener(operation = @AsyncOperation(channelName = "listener-channel")) | ||
public void listen3(Foo payload) {} | ||
|
||
@AsyncListener(operation = @AsyncOperation(channelName = "listener-channel")) | ||
public void listen4(Integer payload) {} | ||
} | ||
|
||
public record Foo(Bar aFieldInFooRecord) {} | ||
|
||
public record Bar(String aFieldInBarRecord) {} | ||
} |