This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
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.
Issue #15: curl on /2013/test times out (end "/")
- Loading branch information
Showing
11 changed files
with
80 additions
and
30 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
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,29 @@ | ||
package test.ldp | ||
|
||
import org.scalatest.WordSpec | ||
import org.scalatest.Matchers | ||
import rww.ldp.RActor | ||
import java.net.{URI, URL} | ||
|
||
/** | ||
* Created by hjs on 12/11/2013. | ||
*/ | ||
class RActorTest extends WordSpec with Matchers { | ||
import RActor._ | ||
|
||
val localBase = new URI("https://localhost:8443/2013/") | ||
|
||
s"base=$localBase tests " in { | ||
local(new URI("/2013/"), localBase ) should be (Some("")) | ||
local(new URI("/2013/test"), localBase ) should be (Some("test")) | ||
local(new URI("/2013/test/"), localBase ) should be (Some("test")) | ||
local(new URI("/2013/test/img"), localBase ) should be (Some("test/img")) | ||
local(new URI("/2013/test/img/"), localBase ) should be (Some("test/img")) | ||
local(new URI("/2013/test/img/cat.jpg"), localBase ) should be (Some("test/img/cat")) | ||
local(new URI("/2013/test/img/.acl.ttl"), localBase ) should be (Some("test/img")) | ||
} | ||
|
||
|
||
|
||
|
||
} |
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,4 +1,4 @@ | ||
package rww.ldp | ||
package test.ldp | ||
|
||
import org.scalatest._ | ||
import scala.concurrent._ | ||
|
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