Codota Logo
BaseRequestItemTest.assertEquals
Code IndexAdd Codota to your IDE (free)

How to use
assertEquals
method
in
org.apache.shindig.protocol.BaseRequestItemTest

Best Java code snippets using org.apache.shindig.protocol.BaseRequestItemTest.assertEquals (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.lmco.shindig/shindig-common

@Test
public void testJSONConstructor() throws Exception {
 request = new BaseRequestItem(new JSONObject('{' +
     "userId:john.doe," +
     "groupId:@self," +
     "fields:[huey,dewey,louie]" +
   '}'), null, FAKE_TOKEN, converter, converter);
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.gatein.shindig/shindig-common

@Test
public void testJSONConstructor() throws Exception {
 request = new BaseRequestItem(new JSONObject('{' +
     "userId:john.doe," +
     "groupId:@self," +
     "fields:[huey,dewey,louie]" +
   '}'), null, FAKE_TOKEN, converter, converter);
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.apache.shindig/shindig-common

@Test
public void testJSONConstructor() throws Exception {
 request = new BaseRequestItem(new JSONObject('{' +
     "userId:john.doe," +
     "groupId:@self," +
     "fields:[huey,dewey,louie]" +
   '}'), null, FAKE_TOKEN, converter, converter);
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testFields() throws Exception {
 request.setParameter("fields", "");
 assertEquals(Sets.<String>newHashSet(), request.getFields());
 request.setParameter("fields", "happy,sad,grumpy");
 assertEquals(Sets.newHashSet("happy", "sad", "grumpy"), request.getFields());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testFields() throws Exception {
 request.setParameter("fields", "");
 assertEquals(Sets.<String>newHashSet(), request.getFields());
 request.setParameter("fields", "happy,sad,grumpy");
 assertEquals(Sets.newHashSet("happy", "sad", "grumpy"), request.getFields());
}
origin: org.apache.shindig/shindig-common

@Test
public void testFields() throws Exception {
 request.setParameter("fields", "");
 assertEquals(Sets.<String>newHashSet(), request.getFields());
 request.setParameter("fields", "happy,sad,grumpy");
 assertEquals(Sets.newHashSet("happy", "sad", "grumpy"), request.getFields());
}
origin: org.apache.shindig/shindig-common

@Test
public void testParseCommaSeparatedList() throws Exception {
 request.setParameter("fields", "huey,dewey,louie");
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.gatein.shindig/shindig-common

@Test
public void testParseCommaSeparatedList() throws Exception {
 request.setParameter("fields", "huey,dewey,louie");
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testParseCommaSeparatedList() throws Exception {
 request.setParameter("fields", "huey,dewey,louie");
 assertEquals(Lists.newArrayList("huey", "dewey", "louie"), request.getListParameter("fields"));
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testCount() throws Exception {
 request.setParameter("count", null);
 assertEquals(RequestItem.DEFAULT_COUNT, request.getCount());
 request.setParameter("count", "5");
 assertEquals(5, request.getCount());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testStartIndex() throws Exception {
 request.setParameter("startIndex", null);
 assertEquals(RequestItem.DEFAULT_START_INDEX, request.getStartIndex());
 request.setParameter("startIndex", "5");
 assertEquals(5, request.getStartIndex());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testSortOrder() throws Exception {
 request.setParameter("sortOrder", null);
 assertEquals(SortOrder.ascending, request.getSortOrder());
 request.setParameter("sortOrder", "descending");
 assertEquals(SortOrder.descending, request.getSortOrder());
}
origin: org.gatein.shindig/shindig-common

@Test
public void testStartIndex() throws Exception {
 request.setParameter("startIndex", null);
 assertEquals(RequestItem.DEFAULT_START_INDEX, request.getStartIndex());
 request.setParameter("startIndex", "5");
 assertEquals(5, request.getStartIndex());
}
origin: org.apache.shindig/shindig-common

@Test
public void testGetAppId() throws Exception {
 request.setParameter("appId", "100");
 assertEquals("100", request.getAppId());
 request.setParameter("appId", "@app");
 assertEquals(FAKE_TOKEN.getAppId(), request.getAppId());
}
origin: org.gatein.shindig/shindig-common

@Test
public void testGetAppId() throws Exception {
 request.setParameter("appId", "100");
 assertEquals("100", request.getAppId());
 request.setParameter("appId", "@app");
 assertEquals(FAKE_TOKEN.getAppId(), request.getAppId());
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testGetAppId() throws Exception {
 request.setParameter("appId", "100");
 assertEquals("100", request.getAppId());
 request.setParameter("appId", "@app");
 assertEquals(FAKE_TOKEN.getAppId(), request.getAppId());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testGetAppId() throws Exception {
 request.setParameter("appId", "100");
 assertEquals("100", request.getAppId());
 request.setParameter("appId", "@app");
 assertEquals(FAKE_TOKEN.getAppId(), request.getAppId());
}
origin: org.gatein.shindig/shindig-common

@Test
public void testGetInvalidJsonTypedParameter() throws Exception {
 request.setParameter("anykey", "{name: 'Bob");
 int code = 0;
 try {
  request.getTypedParameter("anykey", InputData.class);
 } catch(ProtocolException e) {
  code = e.getCode();
 }
 assertEquals(HttpServletResponse.SC_BAD_REQUEST, code);
}
origin: org.gatein.shindig/shindig-common

@Test
public void testAttributes() throws Exception {
 assertNull(request.getAttribute("undefined"));
 request.setAttribute("test", "value");
 assertEquals("value", request.getAttribute("test"));
 request.setAttribute("test", null);
 assertNull(request.getAttribute("undefined"));
}
origin: org.apache.shindig/shindig-common

@Test
public void testAttributes() throws Exception {
 assertNull(request.getAttribute("undefined"));
 request.setAttribute("test", "value");
 assertEquals("value", request.getAttribute("test"));
 request.setAttribute("test", null);
 assertNull(request.getAttribute("undefined"));
}
org.apache.shindig.protocolBaseRequestItemTestassertEquals

Popular methods of BaseRequestItemTest

  • assertNull
  • assertTrue
  • fail

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now