Skip to content

Commit

Permalink
! make build pass (mvn test-compile / mvn install -Dmaven.test.skip)
Browse files Browse the repository at this point in the history
- remove filters of `antx.properties`
- fix test code compile error
- fix dependencies
  - remove nonexistent 'org.springframework:spring:999-not-exist-v3'
  - upgrade fastjson to 1.2.76
  • Loading branch information
oldratlee committed Jul 20, 2021
1 parent 7285667 commit fc05149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.29-SNAPSHOT</version>
<version>1.2.76</version>
</dependency>
<!--quartz-->
<dependency>
Expand Down Expand Up @@ -175,6 +175,7 @@
<artifactId>guava</artifactId>
<version>16.0</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand All @@ -189,16 +190,13 @@
<artifactId>log4j</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>999-not-exist-v3</version>
</dependency>

<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
Expand Down Expand Up @@ -362,10 +360,6 @@
</excludes>
</testResource>
</testResources>
<filters>
<filter>${user.home}/antx.properties</filter>
<filter>${user.dir}/antx.properties</filter>
</filters>
</build>
<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private String getBizId() {
}

@Test
public void testMachineRun() {
public void testMachineRun() throws Exception {
String bizId = getBizId();
System.out.println("bizId:" + bizId);

Expand All @@ -40,7 +40,7 @@ public void testMachineRun() {
m.run();

Assert.assertEquals("timer1", m.getCurrentStateName());
bulbasaurJobProcessor.execute();
bulbasaurJobProcessor.execute(null);
ScheduleMachine end = scheduleMachineFactory.newInstance(bizId, "process");

Assert.assertEquals("end", end.getCurrentStateName());
Expand Down

0 comments on commit fc05149

Please sign in to comment.