Skip to content

Instantly share code, notes, and snippets.

@talklittle
Created February 18, 2015 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talklittle/11104573b03b4a8e8cb9 to your computer and use it in GitHub Desktop.
Save talklittle/11104573b03b4a8e8cb9 to your computer and use it in GitHub Desktop.
LoganSquare failing tests JDK 8
java.lang.AssertionError:
Source declared the same top-level types of an expected source, but
didn't match exactly.
Expected file: </Users/andrew/Documents/LoganSquare/processor/build/resources/test/generated/MultipleFieldNamesModel$$JsonObjectMapper.java>
Actual file: </SOURCE_OUTPUT/com/bluelinelabs/logansquare/processor/MultipleFieldNamesModel$$JsonObjectMapper.java>
Diffs:
======
Found 1 unmatched nodes in the expected tree.
> Extra node in expected tree.
Line 39 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->NULL_LITERAL(null)
Node contents: <null>.
Found 1 unmatched nodes in the actual tree.
> Extra node in actual tree.
Line 37 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->NULL_LITERAL(null)
Node contents: <null>.
Found 26 nodes that differed in expected and actual trees.
> Difference in expected tree and actual tree.
Expected node: Line 36 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_double_name_1)
Actual node: Line 36 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_string_name_1)
Expected literal value to be <possible_double_name_1> but was <possible_string_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 36 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_double_name_2)
Actual node: Line 36 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_string_name_2)
Expected literal value to be <possible_double_name_2> but was <possible_string_name_2>.
> Difference in expected tree and actual tree.
Expected node: Line 37 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDouble)
Actual node: Line 37 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testString)
Expected member identifier to be <testDouble> but was <testString>.
> Difference in expected tree and actual tree.
Expected node: Line 37 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)
Actual node: Line 37 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Expected member identifier to be <getValueAsDouble> but was <getValueAsString>.
> Difference in expected tree and actual tree.
Expected node: Line 38 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_string_name_1)
Actual node: Line 38 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_int_name_1)
Expected literal value to be <possible_string_name_1> but was <possible_int_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 38 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_string_name_2)
Actual node: Line 38 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_int_name_2)
Expected literal value to be <possible_string_name_2> but was <possible_int_name_2>.
> Difference in expected tree and actual tree.
Expected node: Line 39 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testString)
Actual node: Line 39 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testInt)
Expected member identifier to be <testString> but was <testInt>.
> Difference in expected tree and actual tree.
Expected node: Line 39 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Actual node: Line 39 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsInt)
Expected member identifier to be <getValueAsString> but was <getValueAsInt>.
> Difference in expected tree and actual tree.
Expected node: Line 40 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_int_name_1)
Actual node: Line 40 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_float_name_1)
Expected literal value to be <possible_int_name_1> but was <possible_float_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 40 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_int_name_2)
Actual node: Line 40 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_float_name_2)
Expected literal value to be <possible_int_name_2> but was <possible_float_name_2>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testInt)
Actual node: Line 41 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloat)
Expected member identifier to be <testInt> but was <testFloat>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 41 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->TYPE_CAST->TYPE_CAST
Expected node kind to be <METHOD_INVOCATION> but was <TYPE_CAST>.
> Difference in expected tree and actual tree.
Expected node: Line 42 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_float_name_1)
Actual node: Line 42 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_double_name_1)
Expected literal value to be <possible_float_name_1> but was <possible_double_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 42 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_float_name_2)
Actual node: Line 42 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->CONDITIONAL_OR->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(possible_double_name_2)
Expected literal value to be <possible_float_name_2> but was <possible_double_name_2>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloat)
Actual node: Line 43 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDouble)
Expected member identifier to be <testFloat> but was <testDouble>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->TYPE_CAST->TYPE_CAST
Actual node: Line 43 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION
Expected node kind to be <TYPE_CAST> but was <METHOD_INVOCATION>.
> Difference in expected tree and actual tree.
Expected node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Actual node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Expected member identifier to be <writeNumberField> but was <writeStringField>.
> Difference in expected tree and actual tree.
Expected node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_double_name_1)
Actual node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_string_name_1)
Expected literal value to be <possible_double_name_1> but was <possible_string_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testDouble)
Actual node: Line 58 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testString)
Expected member identifier to be <testDouble> but was <testString>.
> Difference in expected tree and actual tree.
Expected node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Actual node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Expected member identifier to be <writeStringField> but was <writeNumberField>.
> Difference in expected tree and actual tree.
Expected node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_string_name_1)
Actual node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_int_name_1)
Expected literal value to be <possible_string_name_1> but was <possible_int_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testString)
Actual node: Line 59 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testInt)
Expected member identifier to be <testString> but was <testInt>.
> Difference in expected tree and actual tree.
Expected node: Line 60 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_int_name_1)
Actual node: Line 60 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_float_name_1)
Expected literal value to be <possible_int_name_1> but was <possible_float_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 60 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testInt)
Actual node: Line 60 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloat)
Expected member identifier to be <testInt> but was <testFloat>.
> Difference in expected tree and actual tree.
Expected node: Line 61 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_float_name_1)
Actual node: Line 61 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(possible_double_name_1)
Expected literal value to be <possible_float_name_1> but was <possible_double_name_1>.
> Difference in expected tree and actual tree.
Expected node: Line 61 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloat)
Actual node: Line 61 COMPILATION_UNIT->CLASS(MultipleFieldNamesModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testDouble)
Expected member identifier to be <testFloat> but was <testDouble>.
Expected Source:
================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
public final class MultipleFieldNamesModel$$JsonObjectMapper extends JsonMapper<MultipleFieldNamesModel> {
@Override
public MultipleFieldNamesModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static MultipleFieldNamesModel _parse(JsonParser jsonParser) throws IOException {
MultipleFieldNamesModel instance = new MultipleFieldNamesModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(MultipleFieldNamesModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("possible_double_name_1".equals(fieldName) || "possible_double_name_2".equals(fieldName)) {
instance.testDouble = jsonParser.getValueAsDouble();
} else if ("possible_string_name_1".equals(fieldName) || "possible_string_name_2".equals(fieldName)){
instance.testString = jsonParser.getValueAsString(null);
} else if ("possible_int_name_1".equals(fieldName) || "possible_int_name_2".equals(fieldName)){
instance.testInt = jsonParser.getValueAsInt();
} else if ("possible_float_name_1".equals(fieldName) || "possible_float_name_2".equals(fieldName)){
instance.testFloat = (float)jsonParser.getValueAsDouble();
} else if ("possible_long_name_1".equals(fieldName) || "possible_long_name_2".equals(fieldName)){
instance.testLong = jsonParser.getValueAsLong();
}
}
@Override
public void serialize(MultipleFieldNamesModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(MultipleFieldNamesModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
jsonGenerator.writeNumberField("possible_double_name_1", object.testDouble);
jsonGenerator.writeStringField("possible_string_name_1", object.testString);
jsonGenerator.writeNumberField("possible_int_name_1", object.testInt);
jsonGenerator.writeNumberField("possible_float_name_1", object.testFloat);
jsonGenerator.writeNumberField("possible_long_name_1", object.testLong);
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
Actual Source:
=================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
public final class MultipleFieldNamesModel$$JsonObjectMapper extends JsonMapper<MultipleFieldNamesModel> {
@Override
public MultipleFieldNamesModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static MultipleFieldNamesModel _parse(JsonParser jsonParser) throws IOException {
MultipleFieldNamesModel instance = new MultipleFieldNamesModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(MultipleFieldNamesModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("possible_string_name_1".equals(fieldName) || "possible_string_name_2".equals(fieldName)) {
instance.testString = jsonParser.getValueAsString(null);
} else if ("possible_int_name_1".equals(fieldName) || "possible_int_name_2".equals(fieldName)){
instance.testInt = jsonParser.getValueAsInt();
} else if ("possible_float_name_1".equals(fieldName) || "possible_float_name_2".equals(fieldName)){
instance.testFloat = (float)jsonParser.getValueAsDouble();
} else if ("possible_double_name_1".equals(fieldName) || "possible_double_name_2".equals(fieldName)){
instance.testDouble = jsonParser.getValueAsDouble();
} else if ("possible_long_name_1".equals(fieldName) || "possible_long_name_2".equals(fieldName)){
instance.testLong = jsonParser.getValueAsLong();
}
}
@Override
public void serialize(MultipleFieldNamesModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(MultipleFieldNamesModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
jsonGenerator.writeStringField("possible_string_name_1", object.testString);
jsonGenerator.writeNumberField("possible_int_name_1", object.testInt);
jsonGenerator.writeNumberField("possible_float_name_1", object.testFloat);
jsonGenerator.writeNumberField("possible_double_name_1", object.testDouble);
jsonGenerator.writeNumberField("possible_long_name_1", object.testLong);
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:27)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:23)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.failWithCandidate(JavaSourcesSubject.java:233)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.parsesAs(JavaSourcesSubject.java:195)
at com.google.testing.compile.JavaSourcesSubject.parsesAs(JavaSourcesSubject.java:74)
at com.google.testing.compile.JavaSourcesSubject$SuccessfulCompilationBuilder.generatesSources(JavaSourcesSubject.java:444)
at com.bluelinelabs.logansquare.processor.MultipleFieldNamesModelTest.generatedSource(MultipleFieldNamesModelTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.AssertionError:
Source declared the same top-level types of an expected source, but
didn't match exactly.
Expected file: </Users/andrew/Documents/LoganSquare/processor/build/resources/test/generated/PrivateFieldModel$$JsonObjectMapper.java>
Actual file: </SOURCE_OUTPUT/com/bluelinelabs/logansquare/processor/PrivateFieldModel$$JsonObjectMapper.java>
Diffs:
======
Found 1 unmatched nodes in the expected tree.
> Extra node in expected tree.
Line 41 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->NULL_LITERAL(null)
Node contents: <null>.
Found 1 unmatched nodes in the actual tree.
> Extra node in actual tree.
Line 37 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->NULL_LITERAL(null)
Node contents: <null>.
Found 12 nodes that differed in expected and actual trees.
> Difference in expected tree and actual tree.
Expected node: Line 36 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(privateBoolean)
Actual node: Line 36 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(private_named_string)
Expected literal value to be <privateBoolean> but was <private_named_string>.
> Difference in expected tree and actual tree.
Expected node: Line 37 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(setPrivateBoolean)
Actual node: Line 37 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(setPrivateNamedString)
Expected member identifier to be <setPrivateBoolean> but was <setPrivateNamedString>.
> Difference in expected tree and actual tree.
Expected node: Line 37 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsBoolean)
Actual node: Line 37 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Expected member identifier to be <getValueAsBoolean> but was <getValueAsString>.
> Difference in expected tree and actual tree.
Expected node: Line 40 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(private_named_string)
Actual node: Line 40 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(privateBoolean)
Expected literal value to be <private_named_string> but was <privateBoolean>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(setPrivateNamedString)
Actual node: Line 41 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(setPrivateBoolean)
Expected member identifier to be <setPrivateNamedString> but was <setPrivateBoolean>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Actual node: Line 41 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsBoolean)
Expected member identifier to be <getValueAsString> but was <getValueAsBoolean>.
> Difference in expected tree and actual tree.
Expected node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeBooleanField)
Actual node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Expected member identifier to be <writeBooleanField> but was <writeStringField>.
> Difference in expected tree and actual tree.
Expected node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(privateBoolean)
Actual node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(private_named_string)
Expected literal value to be <privateBoolean> but was <private_named_string>.
> Difference in expected tree and actual tree.
Expected node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(isPrivateBoolean)
Actual node: Line 54 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getPrivateNamedString)
Expected member identifier to be <isPrivateBoolean> but was <getPrivateNamedString>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Actual node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeBooleanField)
Expected member identifier to be <writeStringField> but was <writeBooleanField>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(private_named_string)
Actual node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(privateBoolean)
Expected literal value to be <private_named_string> but was <privateBoolean>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getPrivateNamedString)
Actual node: Line 56 COMPILATION_UNIT->CLASS(PrivateFieldModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(isPrivateBoolean)
Expected member identifier to be <getPrivateNamedString> but was <isPrivateBoolean>.
Expected Source:
================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
public final class PrivateFieldModel$$JsonObjectMapper extends JsonMapper<PrivateFieldModel> {
@Override
public PrivateFieldModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static PrivateFieldModel _parse(JsonParser jsonParser) throws IOException {
PrivateFieldModel instance = new PrivateFieldModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(PrivateFieldModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("privateBoolean".equals(fieldName)) {
instance.setPrivateBoolean(jsonParser.getValueAsBoolean());
} else if ("privateString".equals(fieldName)){
instance.setPrivateString(jsonParser.getValueAsString(null));
} else if ("private_named_string".equals(fieldName)){
instance.setPrivateNamedString(jsonParser.getValueAsString(null));
}
}
@Override
public void serialize(PrivateFieldModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(PrivateFieldModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
jsonGenerator.writeBooleanField("privateBoolean", object.isPrivateBoolean());
jsonGenerator.writeStringField("privateString", object.getPrivateString());
jsonGenerator.writeStringField("private_named_string", object.getPrivateNamedString());
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
Actual Source:
=================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
public final class PrivateFieldModel$$JsonObjectMapper extends JsonMapper<PrivateFieldModel> {
@Override
public PrivateFieldModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static PrivateFieldModel _parse(JsonParser jsonParser) throws IOException {
PrivateFieldModel instance = new PrivateFieldModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(PrivateFieldModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("private_named_string".equals(fieldName)) {
instance.setPrivateNamedString(jsonParser.getValueAsString(null));
} else if ("privateString".equals(fieldName)){
instance.setPrivateString(jsonParser.getValueAsString(null));
} else if ("privateBoolean".equals(fieldName)){
instance.setPrivateBoolean(jsonParser.getValueAsBoolean());
}
}
@Override
public void serialize(PrivateFieldModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(PrivateFieldModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
jsonGenerator.writeStringField("private_named_string", object.getPrivateNamedString());
jsonGenerator.writeStringField("privateString", object.getPrivateString());
jsonGenerator.writeBooleanField("privateBoolean", object.isPrivateBoolean());
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:27)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:23)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.failWithCandidate(JavaSourcesSubject.java:233)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.parsesAs(JavaSourcesSubject.java:195)
at com.google.testing.compile.JavaSourcesSubject.parsesAs(JavaSourcesSubject.java:74)
at com.google.testing.compile.JavaSourcesSubject$SuccessfulCompilationBuilder.generatesSources(JavaSourcesSubject.java:444)
at com.bluelinelabs.logansquare.processor.PrivateFieldModelTest.generatedSource(PrivateFieldModelTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.AssertionError:
Source declared the same top-level types of an expected source, but
didn't match exactly.
Expected file: </Users/andrew/Documents/LoganSquare/processor/build/resources/test/generated/SimpleCollectionModel$$JsonObjectMapper.java>
Actual file: </SOURCE_OUTPUT/com/bluelinelabs/logansquare/processor/SimpleCollectionModel$$JsonObjectMapper.java>
Diffs:
======
Found 5 unmatched nodes in the expected tree.
> Extra node in expected tree.
Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)
Node contents: <SimpleCollectionModel.ModelForCollection>.
> Extra node in expected tree.
Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)
Node contents: <SimpleCollectionModel.ModelForCollection>.
> Extra node in expected tree.
Line 50 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->IF
Node contents: <if (jsonParser.getCurrentToken() == JsonToken.VALUE_NULL) { map.put(key, null);
} else {
map.put(key, com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser));
}>.
> Extra node in expected tree.
Line 73 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->IDENTIFIER(jsonParser)
Node contents: <jsonParser>.
> Extra node in expected tree.
Line 119 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->IF
Node contents: <if (entry.getValue() == null) { jsonGenerator.writeNull();
} else {
if (entry.getValue() != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(entry.getValue(), jsonGenerator, true);
}
}>.
Found 5 unmatched nodes in the actual tree.
> Extra node in actual tree.
Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->IDENTIFIER(jsonParser)
Node contents: <jsonParser>.
> Extra node in actual tree.
Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)
Node contents: <SimpleCollectionModel.ModelForCollection>.
> Extra node in actual tree.
Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)
Node contents: <SimpleCollectionModel.ModelForCollection>.
> Extra node in actual tree.
Line 72 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->IF
Node contents: <if (jsonParser.getCurrentToken() == JsonToken.VALUE_NULL) { map.put(key, null);
} else {
map.put(key, com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser));
}>.
> Extra node in actual tree.
Line 139 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->IF
Node contents: <if (entry.getValue() == null) { jsonGenerator.writeNull();
} else {
if (entry.getValue() != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(entry.getValue(), jsonGenerator, true);
}
}>.
Found 62 nodes that differed in expected and actual trees.
> Difference in expected tree and actual tree.
Expected node: Line 44 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_map)
Actual node: Line 44 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_set)
Expected literal value to be <model_map> but was <model_set>.
> Difference in expected tree and actual tree.
Expected node: Line 45 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->PARENTHESIZED->EQUAL_TO->MEMBER_SELECT(START_OBJECT)
Actual node: Line 45 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->PARENTHESIZED->EQUAL_TO->MEMBER_SELECT(START_ARRAY)
Expected member identifier to be <START_OBJECT> but was <START_ARRAY>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)
Expected variable name to be <map> but was <collection>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->IDENTIFIER(HashMap)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(HashSet)
Expected identifier to be <HashMap> but was <HashSet>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->IDENTIFIER(String)->IDENTIFIER(String)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Expected node kind to be <IDENTIFIER> but was <MEMBER_SELECT>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(HashMap)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(HashSet)
Expected identifier to be <HashMap> but was <HashSet>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(String)->IDENTIFIER(String)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Expected node kind to be <IDENTIFIER> but was <MEMBER_SELECT>.
> Difference in expected tree and actual tree.
Expected node: Line 47 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(END_OBJECT)
Actual node: Line 47 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(END_ARRAY)
Expected member identifier to be <END_OBJECT> but was <END_ARRAY>.
> Difference in expected tree and actual tree.
Expected node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)
Actual node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)
Expected variable name to be <key> but was <value>.
> Difference in expected tree and actual tree.
Expected node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->IDENTIFIER(String)->IDENTIFIER(String)
Actual node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Expected node kind to be <IDENTIFIER> but was <MEMBER_SELECT>.
> Difference in expected tree and actual tree.
Expected node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->METHOD_INVOCATION->MEMBER_SELECT(getText)
Actual node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->MEMBER_SELECT(_parse)
Expected member identifier to be <getText> but was <_parse>.
> Difference in expected tree and actual tree.
Expected node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->METHOD_INVOCATION->MEMBER_SELECT(getText)->IDENTIFIER(jsonParser)->IDENTIFIER(jsonParser)
Actual node: Line 48 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->MEMBER_SELECT(_parse)->MEMBER_SELECT(SimpleCollectionModel$ModelForCollection$$JsonObjectMapper)->MEMBER_SELECT(SimpleCollectionModel$ModelForCollection$$JsonObjectMapper)
Expected node kind to be <IDENTIFIER> but was <MEMBER_SELECT>.
> Difference in expected tree and actual tree.
Expected node: Line 49 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Actual node: Line 49 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->IF->IF
Expected node kind to be <EXPRESSION_STATEMENT> but was <IF>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionMap)
Actual node: Line 53 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionSet)
Expected member identifier to be <modelForCollectionMap> but was <modelForCollectionSet>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->IDENTIFIER(map)
Actual node: Line 53 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->IDENTIFIER(collection)
Expected identifier to be <map> but was <collection>.
> Difference in expected tree and actual tree.
Expected node: Line 69 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_list)
Actual node: Line 66 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_map)
Expected literal value to be <model_list> but was <model_map>.
> Difference in expected tree and actual tree.
Expected node: Line 70 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->PARENTHESIZED->EQUAL_TO->MEMBER_SELECT(START_ARRAY)
Actual node: Line 67 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->PARENTHESIZED->EQUAL_TO->MEMBER_SELECT(START_OBJECT)
Expected member identifier to be <START_ARRAY> but was <START_OBJECT>.
> Difference in expected tree and actual tree.
Expected node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)
Actual node: Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)
Expected variable name to be <collection> but was <map>.
> Difference in expected tree and actual tree.
Expected node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(ArrayList)
Actual node: Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->IDENTIFIER(HashMap)
Expected identifier to be <ArrayList> but was <HashMap>.
> Difference in expected tree and actual tree.
Expected node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Actual node: Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->PARAMETERIZED_TYPE->IDENTIFIER(String)->IDENTIFIER(String)
Expected node kind to be <MEMBER_SELECT> but was <IDENTIFIER>.
> Difference in expected tree and actual tree.
Expected node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(ArrayList)
Actual node: Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(HashMap)
Expected identifier to be <ArrayList> but was <HashMap>.
> Difference in expected tree and actual tree.
Expected node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Actual node: Line 68 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(map)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(String)->IDENTIFIER(String)
Expected node kind to be <MEMBER_SELECT> but was <IDENTIFIER>.
> Difference in expected tree and actual tree.
Expected node: Line 72 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(END_ARRAY)
Actual node: Line 69 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(END_OBJECT)
Expected member identifier to be <END_ARRAY> but was <END_OBJECT>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)
Actual node: Line 70 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)
Expected variable name to be <value> but was <key>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Actual node: Line 70 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->IDENTIFIER(String)->IDENTIFIER(String)
Expected node kind to be <MEMBER_SELECT> but was <IDENTIFIER>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->MEMBER_SELECT(_parse)
Actual node: Line 70 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->METHOD_INVOCATION->MEMBER_SELECT(getText)
Expected member identifier to be <_parse> but was <getText>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(value)->METHOD_INVOCATION->MEMBER_SELECT(_parse)->MEMBER_SELECT(SimpleCollectionModel$ModelForCollection$$JsonObjectMapper)->MEMBER_SELECT(SimpleCollectionModel$ModelForCollection$$JsonObjectMapper)
Actual node: Line 70 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->VARIABLE(key)->METHOD_INVOCATION->MEMBER_SELECT(getText)->IDENTIFIER(jsonParser)->IDENTIFIER(jsonParser)
Expected node kind to be <MEMBER_SELECT> but was <IDENTIFIER>.
> Difference in expected tree and actual tree.
Expected node: Line 74 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->IF->IF
Actual node: Line 71 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->WHILE_LOOP->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Expected node kind to be <IF> but was <EXPRESSION_STATEMENT>.
> Difference in expected tree and actual tree.
Expected node: Line 78 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionList)
Actual node: Line 78 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionMap)
Expected member identifier to be <modelForCollectionList> but was <modelForCollectionMap>.
> Difference in expected tree and actual tree.
Expected node: Line 78 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->IDENTIFIER(collection)
Actual node: Line 78 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->IDENTIFIER(map)
Expected identifier to be <collection> but was <map>.
> Difference in expected tree and actual tree.
Expected node: Line 80 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_set)
Actual node: Line 80 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_queue)
Expected literal value to be <model_set> but was <model_queue>.
> Difference in expected tree and actual tree.
Expected node: Line 82 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(HashSet)
Actual node: Line 82 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(ArrayDeque)
Expected identifier to be <HashSet> but was <ArrayDeque>.
> Difference in expected tree and actual tree.
Expected node: Line 82 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(HashSet)
Actual node: Line 82 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(ArrayDeque)
Expected identifier to be <HashSet> but was <ArrayDeque>.
> Difference in expected tree and actual tree.
Expected node: Line 89 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionSet)
Actual node: Line 89 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionQueue)
Expected member identifier to be <modelForCollectionSet> but was <modelForCollectionQueue>.
> Difference in expected tree and actual tree.
Expected node: Line 91 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_queue)
Actual node: Line 91 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(model_list)
Expected literal value to be <model_queue> but was <model_list>.
> Difference in expected tree and actual tree.
Expected node: Line 93 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(ArrayDeque)
Actual node: Line 93 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->PARAMETERIZED_TYPE->IDENTIFIER(ArrayList)
Expected identifier to be <ArrayDeque> but was <ArrayList>.
> Difference in expected tree and actual tree.
Expected node: Line 93 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(ArrayDeque)
Actual node: Line 93 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->VARIABLE(collection)->NEW_CLASS->PARAMETERIZED_TYPE->IDENTIFIER(ArrayList)
Expected identifier to be <ArrayDeque> but was <ArrayList>.
> Difference in expected tree and actual tree.
Expected node: Line 100 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionQueue)
Actual node: Line 100 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(modelForCollectionList)
Expected member identifier to be <modelForCollectionQueue> but was <modelForCollectionList>.
> Difference in expected tree and actual tree.
Expected node: Line 114 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionMap)
Actual node: Line 114 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionSet)
Expected member identifier to be <modelForCollectionMap> but was <modelForCollectionSet>.
> Difference in expected tree and actual tree.
Expected node: Line 115 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_map)
Actual node: Line 115 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_set)
Expected literal value to be <model_map> but was <model_set>.
> Difference in expected tree and actual tree.
Expected node: Line 116 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStartObject)
Actual node: Line 116 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStartArray)
Expected member identifier to be <writeStartObject> but was <writeStartArray>.
> Difference in expected tree and actual tree.
Expected node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(entry)
Actual node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(element)
Expected variable name to be <entry> but was <element>.
> Difference in expected tree and actual tree.
Expected node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(entry)->PARAMETERIZED_TYPE->PARAMETERIZED_TYPE
Actual node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(element)->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Expected node kind to be <PARAMETERIZED_TYPE> but was <MEMBER_SELECT>.
> Difference in expected tree and actual tree.
Expected node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 117 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->TYPE_CAST
Expected node kind to be <METHOD_INVOCATION> but was <TYPE_CAST>.
> Difference in expected tree and actual tree.
Expected node: Line 118 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Actual node: Line 118 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->IF->IF
Expected node kind to be <EXPRESSION_STATEMENT> but was <IF>.
> Difference in expected tree and actual tree.
Expected node: Line 127 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeEndObject)
Actual node: Line 122 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeEndArray)
Expected member identifier to be <writeEndObject> but was <writeEndArray>.
> Difference in expected tree and actual tree.
Expected node: Line 139 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionList)
Actual node: Line 134 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionMap)
Expected member identifier to be <modelForCollectionList> but was <modelForCollectionMap>.
> Difference in expected tree and actual tree.
Expected node: Line 140 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_list)
Actual node: Line 135 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_map)
Expected literal value to be <model_list> but was <model_map>.
> Difference in expected tree and actual tree.
Expected node: Line 141 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStartArray)
Actual node: Line 136 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStartObject)
Expected member identifier to be <writeStartArray> but was <writeStartObject>.
> Difference in expected tree and actual tree.
Expected node: Line 142 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(element)
Actual node: Line 137 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(entry)
Expected variable name to be <element> but was <entry>.
> Difference in expected tree and actual tree.
Expected node: Line 142 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(element)->MEMBER_SELECT(ModelForCollection)->MEMBER_SELECT(ModelForCollection)
Actual node: Line 137 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->VARIABLE(entry)->PARAMETERIZED_TYPE->PARAMETERIZED_TYPE
Expected node kind to be <MEMBER_SELECT> but was <PARAMETERIZED_TYPE>.
> Difference in expected tree and actual tree.
Expected node: Line 142 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->TYPE_CAST
Actual node: Line 137 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->METHOD_INVOCATION->METHOD_INVOCATION
Expected node kind to be <TYPE_CAST> but was <METHOD_INVOCATION>.
> Difference in expected tree and actual tree.
Expected node: Line 143 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->IF->IF
Actual node: Line 138 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Expected node kind to be <IF> but was <EXPRESSION_STATEMENT>.
> Difference in expected tree and actual tree.
Expected node: Line 147 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeEndArray)
Actual node: Line 147 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeEndObject)
Expected member identifier to be <writeEndArray> but was <writeEndObject>.
> Difference in expected tree and actual tree.
Expected node: Line 149 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionSet)
Actual node: Line 149 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionQueue)
Expected member identifier to be <modelForCollectionSet> but was <modelForCollectionQueue>.
> Difference in expected tree and actual tree.
Expected node: Line 150 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_set)
Actual node: Line 150 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_queue)
Expected literal value to be <model_set> but was <model_queue>.
> Difference in expected tree and actual tree.
Expected node: Line 152 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->PARAMETERIZED_TYPE->IDENTIFIER(Set)
Actual node: Line 152 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->PARAMETERIZED_TYPE->IDENTIFIER(Queue)
Expected identifier to be <Set> but was <Queue>.
> Difference in expected tree and actual tree.
Expected node: Line 152 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->MEMBER_SELECT(modelForCollectionSet)
Actual node: Line 152 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->MEMBER_SELECT(modelForCollectionQueue)
Expected member identifier to be <modelForCollectionSet> but was <modelForCollectionQueue>.
> Difference in expected tree and actual tree.
Expected node: Line 159 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionQueue)
Actual node: Line 159 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->PARENTHESIZED->NOT_EQUAL_TO->MEMBER_SELECT(modelForCollectionList)
Expected member identifier to be <modelForCollectionQueue> but was <modelForCollectionList>.
> Difference in expected tree and actual tree.
Expected node: Line 160 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_queue)
Actual node: Line 160 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(model_list)
Expected literal value to be <model_queue> but was <model_list>.
> Difference in expected tree and actual tree.
Expected node: Line 162 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->PARAMETERIZED_TYPE->IDENTIFIER(Queue)
Actual node: Line 162 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->PARAMETERIZED_TYPE->IDENTIFIER(List)
Expected identifier to be <Queue> but was <List>.
> Difference in expected tree and actual tree.
Expected node: Line 162 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->MEMBER_SELECT(modelForCollectionQueue)
Actual node: Line 162 COMPILATION_UNIT->CLASS(SimpleCollectionModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->BLOCK(non-static)->ENHANCED_FOR_LOOP->TYPE_CAST->MEMBER_SELECT(modelForCollectionList)
Expected member identifier to be <modelForCollectionQueue> but was <modelForCollectionList>.
Expected Source:
================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
public final class SimpleCollectionModel$$JsonObjectMapper extends JsonMapper<SimpleCollectionModel> {
@Override
public SimpleCollectionModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static SimpleCollectionModel _parse(JsonParser jsonParser) throws IOException {
SimpleCollectionModel instance = new SimpleCollectionModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(SimpleCollectionModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("model_map".equals(fieldName)) {
if (jsonParser.getCurrentToken() == JsonToken.START_OBJECT) {
HashMap<String, SimpleCollectionModel.ModelForCollection> map = new HashMap<String, SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String key = jsonParser.getText();
jsonParser.nextToken();
if (jsonParser.getCurrentToken() == JsonToken.VALUE_NULL) {
map.put(key, null);
} else{
map.put(key, com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser));
}
}
instance.modelForCollectionMap = map;
}
} else if ("model_deque".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayDeque<SimpleCollectionModel.ModelForCollection> collection = new ArrayDeque<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionDeque = collection;
}
} else if ("model_list".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayList<SimpleCollectionModel.ModelForCollection> collection = new ArrayList<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionList = collection;
}
} else if ("model_set".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
HashSet<SimpleCollectionModel.ModelForCollection> collection = new HashSet<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionSet = collection;
}
} else if ("model_queue".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayDeque<SimpleCollectionModel.ModelForCollection> collection = new ArrayDeque<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionQueue = collection;
}
}
}
@Override
public void serialize(SimpleCollectionModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(SimpleCollectionModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
if (object.modelForCollectionMap != null) {
jsonGenerator.writeFieldName("model_map");
jsonGenerator.writeStartObject();
for (Map.Entry<String, SimpleCollectionModel.ModelForCollection> entry : object.modelForCollectionMap.entrySet()) {
jsonGenerator.writeFieldName(entry.getKey().toString());
if (entry.getValue() == null) {
jsonGenerator.writeNull();
} else{
if (entry.getValue() != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(entry.getValue(), jsonGenerator, true);
}
}
}
jsonGenerator.writeEndObject();
}
if (object.modelForCollectionDeque != null) {
jsonGenerator.writeFieldName("model_deque");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Queue<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionDeque) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionList != null) {
jsonGenerator.writeFieldName("model_list");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (List<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionList) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionSet != null) {
jsonGenerator.writeFieldName("model_set");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Set<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionSet) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionQueue != null) {
jsonGenerator.writeFieldName("model_queue");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Queue<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionQueue) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
Actual Source:
=================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
public final class SimpleCollectionModel$$JsonObjectMapper extends JsonMapper<SimpleCollectionModel> {
@Override
public SimpleCollectionModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static SimpleCollectionModel _parse(JsonParser jsonParser) throws IOException {
SimpleCollectionModel instance = new SimpleCollectionModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(SimpleCollectionModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("model_set".equals(fieldName)) {
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
HashSet<SimpleCollectionModel.ModelForCollection> collection = new HashSet<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionSet = collection;
}
} else if ("model_deque".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayDeque<SimpleCollectionModel.ModelForCollection> collection = new ArrayDeque<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionDeque = collection;
}
} else if ("model_map".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_OBJECT) {
HashMap<String, SimpleCollectionModel.ModelForCollection> map = new HashMap<String, SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String key = jsonParser.getText();
jsonParser.nextToken();
if (jsonParser.getCurrentToken() == JsonToken.VALUE_NULL) {
map.put(key, null);
} else{
map.put(key, com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser));
}
}
instance.modelForCollectionMap = map;
}
} else if ("model_queue".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayDeque<SimpleCollectionModel.ModelForCollection> collection = new ArrayDeque<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionQueue = collection;
}
} else if ("model_list".equals(fieldName)){
if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
ArrayList<SimpleCollectionModel.ModelForCollection> collection = new ArrayList<SimpleCollectionModel.ModelForCollection>();
while (jsonParser.nextToken() != JsonToken.END_ARRAY) {
SimpleCollectionModel.ModelForCollection value = com.bluelinelabs.logansquare.processor.SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._parse(jsonParser);
if (value != null) {
collection.add(value);
}
}
instance.modelForCollectionList = collection;
}
}
}
@Override
public void serialize(SimpleCollectionModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(SimpleCollectionModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
if (object.modelForCollectionSet != null) {
jsonGenerator.writeFieldName("model_set");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Set<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionSet) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionDeque != null) {
jsonGenerator.writeFieldName("model_deque");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Queue<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionDeque) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionMap != null) {
jsonGenerator.writeFieldName("model_map");
jsonGenerator.writeStartObject();
for (Map.Entry<String, SimpleCollectionModel.ModelForCollection> entry : object.modelForCollectionMap.entrySet()) {
jsonGenerator.writeFieldName(entry.getKey().toString());
if (entry.getValue() == null) {
jsonGenerator.writeNull();
} else{
if (entry.getValue() != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(entry.getValue(), jsonGenerator, true);
}
}
}
jsonGenerator.writeEndObject();
}
if (object.modelForCollectionQueue != null) {
jsonGenerator.writeFieldName("model_queue");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (Queue<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionQueue) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (object.modelForCollectionList != null) {
jsonGenerator.writeFieldName("model_list");
jsonGenerator.writeStartArray();
for (SimpleCollectionModel.ModelForCollection element : (List<SimpleCollectionModel.ModelForCollection>)object.modelForCollectionList) {
if (element != null) {
SimpleCollectionModel$ModelForCollection$$JsonObjectMapper._serialize(element, jsonGenerator, true);
}
}
jsonGenerator.writeEndArray();
}
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:27)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:23)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.failWithCandidate(JavaSourcesSubject.java:233)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.parsesAs(JavaSourcesSubject.java:195)
at com.google.testing.compile.JavaSourcesSubject.parsesAs(JavaSourcesSubject.java:74)
at com.google.testing.compile.JavaSourcesSubject$SuccessfulCompilationBuilder.generatesSources(JavaSourcesSubject.java:444)
at com.bluelinelabs.logansquare.processor.SimpleCollectionModelTest.generatedSource(SimpleCollectionModelTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.AssertionError:
Source declared the same top-level types of an expected source, but
didn't match exactly.
Expected file: </Users/andrew/Documents/LoganSquare/processor/build/resources/test/generated/SimpleModel$$JsonObjectMapper.java>
Actual file: </SOURCE_OUTPUT/com/bluelinelabs/logansquare/processor/SimpleModel$$JsonObjectMapper.java>
Diffs:
======
Found 1 unmatched nodes in the expected tree.
> Extra node in expected tree.
Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->IDENTIFIER(jsonParser)
Node contents: <jsonParser>.
Found 2 unmatched nodes in the actual tree.
> Extra node in actual tree.
Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->IDENTIFIER(jsonParser)
Node contents: <jsonParser>.
> Extra node in actual tree.
Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION
Node contents: <jsonParser.getValueAsInt()>.
Found 62 nodes that differed in expected and actual trees.
> Difference in expected tree and actual tree.
Expected node: Line 38 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_double)
Actual node: Line 38 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(date)
Expected literal value to be <test_double> but was <date>.
> Difference in expected tree and actual tree.
Expected node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDouble)
Actual node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(date)
Expected member identifier to be <testDouble> but was <date>.
> Difference in expected tree and actual tree.
Expected node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)
Actual node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(parse)
Expected member identifier to be <getValueAsDouble> but was <parse>.
> Difference in expected tree and actual tree.
Expected node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)->IDENTIFIER(jsonParser)->IDENTIFIER(jsonParser)
Actual node: Line 39 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(parse)->METHOD_INVOCATION->METHOD_INVOCATION
Expected node kind to be <IDENTIFIER> but was <METHOD_INVOCATION>.
> Difference in expected tree and actual tree.
Expected node: Line 40 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_long_obj)
Actual node: Line 40 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(string)
Expected literal value to be <test_long_obj> but was <string>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testLongObj)
Actual node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(string)
Expected member identifier to be <testLongObj> but was <string>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)
Actual node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Expected member identifier to be <valueOf> but was <getValueAsString>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Long)
Actual node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)->IDENTIFIER(jsonParser)
Expected identifier to be <Long> but was <jsonParser>.
> Difference in expected tree and actual tree.
Expected node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 41 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->NULL_LITERAL(null)->NULL_LITERAL(null)
Expected node kind to be <METHOD_INVOCATION> but was <NULL_LITERAL>.
> Difference in expected tree and actual tree.
Expected node: Line 42 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_int_obj)
Actual node: Line 42 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_string)
Expected literal value to be <test_int_obj> but was <test_string>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testIntObj)
Actual node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testString)
Expected member identifier to be <testIntObj> but was <testString>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)
Actual node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Expected member identifier to be <valueOf> but was <getValueAsString>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Integer)
Actual node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)->IDENTIFIER(jsonParser)
Expected identifier to be <Integer> but was <jsonParser>.
> Difference in expected tree and actual tree.
Expected node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 43 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->NULL_LITERAL(null)->NULL_LITERAL(null)
Expected node kind to be <METHOD_INVOCATION> but was <NULL_LITERAL>.
> Difference in expected tree and actual tree.
Expected node: Line 44 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_string)
Actual node: Line 44 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_double_obj)
Expected literal value to be <test_string> but was <test_double_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testString)
Actual node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDoubleObj)
Expected member identifier to be <testString> but was <testDoubleObj>.
> Difference in expected tree and actual tree.
Expected node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)
Actual node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)
Expected member identifier to be <getValueAsString> but was <valueOf>.
> Difference in expected tree and actual tree.
Expected node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsString)->IDENTIFIER(jsonParser)
Actual node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Double)
Expected identifier to be <jsonParser> but was <Double>.
> Difference in expected tree and actual tree.
Expected node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->NULL_LITERAL(null)->NULL_LITERAL(null)
Actual node: Line 45 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION->METHOD_INVOCATION
Expected node kind to be <NULL_LITERAL> but was <METHOD_INVOCATION>.
> Difference in expected tree and actual tree.
Expected node: Line 46 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_float_obj)
Actual node: Line 46 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_int)
Expected literal value to be <test_float_obj> but was <test_int>.
> Difference in expected tree and actual tree.
Expected node: Line 47 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloatObj)
Actual node: Line 47 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testInt)
Expected member identifier to be <testFloatObj> but was <testInt>.
> Difference in expected tree and actual tree.
Expected node: Line 47 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->NEW_CLASS->NEW_CLASS
Actual node: Line 47 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION
Expected node kind to be <NEW_CLASS> but was <METHOD_INVOCATION>.
> Difference in expected tree and actual tree.
Expected node: Line 48 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_double_obj)
Actual node: Line 48 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_long_obj)
Expected literal value to be <test_double_obj> but was <test_long_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDoubleObj)
Actual node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testLongObj)
Expected member identifier to be <testDoubleObj> but was <testLongObj>.
> Difference in expected tree and actual tree.
Expected node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Double)
Actual node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Long)
Expected identifier to be <Double> but was <Long>.
> Difference in expected tree and actual tree.
Expected node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)
Actual node: Line 49 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION->MEMBER_SELECT(getValueAsLong)
Expected member identifier to be <getValueAsDouble> but was <getValueAsLong>.
> Difference in expected tree and actual tree.
Expected node: Line 50 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_int)
Actual node: Line 50 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_int_obj)
Expected literal value to be <test_int> but was <test_int_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testInt)
Actual node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testIntObj)
Expected member identifier to be <testInt> but was <testIntObj>.
> Difference in expected tree and actual tree.
Expected node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsInt)
Actual node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)
Expected member identifier to be <getValueAsInt> but was <valueOf>.
> Difference in expected tree and actual tree.
Expected node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsInt)->IDENTIFIER(jsonParser)
Actual node: Line 51 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(valueOf)->IDENTIFIER(Integer)
Expected identifier to be <jsonParser> but was <Integer>.
> Difference in expected tree and actual tree.
Expected node: Line 52 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(string)
Actual node: Line 52 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_float)
Expected literal value to be <string> but was <test_float>.
> Difference in expected tree and actual tree.
Expected node: Line 53 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(string)
Actual node: Line 53 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloat)
Expected member identifier to be <string> but was <testFloat>.
> Difference in expected tree and actual tree.
Expected node: Line 53 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 53 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->TYPE_CAST->TYPE_CAST
Expected node kind to be <METHOD_INVOCATION> but was <TYPE_CAST>.
> Difference in expected tree and actual tree.
Expected node: Line 54 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(date)
Actual node: Line 54 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_double)
Expected literal value to be <date> but was <test_double>.
> Difference in expected tree and actual tree.
Expected node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(date)
Actual node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testDouble)
Expected member identifier to be <date> but was <testDouble>.
> Difference in expected tree and actual tree.
Expected node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(parse)
Actual node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)
Expected member identifier to be <parse> but was <getValueAsDouble>.
> Difference in expected tree and actual tree.
Expected node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(parse)->METHOD_INVOCATION->METHOD_INVOCATION
Actual node: Line 55 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->METHOD_INVOCATION->MEMBER_SELECT(getValueAsDouble)->IDENTIFIER(jsonParser)->IDENTIFIER(jsonParser)
Expected node kind to be <METHOD_INVOCATION> but was <IDENTIFIER>.
> Difference in expected tree and actual tree.
Expected node: Line 56 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_float)
Actual node: Line 56 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->PARENTHESIZED->METHOD_INVOCATION->MEMBER_SELECT(equals)->STRING_LITERAL(test_float_obj)
Expected literal value to be <test_float> but was <test_float_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 57 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloat)
Actual node: Line 57 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->MEMBER_SELECT(testFloatObj)
Expected member identifier to be <testFloat> but was <testFloatObj>.
> Difference in expected tree and actual tree.
Expected node: Line 57 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->TYPE_CAST->TYPE_CAST
Actual node: Line 57 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(parseField)->BLOCK(non-static)->IF->IF->IF->IF->IF->IF->IF->IF->IF->IF->BLOCK(non-static)->EXPRESSION_STATEMENT->ASSIGNMENT->NEW_CLASS->NEW_CLASS
Expected node kind to be <TYPE_CAST> but was <NEW_CLASS>.
> Difference in expected tree and actual tree.
Expected node: Line 72 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Actual node: Line 72 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->IF
Expected node kind to be <EXPRESSION_STATEMENT> but was <IF>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Actual node: Line 76 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Expected member identifier to be <writeNumberField> but was <writeStringField>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_long_obj)
Actual node: Line 76 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(string)
Expected literal value to be <test_long_obj> but was <string>.
> Difference in expected tree and actual tree.
Expected node: Line 73 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testLongObj)
Actual node: Line 76 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(string)
Expected member identifier to be <testLongObj> but was <string>.
> Difference in expected tree and actual tree.
Expected node: Line 74 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Actual node: Line 77 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Expected member identifier to be <writeNumberField> but was <writeStringField>.
> Difference in expected tree and actual tree.
Expected node: Line 74 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_int_obj)
Actual node: Line 77 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_string)
Expected literal value to be <test_int_obj> but was <test_string>.
> Difference in expected tree and actual tree.
Expected node: Line 74 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testIntObj)
Actual node: Line 77 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testString)
Expected member identifier to be <testIntObj> but was <testString>.
> Difference in expected tree and actual tree.
Expected node: Line 75 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Actual node: Line 78 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Expected member identifier to be <writeStringField> but was <writeNumberField>.
> Difference in expected tree and actual tree.
Expected node: Line 75 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_string)
Actual node: Line 78 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_double_obj)
Expected literal value to be <test_string> but was <test_double_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 75 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testString)
Actual node: Line 78 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testDoubleObj)
Expected member identifier to be <testString> but was <testDoubleObj>.
> Difference in expected tree and actual tree.
Expected node: Line 76 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_float_obj)
Actual node: Line 79 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_int)
Expected literal value to be <test_float_obj> but was <test_int>.
> Difference in expected tree and actual tree.
Expected node: Line 76 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloatObj)
Actual node: Line 79 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testInt)
Expected member identifier to be <testFloatObj> but was <testInt>.
> Difference in expected tree and actual tree.
Expected node: Line 77 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_double_obj)
Actual node: Line 80 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_long_obj)
Expected literal value to be <test_double_obj> but was <test_long_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 77 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testDoubleObj)
Actual node: Line 80 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testLongObj)
Expected member identifier to be <testDoubleObj> but was <testLongObj>.
> Difference in expected tree and actual tree.
Expected node: Line 78 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_int)
Actual node: Line 81 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_int_obj)
Expected literal value to be <test_int> but was <test_int_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 78 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testInt)
Actual node: Line 81 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testIntObj)
Expected member identifier to be <testInt> but was <testIntObj>.
> Difference in expected tree and actual tree.
Expected node: Line 79 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeStringField)
Actual node: Line 82 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(writeNumberField)
Expected member identifier to be <writeStringField> but was <writeNumberField>.
> Difference in expected tree and actual tree.
Expected node: Line 79 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(string)
Actual node: Line 82 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_float)
Expected literal value to be <string> but was <test_float>.
> Difference in expected tree and actual tree.
Expected node: Line 79 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(string)
Actual node: Line 82 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloat)
Expected member identifier to be <string> but was <testFloat>.
> Difference in expected tree and actual tree.
Expected node: Line 80 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->IF->IF
Actual node: Line 83 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->EXPRESSION_STATEMENT
Expected node kind to be <IF> but was <EXPRESSION_STATEMENT>.
> Difference in expected tree and actual tree.
Expected node: Line 84 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_float)
Actual node: Line 84 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->STRING_LITERAL(test_float_obj)
Expected literal value to be <test_float> but was <test_float_obj>.
> Difference in expected tree and actual tree.
Expected node: Line 84 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloat)
Actual node: Line 84 COMPILATION_UNIT->CLASS(SimpleModel$$JsonObjectMapper)->METHOD(_serialize)->BLOCK(non-static)->EXPRESSION_STATEMENT->METHOD_INVOCATION->MEMBER_SELECT(testFloatObj)
Expected member identifier to be <testFloat> but was <testFloatObj>.
Expected Source:
================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
import java.util.Date;
public final class SimpleModel$$JsonObjectMapper extends JsonMapper<SimpleModel> {
@Override
public SimpleModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static SimpleModel _parse(JsonParser jsonParser) throws IOException {
SimpleModel instance = new SimpleModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(SimpleModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("test_double".equals(fieldName)) {
instance.testDouble = jsonParser.getValueAsDouble();
} else if ("test_long_obj".equals(fieldName)){
instance.testLongObj = Long.valueOf(jsonParser.getValueAsLong());
} else if ("test_int_obj".equals(fieldName)){
instance.testIntObj = Integer.valueOf(jsonParser.getValueAsInt());
} else if ("test_string".equals(fieldName)){
instance.testString = jsonParser.getValueAsString(null);
} else if ("test_float_obj".equals(fieldName)){
instance.testFloatObj = new Float(jsonParser.getValueAsDouble());
} else if ("test_double_obj".equals(fieldName)){
instance.testDoubleObj = Double.valueOf(jsonParser.getValueAsDouble());
} else if ("test_int".equals(fieldName)){
instance.testInt = jsonParser.getValueAsInt();
} else if ("string".equals(fieldName)){
instance.string = jsonParser.getValueAsString(null);
} else if ("date".equals(fieldName)){
instance.date = LoganSquare.typeConverterFor(java.util.Date.class).parse(jsonParser);
} else if ("test_float".equals(fieldName)){
instance.testFloat = (float)jsonParser.getValueAsDouble();
} else if ("test_long".equals(fieldName)){
instance.testLong = jsonParser.getValueAsLong();
}
}
@Override
public void serialize(SimpleModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(SimpleModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
jsonGenerator.writeNumberField("test_double", object.testDouble);
jsonGenerator.writeNumberField("test_long_obj", object.testLongObj);
jsonGenerator.writeNumberField("test_int_obj", object.testIntObj);
jsonGenerator.writeStringField("test_string", object.testString);
jsonGenerator.writeNumberField("test_float_obj", object.testFloatObj);
jsonGenerator.writeNumberField("test_double_obj", object.testDoubleObj);
jsonGenerator.writeNumberField("test_int", object.testInt);
jsonGenerator.writeStringField("string", object.string);
if (object.date != null) {
jsonGenerator.writeFieldName("date");
LoganSquare.typeConverterFor(Date.class).serialize(object.date, "date", jsonGenerator);
}
jsonGenerator.writeNumberField("test_float", object.testFloat);
jsonGenerator.writeNumberField("test_long", object.testLong);
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
Actual Source:
=================
package com.bluelinelabs.logansquare.processor;
import com.bluelinelabs.logansquare.JsonMapper;
import com.bluelinelabs.logansquare.LoganSquare;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import java.io.IOException;
import java.lang.Override;
import java.lang.String;
import java.util.Date;
public final class SimpleModel$$JsonObjectMapper extends JsonMapper<SimpleModel> {
@Override
public SimpleModel parse(JsonParser jsonParser) throws IOException {
return _parse(jsonParser);
}
public static SimpleModel _parse(JsonParser jsonParser) throws IOException {
SimpleModel instance = new SimpleModel();
if (jsonParser.getCurrentToken() == null) {
jsonParser.nextToken();
}
if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
jsonParser.skipChildren();
return null;
}
while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
String fieldName = jsonParser.getCurrentName();
jsonParser.nextToken();
parseField(instance, fieldName, jsonParser);
jsonParser.skipChildren();
}
return instance;
}
public static void parseField(SimpleModel instance, String fieldName, JsonParser jsonParser) throws IOException {
if ("date".equals(fieldName)) {
instance.date = LoganSquare.typeConverterFor(java.util.Date.class).parse(jsonParser);
} else if ("string".equals(fieldName)){
instance.string = jsonParser.getValueAsString(null);
} else if ("test_string".equals(fieldName)){
instance.testString = jsonParser.getValueAsString(null);
} else if ("test_double_obj".equals(fieldName)){
instance.testDoubleObj = Double.valueOf(jsonParser.getValueAsDouble());
} else if ("test_int".equals(fieldName)){
instance.testInt = jsonParser.getValueAsInt();
} else if ("test_long_obj".equals(fieldName)){
instance.testLongObj = Long.valueOf(jsonParser.getValueAsLong());
} else if ("test_int_obj".equals(fieldName)){
instance.testIntObj = Integer.valueOf(jsonParser.getValueAsInt());
} else if ("test_float".equals(fieldName)){
instance.testFloat = (float)jsonParser.getValueAsDouble();
} else if ("test_double".equals(fieldName)){
instance.testDouble = jsonParser.getValueAsDouble();
} else if ("test_float_obj".equals(fieldName)){
instance.testFloatObj = new Float(jsonParser.getValueAsDouble());
} else if ("test_long".equals(fieldName)){
instance.testLong = jsonParser.getValueAsLong();
}
}
@Override
public void serialize(SimpleModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
_serialize(object, jsonGenerator, writeStartAndEnd);
}
public static void _serialize(SimpleModel object, JsonGenerator jsonGenerator, boolean writeStartAndEnd) throws IOException {
if (writeStartAndEnd) {
jsonGenerator.writeStartObject();
}
if (object.date != null) {
jsonGenerator.writeFieldName("date");
LoganSquare.typeConverterFor(Date.class).serialize(object.date, "date", jsonGenerator);
}
jsonGenerator.writeStringField("string", object.string);
jsonGenerator.writeStringField("test_string", object.testString);
jsonGenerator.writeNumberField("test_double_obj", object.testDoubleObj);
jsonGenerator.writeNumberField("test_int", object.testInt);
jsonGenerator.writeNumberField("test_long_obj", object.testLongObj);
jsonGenerator.writeNumberField("test_int_obj", object.testIntObj);
jsonGenerator.writeNumberField("test_float", object.testFloat);
jsonGenerator.writeNumberField("test_double", object.testDouble);
jsonGenerator.writeNumberField("test_float_obj", object.testFloatObj);
jsonGenerator.writeNumberField("test_long", object.testLong);
if (writeStartAndEnd) {
jsonGenerator.writeEndObject();
}
}
}
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:27)
at com.google.common.truth.FailureStrategy.fail(FailureStrategy.java:23)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.failWithCandidate(JavaSourcesSubject.java:233)
at com.google.testing.compile.JavaSourcesSubject$CompilationClause.parsesAs(JavaSourcesSubject.java:195)
at com.google.testing.compile.JavaSourcesSubject.parsesAs(JavaSourcesSubject.java:74)
at com.google.testing.compile.JavaSourcesSubject$SuccessfulCompilationBuilder.generatesSources(JavaSourcesSubject.java:444)
at com.bluelinelabs.logansquare.processor.SimpleModelTest.generatedSource(SimpleModelTest.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:86)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment