Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Order Management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Harshitha Sai Muppala
Order Management
Commits
1db2235d
Commit
1db2235d
authored
Jul 27, 2023
by
Harshitha Sai Muppala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the spock tests for the service layer
parent
fd01c49a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
16 deletions
+37
-16
build.gradle
build.gradle
+23
-3
OrderManagementApplicationTests.java
...ent/order_management/OrderManagementApplicationTests.java
+14
-13
No files found.
build.gradle
View file @
1db2235d
plugins
{
plugins
{
id
'java'
id
'org.springframework.boot'
version
'3.1.2'
id
'org.springframework.boot'
version
'3.1.2'
id
'io.spring.dependency-management'
version
'1.1.2'
id
'io.spring.dependency-management'
version
'1.1.2'
id
'groovy'
id
'jacoco'
}
}
group
=
'com.example.ordermangement'
group
=
'com.example.ordermangement'
...
@@ -26,10 +27,29 @@ dependencies {
...
@@ -26,10 +27,29 @@ dependencies {
implementation
'org.springframework.boot:spring-boot-starter-webflux'
implementation
'org.springframework.boot:spring-boot-starter-webflux'
compileOnly
'org.projectlombok:lombok'
compileOnly
'org.projectlombok:lombok'
annotationProcessor
'org.projectlombok:lombok'
annotationProcessor
'org.projectlombok:lombok'
testImplementation
'org.springframework.boot:spring-boot-starter-test'
testImplementation
'io.projectreactor:reactor-test'
// testImplementation 'org.codehaus.groovy:groovy-all:3.0.8'
//// https://mvnrepository.com/artifact/org.spockframework/spock-spring
// testImplementation 'org.spockframework:spock-spring:2.4-M1-groovy-3.0'
// mandatory dependencies for using Spock
implementation
'org.codehaus.groovy:groovy:3.0.10'
testImplementation
platform
(
"org.spockframework:spock-bom:2.1-groovy-3.0"
)
testImplementation
"org.spockframework:spock-core"
// dependencies used by examples in this project
implementation
"org.codehaus.groovy:groovy-sql:3.0.9"
}
}
tasks
.
named
(
'test'
)
{
tasks
.
named
(
'test'
)
{
useJUnitPlatform
()
useJUnitPlatform
()
}
}
test
{
finalizedBy
jacocoTestReport
// report is always generated after tests run
}
jacocoTestReport
{
dependsOn
test
// tests are required to run before generating the report
}
src/test/java/com/example/ordermangement/order_management/OrderManagementApplicationTests.java
View file @
1db2235d
package
com
.
example
.
ordermangement
.
order_management
;
//package com.example.ordermangement.order_management;
//
import
org.junit.jupiter.api.Test
;
//import org.junit.jupiter.api.Test;
import
org.springframework.boot.test.context.SpringBootTest
;
//
//import spock.lang.Specification;
@SpringBootTest
//
class
OrderManagementApplicationTests
{
//@SpringBootTest
//class OrderManagementApplicationTests extends Specification {
@Test
//
void
contextLoads
()
{
// @Test
}
// void contextLoads() {
// }
}
//
//}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment