-
-
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
24 changed files
with
227 additions
and
764 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
10 changes: 10 additions & 0 deletions
10
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMP.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,10 @@ | ||
package com.asyncapi.bindings.stomp; | ||
|
||
import org.junit.platform.suite.api.SelectPackages; | ||
import org.junit.platform.suite.api.Suite; | ||
import org.junit.platform.suite.api.SuiteDisplayName; | ||
|
||
@Suite | ||
@SuiteDisplayName("STOMP") | ||
@SelectPackages("com.asyncapi.bindings.stomp") | ||
public class STOMP {} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPLatestTest.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.stomp; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("latest") | ||
public class STOMPLatestTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<STOMPChannelBinding> {{ | ||
super.binding = new STOMPChannelBinding(); | ||
super.bindingTypeClass = STOMPChannelBinding.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<STOMPMessageBinding> {{ | ||
super.binding = new STOMPMessageBinding(); | ||
super.bindingTypeClass = STOMPMessageBinding.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<STOMPOperationBinding> {{ | ||
super.binding = new STOMPOperationBinding(); | ||
super.bindingTypeClass = STOMPOperationBinding.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<STOMPServerBinding> {{ | ||
super.binding = new STOMPServerBinding(); | ||
super.bindingTypeClass = STOMPServerBinding.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"; | ||
}} | ||
|
||
} |
96 changes: 0 additions & 96 deletions
96
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPTest.java
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPUnknownVersionTest.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.stomp; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("unknown version") | ||
public class STOMPUnknownVersionTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<STOMPChannelBinding> {{ | ||
super.binding = new STOMPChannelBinding(); | ||
super.bindingTypeClass = STOMPChannelBinding.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<STOMPMessageBinding> {{ | ||
super.binding = new STOMPMessageBinding(); | ||
super.bindingTypeClass = STOMPMessageBinding.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<STOMPOperationBinding> {{ | ||
super.binding = new STOMPOperationBinding(); | ||
super.bindingTypeClass = STOMPOperationBinding.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<STOMPServerBinding> {{ | ||
super.binding = new STOMPServerBinding(); | ||
super.bindingTypeClass = STOMPServerBinding.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"; | ||
}} | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPV0_1_0Test.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.stomp; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("0.1.0") | ||
public class STOMPV0_1_0Test { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<STOMPChannelBinding> {{ | ||
super.binding = new STOMPChannelBinding(); | ||
super.bindingTypeClass = STOMPChannelBinding.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<STOMPMessageBinding> {{ | ||
super.binding = new STOMPMessageBinding(); | ||
super.bindingTypeClass = STOMPMessageBinding.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<STOMPOperationBinding> {{ | ||
super.binding = new STOMPOperationBinding(); | ||
super.bindingTypeClass = STOMPOperationBinding.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<STOMPServerBinding> {{ | ||
super.binding = new STOMPServerBinding(); | ||
super.bindingTypeClass = STOMPServerBinding.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"; | ||
}} | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
asyncapi-core/src/test/kotlin/com/asyncapi/bindings/stomp/STOMPWithoutVersionTest.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.stomp; | ||
|
||
import com.asyncapi.bindings.BindingTest; | ||
import com.asyncapi.bindings.stomp.v0._1_0.channel.STOMPChannelBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.message.STOMPMessageBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.operation.STOMPOperationBinding; | ||
import com.asyncapi.bindings.stomp.v0._1_0.server.STOMPServerBinding; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Nested; | ||
|
||
@DisplayName("without version") | ||
public class STOMPWithoutVersionTest { | ||
|
||
@Nested | ||
@DisplayName("channel") | ||
class ChannelTest extends BindingTest<STOMPChannelBinding> {{ | ||
super.binding = new STOMPChannelBinding(); | ||
super.bindingTypeClass = STOMPChannelBinding.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<STOMPMessageBinding> {{ | ||
super.binding = new STOMPMessageBinding(); | ||
super.bindingTypeClass = STOMPMessageBinding.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<STOMPOperationBinding> {{ | ||
super.binding = new STOMPOperationBinding(); | ||
super.bindingTypeClass = STOMPOperationBinding.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<STOMPServerBinding> {{ | ||
super.binding = new STOMPServerBinding(); | ||
super.bindingTypeClass = STOMPServerBinding.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"; | ||
}} | ||
|
||
} |
42 changes: 0 additions & 42 deletions
42
...e/src/test/kotlin/com/asyncapi/bindings/stomp/latest/channel/STOMPChannelBindingTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.