@genesislcap/blank-app-seed 3.15.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed-config",
3
3
  "description": "Genesis Blank App Seed Configuration",
4
- "version": "3.15.0",
4
+ "version": "3.16.1",
5
5
  "license": "Apache-2.0",
6
6
  "genxSeedConfig": {
7
7
  "exclude": [
@@ -35,6 +35,7 @@
35
35
  ".sh",
36
36
  ".json",
37
37
  ".js",
38
+ ".kt",
38
39
  ".kts",
39
40
  ".ts",
40
41
  ".md",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.16.1](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.16.0...v3.16.1) (2024-06-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fix issue with test not trigger assemble itself GENC-543 (#261) ff38c00
9
+
10
+ ## [3.16.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.15.0...v3.16.0) (2024-06-20)
11
+
12
+
13
+ ### Features
14
+
15
+ * Add test dependencies to server in blank-app-seed GENC-543 (#259) d87c4f9
16
+
3
17
  ## [3.15.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.14.1...v3.15.0) (2024-06-20)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "3.15.0",
4
+ "version": "3.16.1",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"
@@ -9,6 +9,7 @@ subprojects {
9
9
 
10
10
  dependencies {
11
11
  implementation("com.h2database:h2:2.2.224")
12
+ testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:1.9.0")
12
13
  }
13
14
  tasks {
14
15
  withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
@@ -36,6 +37,11 @@ tasks {
36
37
  dependsOn(subproject.tasks.named("clean"))
37
38
  }
38
39
  }
40
+ test {
41
+ for(subproject in subprojects){
42
+ dependsOn(subproject.tasks.named("test"))
43
+ }
44
+ }
39
45
  }
40
46
 
41
47
  allprojects {
@@ -86,5 +92,12 @@ allprojects {
86
92
  from(components["java"])
87
93
  }
88
94
  }
95
+ tasks{
96
+ test {
97
+ systemProperty("DbLayer", "SQL")
98
+ systemProperty("DbHost", "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1")
99
+ systemProperty("DbQuotedIdentifiers", "true")
100
+ useJUnitPlatform()
101
+ }
102
+ }
89
103
  }
90
-
@@ -1,6 +1,9 @@
1
1
  dependencies {
2
2
  compileOnly(genesis("script-dependencies"))
3
3
  genesisGeneratedCode(withTestDependency = true)
4
+ testImplementation(genesis("dbtest"))
5
+ testImplementation(genesis("testsupport"))
6
+ testImplementation(genesis("pal-eventhandler"))
4
7
  }
5
8
 
6
9
  description = "{{appName}}-app"
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Full documentation on event handler tests may be found here >> https://learn.genesis.global/docs/server/event-handler/testing/#simple-test
3
+ */
4
+
5
+ import global.genesis.db.rx.entity.multi.AsyncEntityDb
6
+ import global.genesis.testsupport.client.eventhandler.EventClientSync
7
+ import global.genesis.testsupport.jupiter.GenesisJunit
8
+ import global.genesis.testsupport.jupiter.ScriptFile
9
+ import javax.inject.Inject
10
+ import org.junit.jupiter.api.Test
11
+ import org.junit.jupiter.api.extension.ExtendWith
12
+
13
+ @ExtendWith(GenesisJunit::class)
14
+ @ScriptFile("{{appName}}-eventhandler.kts")
15
+ class EventHandlerTest {
16
+ @Inject
17
+ lateinit var client: EventClientSync
18
+
19
+ @Inject
20
+ lateinit var entityDb: AsyncEntityDb
21
+
22
+ @Test
23
+ fun `test EventHandler`(){
24
+ //TODO Write Test
25
+ }
26
+
27
+ }