Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public static class TestParams {
public JsonValue expected_value;
public JsonValue expected_params;
public String canonical;

// provides the test name to Junit runner
@Override public String toString() {
return filename + ":" + name;
}
}

public static Collection<Object[]> makeParameters(String... filenames) {
Expand All @@ -51,7 +56,7 @@ private static Collection<Object[]> internalMakeParameters(String filename) {
JsonReader reader = Json.createReader(AbstractSpecificationTests.class.getClassLoader().getResourceAsStream(filename));
for (JsonValue vt : reader.readArray()) {
TestParams p = makeOneTest(basename, vt);
result.add(new Object[] { basename + ": " + p.name, p });
result.add(new Object[] { p });
}

return result;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.greenbytes.http.sfv;

public class SpecificationBinaryTests {
}
4 changes: 2 additions & 2 deletions src/test/java/org/greenbytes/http/sfv/SpecificationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public static Collection<Object[]> parameters() {
"param-listlist.json", "string.json", "string-generated.json", "token.json", "token-generated.json");
}

public SpecificationTests(Object x, Object y) {
this.p = (TestParams) y;
public SpecificationTests(TestParams params) {
this.p = params;
}

@Test
Expand Down