test_class.file: conjure-core/src/test/java/com/palantir/conjure/defs/validator/ErrorNamespaceValidatorTest.java
test_class.identifier: ErrorNamespaceValidatorTest
test_case.body: @Test
      public void testInvalidErrorNamespaces() {
          for (String invalid :
                  new String[] {"conjure", "palantirFoo", "palantir-foo", "PALANTIR-FOO", "palantir_foo", "PALANTIR_FOO"
                  }) {
              assertThatThrownBy(() -> ErrorNamespaceValidator.validate(ErrorNamespace.of(invalid)))
                      .isInstanceOf(IllegalArgumentException.class)
                      .hasMessageContaining("Namespace for errors must match pattern")
                      .hasMessageContaining(invalid);
          }
      }
test_case.class_method_signature: ErrorNamespaceValidatorTest.testInvalidErrorNamespaces()
test_case.full_signature: @Test public void testInvalidErrorNamespaces()
test_case.identifier: testInvalidErrorNamespaces
test_case.invocations: hasMessageContaining hasMessageContaining isInstanceOf assertThatThrownBy validate of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidErrorNamespaces()
focal_class.declarator: UPPER_CAMEL_CASE = Pattern.compile("(([A-Z][a-z0-9]+)+)")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern UPPER_CAMEL_CASE = Pattern.compile("(([A-Z][a-z0-9]+)+)");
focal_class.type: Pattern
focal_class.var_name: UPPER_CAMEL_CASE
focal_class.file: conjure-core/src/main/java/com/palantir/conjure/defs/validator/ErrorNamespaceValidator.java
focal_class.identifier: ErrorNamespaceValidator
focal_class.class_method_signature: ErrorNamespaceValidator.ErrorNamespaceValidator()
focal_class.full_signature: private  ErrorNamespaceValidator()
focal_class.identifier: ErrorNamespaceValidator
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ErrorNamespaceValidator()
focal_class.class_method_signature: ErrorNamespaceValidator.validate(ErrorNamespace name)
focal_class.full_signature: public static void validate(ErrorNamespace name)
focal_class.identifier: validate
focal_class.modifiers: public static
focal_class.parameters: (ErrorNamespace name)
focal_class.return: void
focal_class.signature: void validate(ErrorNamespace name)
focal_method.body: 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);
      }
focal_method.class_method_signature: ErrorNamespaceValidator.validate(ErrorNamespace name)
focal_method.full_signature: public static void validate(ErrorNamespace name)
focal_method.identifier: validate
focal_method.invocations: checkArgument matches matcher get
focal_method.modifiers: public static
focal_method.parameters: (ErrorNamespace name)
focal_method.return: void
focal_method.signature: void validate(ErrorNamespace name)