-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
76 changed files
with
783 additions
and
111 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
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
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
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
29 changes: 29 additions & 0 deletions
29
asyncapi-core/src/main/java/com/asyncapi/bindings/anypointmq/AnypointMQChannelBinding.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,29 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import com.asyncapi.bindings.ChannelBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* Describes Anypoint MQ channel binding. | ||
* | ||
* @version 0.0.1 | ||
* @see <a href="https://github.com/asyncapi/bindings/blob/master/anypointmq/README.md#channel-binding-object">Anypoint MQ channel binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.anypointmq.v0._0_1.channel.AnypointMQChannelBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.anypointmq.v0._0_1.channel.AnypointMQChannelBinding.class, names = { | ||
"0.0.1", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class AnypointMQChannelBinding extends ChannelBinding {} |
30 changes: 30 additions & 0 deletions
30
asyncapi-core/src/main/java/com/asyncapi/bindings/anypointmq/AnypointMQMessageBinding.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,30 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import com.asyncapi.bindings.MessageBinding; | ||
import com.fasterxml.jackson.annotation.JsonClassDescription; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.*; | ||
|
||
/** | ||
* Describes Anypoint MQ message binding. | ||
* | ||
* @version 0.0.1 | ||
* @see <a href="https://github.com/asyncapi/bindings/blob/master/anypointmq/README.md#message-binding-object">Anypoint MQ message binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.anypointmq.v0._0_1.message.AnypointMQMessageBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.anypointmq.v0._0_1.message.AnypointMQMessageBinding.class, names = { | ||
"0.0.1", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class AnypointMQMessageBinding extends MessageBinding {} |
31 changes: 31 additions & 0 deletions
31
asyncapi-core/src/main/java/com/asyncapi/bindings/anypointmq/AnypointMQOperationBinding.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,31 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import com.asyncapi.bindings.OperationBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* Describes <a href="https://docs.mulesoft.com/mq/">Anypoint MQ</a> operation binding. | ||
* | ||
* @version 0.0.1 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/anypointmq#operation-binding-object">Anypoint MQ operation binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.anypointmq.v0._0_1.operation.AnypointMQOperationBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.anypointmq.v0._0_1.operation.AnypointMQOperationBinding.class, names = { | ||
"0.0.1", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class AnypointMQOperationBinding extends OperationBinding {} |
31 changes: 31 additions & 0 deletions
31
asyncapi-core/src/main/java/com/asyncapi/bindings/anypointmq/AnypointMQServerBinding.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,31 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import com.asyncapi.bindings.ServerBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* Describes <a href="https://docs.mulesoft.com/mq/">Anypoint MQ</a> server binding. | ||
* | ||
* @version 0.0.1 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/anypointmq#server-binding-object">Anypoint MQ server binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding.class, names = { | ||
"0.0.1", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class AnypointMQServerBinding extends ServerBinding {} |
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
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
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
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
11 changes: 11 additions & 0 deletions
11
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/anypointmq/AnypointMQ.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,11 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import org.junit.platform.suite.api.SelectPackages; | ||
import org.junit.platform.suite.api.Suite; | ||
import org.junit.platform.suite.api.SuiteDisplayName; | ||
|
||
@Suite | ||
@SuiteDisplayName("Anypoint MQ") | ||
@SelectPackages("com.asyncapi.bindings.anypointmq") | ||
public class AnypointMQ { | ||
} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/anypointmq/AnypointMQLatestTest.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,54 @@ | ||
package com.asyncapi.bindings.anypointmq; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.anypointmq.v0._0_1.channel.AnypointMQChannelBinding; | ||
import com.asyncapi.bindings.anypointmq.v0._0_1.message.AnypointMQMessageBinding; | ||
import com.asyncapi.bindings.anypointmq.v0._0_1.operation.AnypointMQOperationBinding; | ||
import com.asyncapi.bindings.anypointmq.v0._0_1.server.AnypointMQServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("latest") | ||
public class AnypointMQLatestTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<AnypointMQChannelBinding> {{ | ||
super.binding = AnypointMQV0_0_1Test.channelBinding(); | ||
super.bindingTypeClass = AnypointMQChannelBinding.class; | ||
super.pathToBindingJson = "/bindings/anypointmq/latest/channel/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/anypointmq/latest/channel/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/anypointmq/latest/channel/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends BindingTest<AnypointMQMessageBinding> {{ | ||
super.binding = AnypointMQV0_0_1Test.messageBinding(); | ||
super.bindingTypeClass = AnypointMQMessageBinding.class; | ||
super.pathToBindingJson = "/bindings/anypointmq/latest/message/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/anypointmq/latest/message/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/anypointmq/latest/message/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends BindingTest<AnypointMQOperationBinding> {{ | ||
super.binding = AnypointMQV0_0_1Test.operationBinding(); | ||
super.bindingTypeClass = AnypointMQOperationBinding.class; | ||
super.pathToBindingJson = "/bindings/anypointmq/latest/operation/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/anypointmq/latest/operation/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/anypointmq/latest/operation/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends BindingTest<AnypointMQServerBinding> {{ | ||
super.binding = AnypointMQV0_0_1Test.serverBinding(); | ||
super.bindingTypeClass = AnypointMQServerBinding.class; | ||
super.pathToBindingJson = "/bindings/anypointmq/latest/server/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/anypointmq/latest/server/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/anypointmq/latest/server/binding - wrongly extended.json"; | ||
}} | ||
|
||
} |
Oops, something went wrong.