-
-
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
91 changed files
with
1,449 additions
and
58 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
asyncapi-core/src/main/java/com/asyncapi/bindings/stomp/STOMPChannelBinding.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,36 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
import com.asyncapi.bindings.ChannelBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes STOMP channel binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/stomp#channel-binding-object">STOMP channel binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public abstract class STOMPChannelBinding extends ChannelBinding {} |
36 changes: 36 additions & 0 deletions
36
asyncapi-core/src/main/java/com/asyncapi/bindings/stomp/STOMPMessageBinding.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,36 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
import com.asyncapi.bindings.MessageBinding; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes STOMP message binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#message-binding-object">STOMP message binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public abstract class STOMPMessageBinding extends MessageBinding {} |
36 changes: 36 additions & 0 deletions
36
asyncapi-core/src/main/java/com/asyncapi/bindings/stomp/STOMPOperationBinding.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,36 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
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; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes STOMP operation binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#operation-binding-object">STOMP operation binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public abstract class STOMPOperationBinding extends OperationBinding {} |
36 changes: 36 additions & 0 deletions
36
asyncapi-core/src/main/java/com/asyncapi/bindings/stomp/STOMPServerBinding.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,36 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
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; | ||
|
||
/** | ||
* This class <b>MUST NOT</b> contain any properties. | ||
* <p> | ||
* Its name is reserved for future use. | ||
* <p> | ||
* Describes STOMP server binding. | ||
* | ||
* @version 0.1.0 | ||
* @see <a href="https://github.com/asyncapi/bindings/tree/master/sqs#server-binding-object">STOMP server binding</a> | ||
* @author Pavel Bodiachevskii | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
defaultImpl = com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding.class, | ||
property = "bindingVersion", | ||
visible = true | ||
) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding.class, names = { | ||
"0.1.0", | ||
"latest" | ||
}), | ||
}) | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public abstract class STOMPServerBinding 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
5 changes: 5 additions & 0 deletions
5
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/BindingsTest.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
100 changes: 100 additions & 0 deletions
100
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPTest.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,100 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
import com.asyncapi.bindings.stomp._1_0.channel.STOMPChannelBindingTest; | ||
import com.asyncapi.bindings.stomp._1_0.message.STOMPMessageBindingTest; | ||
import com.asyncapi.bindings.stomp._1_0.operation.STOMPOperationBindingTest; | ||
import com.asyncapi.bindings.stomp._1_0.server.STOMPServerBindingTest; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
public abstract class STOMPTest { | ||
|
||
@Nested | ||
@DisplayName("unknown version") | ||
class UnknownVersion { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class Channel extends com.asyncapi.bindings.stomp.latest.channel.STOMPChannelBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends com.asyncapi.bindings.stomp.latest.message.STOMPMessageBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends com.asyncapi.bindings.stomp.latest.operation.STOMPOperationBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends com.asyncapi.bindings.stomp.latest.server.STOMPServerBindingTest {} | ||
|
||
} | ||
|
||
@Nested | ||
@DisplayName("without version") | ||
class WithoutVersion { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class Channel extends com.asyncapi.bindings.stomp.withoutversion.channel.STOMPChannelBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends com.asyncapi.bindings.stomp.withoutversion.message.STOMPMessageBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends com.asyncapi.bindings.stomp.withoutversion.operation.STOMPOperationBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends com.asyncapi.bindings.stomp.withoutversion.server.STOMPServerBindingTest {} | ||
|
||
} | ||
|
||
@Nested | ||
@DisplayName("latest") | ||
class Latest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class Channel extends com.asyncapi.bindings.stomp.latest.channel.STOMPChannelBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends com.asyncapi.bindings.stomp.latest.message.STOMPMessageBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends com.asyncapi.bindings.stomp.latest.operation.STOMPOperationBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends com.asyncapi.bindings.stomp.latest.server.STOMPServerBindingTest {} | ||
|
||
} | ||
|
||
@Nested | ||
@DisplayName("0.1.0") | ||
class V0_1_0 { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class Channel extends STOMPChannelBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("message") | ||
class Message extends STOMPMessageBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("operation") | ||
class Operation extends STOMPOperationBindingTest {} | ||
|
||
@Nested | ||
@DisplayName("server") | ||
class Server extends STOMPServerBindingTest {} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.