Skip to content

Commit 1fe63f1

Browse files
author
Nickolay Savchenko
committed
Add test_server module
1 parent 6e5ea63 commit 1fe63f1

File tree

16 files changed

+190
-48
lines changed

16 files changed

+190
-48
lines changed

.idea/gradle.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 16 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
4646

4747
**SocketController.groovy**
4848
``` groovy
49-
@Log4j
49+
@Slf4j
5050
@RestController
5151
class SocketController {
5252

example-client/src/androidTest/java/ua/naiksoftware/stompclientexample/ApplicationTest.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/src/test/java/ua/naiksoftware/stomp/ExampleUnitTest.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':example-client', ':lib'
1+
include ':example-client', ':lib', ':test-server'

test-server/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Example backend with STOMP
2+
3+
Backend for project https://github.com/NaikSoftware/StompProtocolAndroid/tree/master/example-client
4+
5+
You need configure MQ server before (for example RabbitMQ or ActiveMQ)

test-server/build.gradle

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
group 'ua.naiksoftware.example_server'
2+
version '1.0-SNAPSHOT'
3+
4+
buildscript {
5+
6+
ext {
7+
springBootVersion = '2.0.6.RELEASE'
8+
springCloudVersion = 'Finchley.SR1'
9+
}
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
dependencies {
15+
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
16+
}
17+
}
18+
19+
apply plugin: 'groovy'
20+
apply plugin: 'org.springframework.boot'
21+
apply plugin: 'io.spring.dependency-management'
22+
23+
sourceCompatibility = JavaVersion.VERSION_1_8
24+
25+
repositories {
26+
mavenCentral()
27+
}
28+
29+
dependencies {
30+
compile("org.springframework.boot:spring-boot-starter-websocket")
31+
compile 'org.codehaus.groovy:groovy-all:2.4.15'
32+
}
33+
34+
dependencyManagement {
35+
imports {
36+
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
37+
}
38+
}

0 commit comments

Comments
 (0)