@Test public void testValidErrorNamespaces() throws Exception { ErrorNamespaceValidator.validate(ErrorNamespace.of("Conjure")); ErrorNamespaceValidator.validate(ErrorNamespace.of("PalantirFoo")); ErrorNamespaceValidator.validate(ErrorNamespace.of("PalantirFooBar")); }
public static void validate(ErrorNamespace name) { Preconditions.checkArgument( UPPER_CAMEL_CASE.matcher(name.get()).matches(), "Namespace for errors must match pattern %s: %s", UPPER_CAMEL_CASE, name); }
ErrorNamespaceValidator { public static void validate(ErrorNamespace name) { Preconditions.checkArgument( UPPER_CAMEL_CASE.matcher(name.get()).matches(), "Namespace for errors must match pattern %s: %s", UPPER_CAMEL_CASE, name); } }
ErrorNamespaceValidator { public static void validate(ErrorNamespace name) { Preconditions.checkArgument( UPPER_CAMEL_CASE.matcher(name.get()).matches(), "Namespace for errors must match pattern %s: %s", UPPER_CAMEL_CASE, name); } private  ErrorNamespaceValidator(); }
ErrorNamespaceValidator { public static void validate(ErrorNamespace name) { Preconditions.checkArgument( UPPER_CAMEL_CASE.matcher(name.get()).matches(), "Namespace for errors must match pattern %s: %s", UPPER_CAMEL_CASE, name); } private  ErrorNamespaceValidator(); static void validate(ErrorNamespace name); }
ErrorNamespaceValidator { public static void validate(ErrorNamespace name) { Preconditions.checkArgument( UPPER_CAMEL_CASE.matcher(name.get()).matches(), "Namespace for errors must match pattern %s: %s", UPPER_CAMEL_CASE, name); } private  ErrorNamespaceValidator(); static void validate(ErrorNamespace name);  }