@Test public void VersionNode_getChangeset_should_not_throw_NPE() { SimpleVersion v1 = new Builder() .changeset(mapOf("key", "value", "null", null)) .build(); SimpleVersionGraph versionGraph = init(asList(v1)); VersionNode versionNode = versionGraph.getVersionNode(v1.revision); assertThat(versionNode.getChangeset()).isEqualTo(mapOf("key", "value")); }
public static SimpleVersionGraph init() { return new SimpleVersionGraph(); }
SimpleVersionGraph extends AbstractVersionGraph<String, String, String, SimpleVersionGraph, SimpleVersionGraph.Builder> { public static SimpleVersionGraph init() { return new SimpleVersionGraph(); } }
SimpleVersionGraph extends AbstractVersionGraph<String, String, String, SimpleVersionGraph, SimpleVersionGraph.Builder> { public static SimpleVersionGraph init() { return new SimpleVersionGraph(); } private  SimpleVersionGraph(); private  SimpleVersionGraph(Builder builder); }
SimpleVersionGraph extends AbstractVersionGraph<String, String, String, SimpleVersionGraph, SimpleVersionGraph.Builder> { public static SimpleVersionGraph init() { return new SimpleVersionGraph(); } private  SimpleVersionGraph(); private  SimpleVersionGraph(Builder builder); static SimpleVersionGraph init(); static SimpleVersionGraph init(Version<String, String, String>... versions); static SimpleVersionGraph init(Iterable<? extends Version<String, String, String>> versions); }
SimpleVersionGraph extends AbstractVersionGraph<String, String, String, SimpleVersionGraph, SimpleVersionGraph.Builder> { public static SimpleVersionGraph init() { return new SimpleVersionGraph(); } private  SimpleVersionGraph(); private  SimpleVersionGraph(Builder builder); static SimpleVersionGraph init(); static SimpleVersionGraph init(Version<String, String, String>... versions); static SimpleVersionGraph init(Iterable<? extends Version<String, String, String>> versions);  }