1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-13 01:36:18 +00:00

Order tags by name in all requests

This commit is contained in:
jendib
2013-08-04 16:45:37 +02:00
parent 0ab480165c
commit 363d6eef23
2 changed files with 3 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ public class TestTagResource extends BaseJerseyTest {
json = response.getEntity(JSONObject.class);
tags = json.getJSONArray("tags");
Assert.assertTrue(tags.length() > 0);
Assert.assertEquals("Updated name", tags.getJSONObject(0).getString("name"));
Assert.assertEquals("Updated name", tags.getJSONObject(1).getString("name"));
// Deletes a tag
tagResource = resource().path("/tag/" + tag4Id);