Skip to content

Commit

Permalink
... and fix the failing Mage.Stats test
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelzor committed Oct 31, 2016
1 parent cfad0f2 commit 6ac8c8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.xmage.ws.model.DomainErrors;
import com.xmage.ws.rest.services.XMageStatsService;
import com.xmage.ws.util.json.JSONParser;
import junit.framework.Assert;
import org.junit.Assert;
import org.junit.Test;

import javax.ws.rs.core.Response;
Expand All @@ -25,7 +25,7 @@ public void testAddNewAndGet() throws Exception {
JSONParser parser = new JSONParser();
parser.parseJSON((String) response.getEntity());

Assert.assertEquals(DomainErrors.Errors.STATUS_OK.getCode(), parser.getInt("code"));
Assert.assertEquals(DomainErrors.Errors.STATUS_NOT_FOUND.getCode(), parser.getInt("code"));
System.out.println("response = " + response.getEntity().toString());
}

Expand Down

0 comments on commit 6ac8c8e

Please sign in to comment.