@Test public void negativeTtl() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Invalid ttl value: -1, must be 0-2147483647"); Zone.create("ABCD", "denominator.io.", -1, "admin@foo.com"); }
@Deprecated public static Zone create(String name) { return create(name, name); }
Zone { @Deprecated public static Zone create(String name) { return create(name, name); } }
Zone { @Deprecated public static Zone create(String name) { return create(name, name); } Zone(String id, String name, int ttl, String email); }
Zone { @Deprecated public static Zone create(String name) { return create(name, name); } Zone(String id, String name, int ttl, String email); String id(); String name(); int ttl(); String email(); @Deprecated String idOrName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Deprecated static Zone create(String name); @Deprecated static Zone create(String name, String id); static Zone create(String id, String name, int ttl, String email); }
Zone { @Deprecated public static Zone create(String name) { return create(name, name); } Zone(String id, String name, int ttl, String email); String id(); String name(); int ttl(); String email(); @Deprecated String idOrName(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Deprecated static Zone create(String name); @Deprecated static Zone create(String name, String id); static Zone create(String id, String name, int ttl, String email);  }