Skip to content

Commit aa09ca3

Browse files
committed
added mocking example
1 parent 7712f41 commit aa09ca3

19 files changed

Lines changed: 751 additions & 0 deletions

build-all.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ cd spring-boot/validation && {
1212
./gradlew clean build --info
1313
cd ../../
1414
}
15+
16+
cd spring-boot/mocking && {
17+
chmod +x gradlew
18+
./gradlew clean build --info
19+
cd ../../
20+
}

spring-boot/mocking/.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**
6+
!**/src/test/**
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
17+
### IntelliJ IDEA ###
18+
.idea
19+
*.iws
20+
*.iml
21+
*.ipr
22+
out/
23+
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
31+
### VS Code ###
32+
.vscode/

spring-boot/mocking/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
plugins {
2+
id 'org.springframework.boot' version '2.1.8.RELEASE'
3+
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
4+
id 'java'
5+
}
6+
7+
group = 'io.reflectoring'
8+
version = '0.0.1-SNAPSHOT'
9+
sourceCompatibility = '11'
10+
11+
repositories {
12+
jcenter()
13+
}
14+
15+
dependencies {
16+
implementation 'org.springframework.boot:spring-boot-starter-web'
17+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
18+
19+
testCompile('org.junit.jupiter:junit-jupiter:5.4.0')
20+
testCompile('org.junit.platform:junit-platform-launcher:1.4.0')
21+
testCompile('org.mockito:mockito-junit-jupiter:2.23.0')
22+
testCompile('de.adesso:junit-insights:1.0.0')
23+
24+
compileOnly 'org.projectlombok:lombok'
25+
annotationProcessor 'org.projectlombok:lombok'
26+
}
27+
28+
test {
29+
systemProperty 'de.adesso.junitinsights.enabled', 'true'
30+
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
31+
useJUnitPlatform()
32+
}
33+
54.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

spring-boot/mocking/gradlew

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

spring-boot/mocking/gradlew.bat

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'mocking'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package io.reflectoring.mocking;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class MockingApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(MockingApplication.class, args);
11+
}
12+
13+
}

0 commit comments

Comments
 (0)