Skip to content

Commit 40c400d

Browse files
committed
some testing for URLCache
1 parent af4562a commit 40c400d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/src/atk/io/TestURLCache.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import java.io.PrintWriter
55

66
object TestURLCache {
77
def main(args: Array[String]) {
8+
URLCache.debug=true
9+
URLCache.queryWait = 1000
10+
val us = URLCache.query("https://brickset.com/buy/amazon", URLCache.DAY, cookies = "PreferredCountry2=CountryCode=US&CountryName=United States", key = "brickset_US")
11+
val eu = URLCache.query("https://brickset.com/buy/amazon", URLCache.DAY, encoding = "UTF-8", cookies = "PreferredCountry2=CountryCode=NL&CountryName=Netherlands", key = "brickset_EU")
812

913
}
1014
}

0 commit comments

Comments
 (0)