Skip to content

Commit a526154

Browse files
committed
优化test
1 parent 60635e6 commit a526154

File tree

3 files changed

+6
-62
lines changed

3 files changed

+6
-62
lines changed

hsweb-system/hsweb-system-workflow/hsweb-system-workflow-local/src/test/java/org/hswebframework/web/workflow/dimension/DefaultCandidateDimensionParserTest.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DefaultCandidateDimensionParserTest extends Specification {
2323
setup:
2424
def config = """ {"type":"user","idList":["admin"]} """
2525
and:
26-
def dimension = parser.parse(config)
26+
def dimension = parser.parse(null,config)
2727
expect:
2828
dimension != null
2929
dimension.getCandidateUserIdList() != null
@@ -35,7 +35,7 @@ class DefaultCandidateDimensionParserTest extends Specification {
3535
setup:
3636
def config = """ {"type":"role","idList":["admin"]} """
3737
and:
38-
def dimension = parser.parse(config)
38+
def dimension = parser.parse(null,config)
3939
expect:
4040
dimension != null
4141
dimension.getCandidateUserIdList() != null
@@ -47,7 +47,7 @@ class DefaultCandidateDimensionParserTest extends Specification {
4747
setup:
4848
def config = """ {"type":"position","idList":["test"],"tree":"parent"} """
4949
and:
50-
def dimension = parser.parse(config)
50+
def dimension = parser.parse(null,config)
5151
expect:
5252
dimension != null
5353
dimension.getCandidateUserIdList() != null
@@ -58,7 +58,7 @@ class DefaultCandidateDimensionParserTest extends Specification {
5858
setup:
5959
def config = """ {"type":"department","idList":["test"]} """
6060
and:
61-
def dimension = parser.parse(config)
61+
def dimension = parser.parse(null,config)
6262
expect:
6363
dimension != null
6464
dimension.getCandidateUserIdList() != null
@@ -69,7 +69,7 @@ class DefaultCandidateDimensionParserTest extends Specification {
6969
setup:
7070
def config = """ {"type":"org","idList":["test"]} """
7171
and:
72-
def dimension = parser.parse(config)
72+
def dimension = parser.parse(null,config)
7373
expect:
7474
dimension != null
7575
dimension.getCandidateUserIdList() != null

hsweb-system/hsweb-system-workflow/hsweb-system-workflow-local/src/test/java/org/hswebframework/web/workflow/flowable/ControllerTest.java

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

hsweb-system/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<artifactId>hsweb-framework</artifactId>
77
<groupId>org.hswebframework.web</groupId>
88
<version>3.0.0-RC-SNAPSHOT</version>
9+
<relativePath>../pom.xml</relativePath>
910
</parent>
1011
<modelVersion>4.0.0</modelVersion>
1112

0 commit comments

Comments
 (0)