// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/util/ObjectMapperHelper.java
// public static ObjectMapper camelCase() {
//   return DEFAULT;
// }


import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import java.io.IOException;
import org.junit.Test;
import com.fasterxml.jackson.databind.exc.MismatchedInputException;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasTimestamp;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.AllFieldsProto3;
package com.hubspot.jackson.datatype.protobuf;





public class FailOnMismatchedJsonTest {

  @Test(expected = MismatchedInputException.class)
  public void itFailsOnJsonArrayForNonRepeatedPrimitive() throws IOException {
    String json = "{\"double\":[1.5]}";
    camelCase().readValue(json, AllFieldsProto3.class);
  }

  @Test(expected = MismatchedInputException.class)
  public void itFailsOnJsonArrayForNonRepeatedMessage() throws IOException {
    String json = "{\"nested\":[{}]}";
// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/util/ObjectMapperHelper.java
// public static ObjectMapper camelCase() {
//   return DEFAULT;
// }


// Path: src/test/java/com/hubspot/jackson/datatype/protobuf/FailOnMismatchedJsonTest.java
import static com.hubspot.jackson.datatype.protobuf.util.ObjectMapperHelper.camelCase;
import java.io.IOException;
import org.junit.Test;
import com.fasterxml.jackson.databind.exc.MismatchedInputException;
import com.hubspot.jackson.datatype.protobuf.util.BuiltInProtobufs.HasTimestamp;
import com.hubspot.jackson.datatype.protobuf.util.TestProtobuf3.AllFieldsProto3;

package com.hubspot.jackson.datatype.protobuf;





public class FailOnMismatchedJsonTest {

  @Test(expected = MismatchedInputException.class)
  public void itFailsOnJsonArrayForNonRepeatedPrimitive() throws IOException {
    String json = "{\"double\":[1.5]}";
    camelCase().readValue(json, AllFieldsProto3.class);
  }

  @Test(expected = MismatchedInputException.class)
  public void itFailsOnJsonArrayForNonRepeatedMessage() throws IOException {
    String json = "{\"nested\":[{}]}";
    camelCase().readValue(json, AllFieldsProto3.class);