This file contains hidden or 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
import org.junit.jupiter.api.Test; | |
import reactor.core.publisher.Mono; | |
import java.time.Duration; | |
/** | |
* | |
*/ | |
public class TestBidon { |
This file contains hidden or 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
// implementation, I can only put only fruits inside (by polymorphism) | |
public class Container<T extends Fruit> { | |
private String containerId; | |
private T fruit; | |
public String containerId() { | |
return eventId; | |
} |
NewerOlder