You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by jo...@apache.org on 2015/07/25 19:00:52 UTC
[4/5] incubator-usergrid git commit: Using org.junit instead of
junit.framework
Using org.junit instead of junit.framework
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/7d09a242
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/7d09a242
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/7d09a242
Branch: refs/heads/master
Commit: 7d09a24209f8ab4049165a889bc5c6b30f7f4bb3
Parents: 2891112
Author: arun.ram <ar...@spartasystems.com>
Authored: Fri Jul 10 10:06:29 2015 -0400
Committer: arun.ram <ar...@spartasystems.com>
Committed: Fri Jul 10 10:06:29 2015 -0400
----------------------------------------------------------------------
.../organizations/OrganizationResourceIT.java | 29 ++++++++------------
1 file changed, 12 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/7d09a242/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/OrganizationResourceIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/OrganizationResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/OrganizationResourceIT.java
index c519353..67c2cd6 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/OrganizationResourceIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/OrganizationResourceIT.java
@@ -16,31 +16,26 @@
*/
package org.apache.usergrid.rest.management.organizations;
-
import com.sun.jersey.api.client.UniformInterfaceException;
-import org.apache.usergrid.rest.management.organizations.OrganizationsResource;
-
-import java.net.URLEncoder;
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.ws.rs.core.MediaType;
-
-import org.codehaus.jackson.JsonNode;
-import org.junit.Rule;
-import org.junit.Test;
+import junit.framework.Assert;
import org.apache.usergrid.cassandra.Concurrent;
import org.apache.usergrid.management.OrganizationInfo;
import org.apache.usergrid.rest.AbstractRestIT;
import org.apache.usergrid.rest.TestContextSetup;
-
-import junit.framework.Assert;
+import org.codehaus.jackson.JsonNode;
+import org.junit.Rule;
+import org.junit.Test;
import org.usergrid.java.client.response.ApiResponse;
-import static junit.framework.Assert.fail;
+import javax.ws.rs.core.MediaType;
+import java.net.URLEncoder;
+import java.util.HashMap;
+import java.util.Map;
+
+
+import static org.apache.usergrid.utils.MapUtils.hashMap;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
-import static org.apache.usergrid.utils.MapUtils.hashMap;
@Concurrent()
@@ -98,7 +93,7 @@ public class OrganizationResourceIT extends AbstractRestIT {
try {
final String encodedAppName = URLEncoder.encode("<bob>", "UTF-8");
resource().path("/applications/" + encodedAppName).get( String.class );
- fail("Expected exception");
+ Assert.fail("Expected exception");
}
catch (UniformInterfaceException e) {
final ApiResponse response = e.getResponse().getEntity(ApiResponse.class);