-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
151 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
group 'com.itangcent' | ||
version '1.9.1.0.183.0' | ||
version '1.9.2.0.183.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.itangcent.test | ||
|
||
import com.itangcent.common.model.URL | ||
import org.junit.jupiter.api.Assertions.assertEquals | ||
import org.junit.jupiter.api.Test | ||
|
||
class URLTest { | ||
|
||
@Test | ||
fun testURLConcatAndUnion() { | ||
val nil = URL.of() | ||
val url1 = URL.of("/a") | ||
val url2 = URL.of("/b") | ||
val url3 = URL.of("/c", "/d") | ||
assertEquals("/a", nil.concat(url1).toString()) | ||
assertEquals("/a/b", url1.concat(url2).toString()) | ||
assertEquals("/b/c,/b/d", url2.concat(url3).toString()) | ||
assertEquals("/a", nil.union(url1).toString()) | ||
assertEquals("/a,/b", url1.union(url2).toString()) | ||
assertEquals("/b,/c,/d", url2.union(url3).toString()) | ||
} | ||
|
||
@Test | ||
fun testURLMap() { | ||
val nil = URL.of() | ||
val url1 = URL.of("/a") | ||
val url2 = URL.of("/b") | ||
val url3 = URL.of("/c", "/d") | ||
assertEquals("/x", nil.map { "$it/x" }.toString()) | ||
assertEquals("/a/x", url1.map { "$it/x" }.toString()) | ||
assertEquals("/b/x", url2.map { "$it/x" }.toString()) | ||
assertEquals("/c/x,/d/x", url3.map { "$it/x" }.toString()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
<a href="https://github.com/tangcent/easy-yapi/releases/tag/v1.9.1.0">v1.9.1.0.183.0(2020-03-31)</a> | ||
<a href="https://github.com/tangcent/easy-yapi/releases/tag/v1.9.2.0">v1.9.2.0.183.0(2020-04-25)</a> | ||
<br/> | ||
<a href="https://github.com/tangcent/easy-yapi/blob/master/IDEA_CHANGELOG.md">Full Changelog</a> | ||
<ul>bug-fix: | ||
<li>fix HttpRequest querys<a | ||
href="https://github.com/tangcent/easy-api/pull/267">(#267)</a> | ||
<li>fix HttpRequfix: support `java`/`kt`/`scala` in all action<a | ||
href="https://github.com/tangcent/easy-api/pull/271">(#271)</a> | ||
</li> | ||
</ul> | ||
<ul>enhancement: | ||
<li>new rule tool: localStorage<a | ||
href="https://github.com/tangcent/easy-api/pull/268">(#268)</a> | ||
<li>support new method 'method/declaration' of 'arg' <a | ||
href="https://github.com/tangcent/easy-api/pull/273">(#273)</a> | ||
</li> | ||
|
||
<li>opti: support rule `folder.name` <a | ||
href="https://github.com/tangcent/easy-api/pull/274">(#274)</a> | ||
</li> | ||
|
||
<li>opti: support new rule `path.multi` <a | ||
href="https://github.com/tangcent/easy-api/pull/275">(#275)</a> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<idea-plugin> | ||
<id>com.itangcent.idea.plugin.easy-yapi</id> | ||
<name>EasyYapi</name> | ||
<version>1.9.1.0.183.0</version> | ||
<version>1.9.2.0.183.0</version> | ||
<vendor email="[email protected]" url="https://github.com/tangcent">Tangcent</vendor> | ||
|
||
<description><![CDATA[ Description will be added by gradle build]]></description> | ||
|