Skip to content

Commit

Permalink
update: new version 1.5.34
Browse files Browse the repository at this point in the history
  • Loading branch information
mySingleLive committed Nov 28, 2023
1 parent 9c96626 commit 12e280b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Forest有哪些特性?
<dependency>
<groupId>com.dtflys.forest</groupId>
<artifactId>forest-spring-boot-starter</artifactId>
<version>1.5.33</version>
<version>1.5.34</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion forest-examples/example-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<properties>
<java.version>1.8</java.version>
<maven.deploy.skip>true</maven.deploy.skip>
<forest.version>1.5.33</forest.version>
<forest.version>1.5.34</forest.version>
</properties>

<parent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dtflys.forest.solon.test;

import com.dtflys.forest.Forest;
import com.dtflys.forest.backend.HttpBackend;
import com.dtflys.forest.config.ForestConfiguration;
import com.dtflys.forest.exceptions.ForestRuntimeException;
Expand Down Expand Up @@ -132,31 +133,32 @@ public void testRetry() {
}
HttpBackend backend = config0.getBackend();
String backendName = backend.getName();
String version = Forest.VERSION;
Mockito.verify(logger).info("[Forest] Request (" + backendName + "): \n" +
"\t[Retry]: 1\n" +
"\tGET https://www.thebeastshop.com/autopage/shops.htm HTTPS\n" +
"\tHeaders: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + version);
Mockito.verify(logger).info("[Forest] Request (" + backendName + "): \n" +
"\t[Retry]: 2\n" +
"\tGET https://www.thebeastshop.com/autopage/shops.htm HTTPS\n" +
"\tHeaders: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + version);
Mockito.verify(logger).info("[Forest] Request (" + backendName + "): \n" +
"\t[Retry]: 3\n" +
"\tGET https://www.thebeastshop.com/autopage/shops.htm HTTPS\n" +
"\tHeaders: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + version);
Mockito.verify(logger).info("[Forest] Request (" + backendName + "): \n" +
"\t[Retry]: 4\n" +
"\tGET https://www.thebeastshop.com/autopage/shops.htm HTTPS\n" +
"\tHeaders: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + version);
Mockito.verify(logger).info("[Forest] Request (" + backendName + "): \n" +
"\t[Retry]: 5\n" +
"\tGET https://www.thebeastshop.com/autopage/shops.htm HTTPS\n" +
"\tHeaders: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + version);
// Mockito.verify(logger).info("[Forest] [Network Error]: connect timed out");

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dtflys.forest.solon.test;

import com.dtflys.forest.Forest;
import com.dtflys.forest.config.ForestConfiguration;
import com.dtflys.forest.http.ForestRequest;
import com.dtflys.forest.logging.ForestLogger;
Expand Down Expand Up @@ -52,7 +53,7 @@ public void testClient2() {
Mockito.verify(logger).info("[Forest] [Test2] 请求: \n" +
"\tGET https://gitee.com/dt_flys HTTPS\n" +
"\t请求头: \n" +
"\t\tUser-Agent: forest/1.5.33");
"\t\tUser-Agent: forest/" + Forest.VERSION);
}


Expand Down

0 comments on commit 12e280b

Please sign in to comment.