fix broken ut

This commit is contained in:
fjy 2014-12-09 15:43:07 -08:00
parent d6d3ec6846
commit 7620dfbd1a
2 changed files with 222 additions and 216 deletions

View File

@ -170,6 +170,11 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>junit-benchmarks</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>

View File

@ -35,7 +35,8 @@ import java.util.SortedSet;
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = UniformGranularitySpec.class)
@JsonSubTypes(value = {
@JsonSubTypes.Type(name = "uniform", value = UniformGranularitySpec.class)
@JsonSubTypes.Type(name = "uniform", value = UniformGranularitySpec.class),
@JsonSubTypes.Type(name = "arbitrary", value = ArbitraryGranularitySpec.class)
})
public interface GranularitySpec
{