Skip to content

Commit

Permalink
Extended test, showing failure
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanthe committed Sep 2, 2014
1 parent d750ab7 commit 2a9b859
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 gene
</developers>
<properties>
<version.jackson.annotations>2.4.0</version.jackson.annotations>
<version.jackson.core>2.4.3-SNAPSHOT</version.jackson.core>
<version.jackson.core>2.4.2</version.jackson.core>

<osgi.export>${project.groupId}.jsonSchema.*</osgi.export>
</properties>
Expand All @@ -53,7 +53,7 @@ JSON Schema (http://tools.ietf.org/html/draft-zyp-json-schema-03) version 3 gene
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.jackson.core}</version>
<version>2.4.3-SNAPSHOT</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,30 @@ static class Leaf {
public int value;
}

public static class SimpleBean {
private int property1;
private String property2;

public int getProperty1() {
return property1;
}

public void setProperty1(final int property1) {
this.property1 = property1;
}

public String getProperty2() {
return property2;
}

public void setProperty2(final String property2) {
this.property2 = property2;
}
}

static class Issue34Bean {
@JsonValue
public Collection<String> getNames() { return null; }
public Collection<SimpleBean> getNames() { return null; }
}

/*
Expand Down Expand Up @@ -72,5 +93,6 @@ public void testJsonValueForCollection() throws Exception

String schemaStr = mapper.writerWithDefaultPrettyPrinter().writeValueAsString(schema);
assertNotNull(schemaStr);
assertTrue(schemaStr.contains("items"));
}
}

0 comments on commit 2a9b859

Please sign in to comment.