@@ -133,9 +133,12 @@ class JsonProtocolSuite extends FunSuite {
133
133
134
134
def assertValidDataInJson (validateJson : JValue , expectedJson : JValue ) {
135
135
val Diff (c, a, d) = validateJson diff expectedJson
136
- assert(c === JNothing , " Json changed" )
137
- assert(a === JNothing , " Json added" )
138
- assert(d === JNothing , " Json deleted" )
136
+ val validatePretty = JsonMethods .pretty(validateJson)
137
+ val expectedPretty = JsonMethods .pretty(expectedJson)
138
+ val errorMessage = s " Expected: \n $expectedPretty\n Found: \n $validatePretty"
139
+ assert(c === JNothing , s " $errorMessage\n Changed: \n ${JsonMethods .pretty(c)}" )
140
+ assert(a === JNothing , s " $errorMessage\n Added: \n ${JsonMethods .pretty(a)}" )
141
+ assert(d === JNothing , s " $errorMessage\n Delected: \n ${JsonMethods .pretty(d)}" )
139
142
}
140
143
}
141
144
@@ -165,7 +168,7 @@ object JsonConstants {
165
168
"""
166
169
|{"name":"name","cores":4,"memoryperslave":1234,
167
170
|"user":"%s","sparkhome":"sparkHome",
168
- |"command":"Command(mainClass,List(arg1, arg2),Map())"}
171
+ |"command":"Command(mainClass,List(arg1, arg2),Map(),List(),List(),None )"}
169
172
""" .format(System .getProperty(" user.name" , " <unknown>" )).stripMargin
170
173
171
174
val executorRunnerJsonStr =
0 commit comments