Skip to content

Commit 0a8ec43

Browse files
committed
Extract Test objects to a separate file
1 parent 2aab717 commit 0a8ec43

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

kotlin/src/test/kotlin/org/axonframework/extensions/kotlin/CommandGatewayExtensionsTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,3 @@ class CommandGatewayExtensionsTest {
115115
verify { subjectGateway.sendAndWait<Any>(exampleCommand, timeoutInterval, defaultTimeUnit) }
116116
}
117117
}
118-
119-
internal data class ExampleCommand(val id: String)

kotlin/src/test/kotlin/org/axonframework/extensions/kotlin/QueryGatewayExtensionsTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,3 @@ class QueryGatewayExtensionsTest {
119119
}
120120

121121
}
122-
123-
private data class ExampleQuery(val value: Number)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.axonframework.extensions.kotlin
2+
3+
/**
4+
* Simple Query class to be used in tests.
5+
*/
6+
internal data class ExampleQuery(val value: Number)
7+
8+
/**
9+
* Simple Command class to be used in tests.
10+
*/
11+
internal data class ExampleCommand(val id: String)

0 commit comments

Comments
 (0)