forked from perwendel/spark
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue perwendel#1026 implementation and unit test.
- Loading branch information
A.Lepe
committed
Aug 11, 2022
1 parent
ffab528
commit de9a849
Showing
6 changed files
with
55 additions
and
33 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
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,28 @@ | ||
package spark; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import spark.util.SparkTestUtil; | ||
|
||
import static org.junit.Assert.*; | ||
import static spark.Spark.*; | ||
/** | ||
* @since 2022/08/11. | ||
*/ | ||
public class Issue1026Test { | ||
private static final String ROUTE = "/api/v1/管理者/"; | ||
private static SparkTestUtil http; | ||
|
||
@Before | ||
public void setup() { | ||
http = new SparkTestUtil(4567); | ||
get(ROUTE, (q,a)-> "Get filter matched"); | ||
awaitInitialization(); | ||
} | ||
|
||
@Test | ||
public void testUrl() throws Exception { | ||
SparkTestUtil.UrlResponse response = http.get(ROUTE); | ||
assertEquals(200,response.status); | ||
} | ||
} |
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