project renamed to wson
This commit is contained in:
4
test-utils/build.sbt
Normal file
4
test-utils/build.sbt
Normal file
@@ -0,0 +1,4 @@
|
||||
organization := (organization in LocalRootProject).value
|
||||
name := "test-utils"
|
||||
version := (version in LocalRootProject).value
|
||||
skip in publish := true
|
@@ -0,0 +1,16 @@
|
||||
package net.woggioni.wson.test;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
public class JsonBomb {
|
||||
public static InputStream infiniteJson() {
|
||||
return new InputStream() {
|
||||
int index = 0;
|
||||
final String monomer = "{\"key\":[";
|
||||
@Override
|
||||
public int read() {
|
||||
return monomer.charAt(index++ % monomer.length());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
BIN
test-utils/src/main/resources/citylots.jbon.xz
Normal file
BIN
test-utils/src/main/resources/citylots.jbon.xz
Normal file
Binary file not shown.
BIN
test-utils/src/main/resources/citylots.json.xz
Normal file
BIN
test-utils/src/main/resources/citylots.json.xz
Normal file
Binary file not shown.
36
test-utils/src/main/resources/logging.properties
Normal file
36
test-utils/src/main/resources/logging.properties
Normal file
@@ -0,0 +1,36 @@
|
||||
handlers=java.util.logging.ConsoleHandler
|
||||
config=
|
||||
sun.net.www.protocol.http.HttpURLConnection.handlers=java.util.logging.ConsoleHandler
|
||||
#sun.net.www.protocol.http.HttpURLConnection.level=ALL
|
||||
|
||||
java.util.logging.FileHandler.level = WARNING
|
||||
java.util.logging.FileHandler.filter =
|
||||
java.util.logging.FileHandler.formatter =
|
||||
java.util.logging.FileHandler.encoding =
|
||||
java.util.logging.FileHandler.limit =
|
||||
java.util.logging.FileHandler.count =
|
||||
java.util.logging.FileHandler.append = false
|
||||
java.util.logging.FileHandler.pattern = log.%u.%g.txt
|
||||
|
||||
#java.util.logging.ConsoleHandler.level = ALL
|
||||
java.util.logging.ConsoleHandler.filter =
|
||||
java.util.logging.ConsoleHandler.formatter =
|
||||
java.util.logging.ConsoleHandler.encoding =
|
||||
|
||||
java.util.logging.StreamHandler.level = WARNING
|
||||
java.util.logging.StreamHandler.filter =
|
||||
java.util.logging.StreamHandler.formatter =
|
||||
java.util.logging.StreamHandler.encoding =
|
||||
|
||||
java.util.logging.SocketHandler.level = WARNING
|
||||
java.util.logging.SocketHandler.filter =
|
||||
java.util.logging.SocketHandler.formatter =
|
||||
java.util.logging.SocketHandler.encoding =
|
||||
java.util.logging.SocketHandler.host =
|
||||
java.util.logging.SocketHandler.port =
|
||||
|
||||
java.util.logging.MemoryHandler.level = WARNING
|
||||
java.util.logging.MemoryHandler.filter =
|
||||
java.util.logging.MemoryHandler.size =
|
||||
java.util.logging.MemoryHandler.push =
|
||||
java.util.logging.MemoryHandler.target =
|
31
test-utils/src/main/resources/test.json
Normal file
31
test-utils/src/main/resources/test.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"widget": {
|
||||
"debug": "on",
|
||||
"window": {
|
||||
"parent" : null,
|
||||
"title": "Sample Konfabulator Widget",
|
||||
"name": "main_window",
|
||||
"width": 500,
|
||||
"height": 501
|
||||
},
|
||||
"image": {
|
||||
"src": "Images/Sun.png",
|
||||
"name": "sun1",
|
||||
"hOffset": 250,
|
||||
"vOffset": 250,
|
||||
"alignment": "center",
|
||||
"tags" : ["Ireland", "Amazon", "development"],
|
||||
"monochromatic" : false
|
||||
},
|
||||
"text": {
|
||||
"data": "Click Here",
|
||||
"size": 36,
|
||||
"style": "bold",
|
||||
"name": "text1",
|
||||
"hOffset": 250,
|
||||
"vOffset": 100,
|
||||
"alignment": "center",
|
||||
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
|
||||
}
|
||||
}
|
||||
}
|
318
test-utils/src/main/resources/wordpress.json
Normal file
318
test-utils/src/main/resources/wordpress.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user