-
-
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
29 changed files
with
577 additions
and
54 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
asyncapi-core/src/main/java/com/asyncapi/bindings/sqs/SQSChannelBinding.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,33 @@ | ||
package com.asyncapi.bindings.sqs; | ||
|
||
import com.asyncapi.bindings.ChannelBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes SQS channel binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#channel-binding-object">SQS channel binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.sqs.v0._1_0.channel.SQSChannelBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.sqs.v0._1_0.channel.SQSChannelBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class SQSChannelBinding extends ChannelBinding {} |
33 changes: 33 additions & 0 deletions
33
asyncapi-core/src/main/java/com/asyncapi/bindings/sqs/SQSMessageBinding.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,33 @@ | ||
package com.asyncapi.bindings.sqs; | ||
|
||
import com.asyncapi.bindings.MessageBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes SQS message binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#message-binding-object">SQS message binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.sqs.v0._1_0.message.SQSMessageBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.sqs.v0._1_0.message.SQSMessageBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class SQSMessageBinding extends MessageBinding {} |
33 changes: 33 additions & 0 deletions
33
asyncapi-core/src/main/java/com/asyncapi/bindings/sqs/SQSOperationBinding.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,33 @@ | ||
package com.asyncapi.bindings.sqs; | ||
|
||
import com.asyncapi.bindings.OperationBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes SQS operation binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#operation-binding-object">SQS operation binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.sqs.v0._1_0.operation.SQSOperationBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.sqs.v0._1_0.operation.SQSOperationBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class SQSOperationBinding extends OperationBinding {} |
33 changes: 33 additions & 0 deletions
33
asyncapi-core/src/main/java/com/asyncapi/bindings/sqs/SQSServerBinding.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,33 @@ | ||
package com.asyncapi.bindings.sqs; | ||
|
||
import com.asyncapi.bindings.ServerBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes SQS server binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#server-binding-object">SQS server binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.sqs.v0._1_0.server.SQSServerBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.sqs.v0._1_0.server.SQSServerBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@EqualsAndHashCode(callSuper = true) | ||
public class SQSServerBinding 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/sqs/SQS.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.sqs; | ||
|
||
import org.junit.platform.suite.api.SelectPackages; | ||
import org.junit.platform.suite.api.Suite; | ||
import org.junit.platform.suite.api.SuiteDisplayName; | ||
|
||
@Suite | ||
@SuiteDisplayName("SQS") | ||
@SelectPackages("com.asyncapi.bindings.sqs") | ||
public class SQS { | ||
} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/sqs/SQSLatestTest.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.sqs; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.sqs.v0._1_0.channel.SQSChannelBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.message.SQSMessageBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.operation.SQSOperationBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.server.SQSServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("latest") | ||
public class SQSLatestTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<SQSChannelBinding> {{ | ||
super.binding = SQSV0_1_0Test.channelBinding(); | ||
super.bindingTypeClass = SQSChannelBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/latest/channel/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/latest/channel/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/latest/channel/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends BindingTest<SQSMessageBinding> {{ | ||
super.binding = SQSV0_1_0Test.messageBinding(); | ||
super.bindingTypeClass = SQSMessageBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/latest/message/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/latest/message/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/latest/message/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends BindingTest<SQSOperationBinding> {{ | ||
super.binding = SQSV0_1_0Test.operationBinding(); | ||
super.bindingTypeClass = SQSOperationBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/latest/operation/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/latest/operation/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/latest/operation/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends BindingTest<SQSServerBinding> {{ | ||
super.binding = SQSV0_1_0Test.serverBinding(); | ||
super.bindingTypeClass = SQSServerBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/latest/server/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/latest/server/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/latest/server/binding - wrongly extended.json"; | ||
}} | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/sqs/SQSUnknownVersionTest.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.sqs; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.sqs.v0._1_0.channel.SQSChannelBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.message.SQSMessageBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.operation.SQSOperationBinding; | ||
import com.asyncapi.bindings.sqs.v0._1_0.server.SQSServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("unknown version") | ||
public class SQSUnknownVersionTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<SQSChannelBinding> {{ | ||
super.binding = SQSV0_1_0Test.channelBinding(); | ||
super.bindingTypeClass = SQSChannelBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/unknown version/channel/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/unknown version/channel/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/unknown version/channel/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends BindingTest<SQSMessageBinding> {{ | ||
super.binding = SQSV0_1_0Test.messageBinding(); | ||
super.bindingTypeClass = SQSMessageBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/unknown version/message/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/unknown version/message/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/unknown version/message/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends BindingTest<SQSOperationBinding> {{ | ||
super.binding = SQSV0_1_0Test.operationBinding(); | ||
super.bindingTypeClass = SQSOperationBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/unknown version/operation/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/unknown version/operation/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/unknown version/operation/binding - wrongly extended.json"; | ||
}} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends BindingTest<SQSServerBinding> {{ | ||
super.binding = SQSV0_1_0Test.serverBinding(); | ||
super.bindingTypeClass = SQSServerBinding.class; | ||
super.pathToBindingJson = "/bindings/default implementation/unknown version/server/binding.json"; | ||
super.pathToExtendedBindingJson = "/bindings/default implementation/unknown version/server/binding - extended.json"; | ||
super.pathToWronglyExtendedBindingJson = "/bindings/default implementation/unknown version/server/binding - wrongly extended.json"; | ||
}} | ||
|
||
} |
Oops, something went wrong.