Skip to content

Commit cc2ed79

Browse files
committed
Correct the message to match the function
1 parent 77d142d commit cc2ed79

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/java/org/json/junit/JSONObjectTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public void verifyNumberOutput(){
266266
JSONObject jsonObject = new JSONObject(new MyNumberContainer());
267267
String actual = jsonObject.toString();
268268
String expected = "{\"myNumber\":{\"number\":42}}";
269-
assertEquals("Not Equal", expected , actual);
269+
assertEquals("Equal", expected , actual);
270270

271271
/**
272272
* JSONObject.put() handles objects differently than the
@@ -280,7 +280,7 @@ public void verifyNumberOutput(){
280280
jsonObject.put("myNumber", new MyNumber());
281281
actual = jsonObject.toString();
282282
expected = "{\"myNumber\":42}";
283-
assertEquals("Not Equal", expected , actual);
283+
assertEquals("Equal", expected , actual);
284284

285285
/**
286286
* Calls the JSONObject(Map) ctor, which calls wrap() for values.
@@ -293,7 +293,7 @@ public void verifyNumberOutput(){
293293
jsonObject = new JSONObject(Collections.singletonMap("myNumber", new AtomicInteger(42)));
294294
actual = jsonObject.toString();
295295
expected = "{\"myNumber\":\"42\"}";
296-
assertEquals("Not Equal", expected , actual);
296+
assertEquals("Equal", expected , actual);
297297

298298
/**
299299
* JSONObject.put() inserts the AtomicInteger directly into the
@@ -305,7 +305,7 @@ public void verifyNumberOutput(){
305305
jsonObject.put("myNumber", new AtomicInteger(42));
306306
actual = jsonObject.toString();
307307
expected = "{\"myNumber\":42}";
308-
assertEquals("Not Equal", expected , actual);
308+
assertEquals("Equal", expected , actual);
309309

310310
/**
311311
* Calls the JSONObject(Map) ctor, which calls wrap() for values.
@@ -332,7 +332,7 @@ public void verifyNumberOutput(){
332332
jsonObject.put("myNumber", new Fraction(4,2));
333333
actual = jsonObject.toString();
334334
expected = "{\"myNumber\":\"4/2\"}"; // valid JSON, bug fixed
335-
assertEquals("Not Equal", expected , actual);
335+
assertEquals("Equal", expected , actual);
336336
}
337337

338338
/**

0 commit comments

Comments
 (0)