Tabnine Logo
BeanDelegatorTest
Code IndexAdd Tabnine to your IDE (free)

How to use
BeanDelegatorTest
in
org.apache.shindig.protocol.conversion

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

origin: org.gatein.shindig/shindig-common

@Test
public void testStringList() {
 assertNull(proxy.getList());
 List<String> stringList = ImmutableList.of("item1", "item2");
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
 stringList = ImmutableList.of();
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
}
origin: org.apache.shindig/shindig-common

@Before
public void setUp() {
 beanFilter = new BeanFilter();
 beanDelegator = BeanDelegatorTest.createSimpleDelegator();
}
origin: org.gatein.shindig/shindig-common

@Test
public void testSimpleBean() {
 String s = "test";
 source.setS(s);
 assertEquals(s, proxy.getS());
 proxy.setI(5);
 assertEquals(5, proxy.getI());
 assertEquals(5, source.getI());
 source.setStyle(SimpleBean.RealStyle.R_A);
 assertEquals(SimpleBeanInterface.Style.A, proxy.getStyle());
}
origin: org.apache.shindig/shindig-common

@Test
public void testExtraFields() {
 TokenData data = new TokenData();
 String container = "data";
 TokenInter p = beanDelegator.createDelegator(data, TokenInter.class,
   ImmutableMap.<String, Object>of("container", container));
 assertSame(data.getId(), p.getId());
 assertSame(container, p.getContainer());
}
origin: org.apache.shindig/shindig-common

@Test
public void testSimpleBean() {
 String s = "test";
 source.setS(s);
 assertEquals(s, proxy.getS());
 proxy.setI(5);
 assertEquals(5, proxy.getI());
 assertEquals(5, source.getI());
 source.setStyle(SimpleBean.RealStyle.R_A);
 assertEquals(SimpleBeanInterface.Style.A, proxy.getStyle());
}
origin: org.gatein.shindig/shindig-common

@Test
public void testExtraFields() {
 TokenData data = new TokenData();
 String container = "data";
 TokenInter p = beanDelegator.createDelegator(data, TokenInter.class,
   ImmutableMap.<String, Object>of("container", container));
 assertSame(data.getId(), p.getId());
 assertSame(container, p.getContainer());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testStringList() {
 assertNull(proxy.getList());
 List<String> stringList = ImmutableList.of("item1", "item2");
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
 stringList = ImmutableList.of();
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
}
origin: apache/shindig

@Test
public void testSimpleBean() {
 String s = "test";
 source.setS(s);
 assertEquals(s, proxy.getS());
 proxy.setI(5);
 assertEquals(5, proxy.getI());
 assertEquals(5, source.getI());
 source.setStyle(SimpleBean.RealStyle.R_A);
 assertEquals(SimpleBeanInterface.Style.A, proxy.getStyle());
}
origin: com.lmco.shindig/shindig-common

@Before
public void setUp() {
 beanFilter = new BeanFilter();
 beanDelegator = BeanDelegatorTest.createSimpleDelegator();
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testExtraFieldsBadCase() {
 TokenData data = new TokenData();
 String container = "data";
 TokenInter p = beanDelegator.createDelegator(data, TokenInter.class,
   ImmutableMap.<String, Object>of("Cont_Ainer", container));
 assertSame(data.getId(), p.getId());
 assertSame(container, p.getContainer());
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testStringList() {
 assertNull(proxy.getList());
 List<String> stringList = ImmutableList.of("item1", "item2");
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
 stringList = ImmutableList.of();
 source.setList(stringList);
 assertEquals(stringList, proxy.getList());
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testSimpleBean() {
 String s = "test";
 source.setS(s);
 assertEquals(s, proxy.getS());
 proxy.setI(5);
 assertEquals(5, proxy.getI());
 assertEquals(5, source.getI());
 source.setStyle(SimpleBean.RealStyle.R_A);
 assertEquals(SimpleBeanInterface.Style.A, proxy.getStyle());
}
origin: org.wso2.org.apache.shindig/shindig-common

@Before
public void setUp() {
 beanFilter = new BeanFilter();
 beanDelegator = BeanDelegatorTest.createSimpleDelegator();
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testExtraFields() {
 TokenData data = new TokenData();
 String container = "data";
 TokenInter p = beanDelegator.createDelegator(data, TokenInter.class,
   ImmutableMap.<String, Object>of("container", container));
 assertSame(data.getId(), p.getId());
 assertSame(container, p.getContainer());
}
origin: org.wso2.org.apache.shindig/shindig-common

@Test
public void testStringMap() {
 assertNull(proxy.getMap());
 Map<String, String> stringMap = ImmutableMap.of("item1", "v1", "item2", "v2");
 source.setMap(stringMap);
 assertEquals(stringMap, proxy.getMap());
 stringMap = ImmutableMap.of();
 source.setMap(stringMap);
 assertEquals(stringMap, proxy.getMap());
}
origin: com.lmco.shindig/shindig-common

@Test
public void testSimpleBean() {
 String s = "test";
 source.setS(s);
 assertEquals(s, proxy.getS());
 proxy.setI(5);
 assertEquals(5, proxy.getI());
 assertEquals(5, source.getI());
 source.setStyle(SimpleBean.RealStyle.R_A);
 assertEquals(SimpleBeanInterface.Style.A, proxy.getStyle());
}
origin: org.gatein.shindig/shindig-common

@Before
public void setUp() {
 beanFilter = new BeanFilter();
 beanDelegator = BeanDelegatorTest.createSimpleDelegator();
}
origin: com.lmco.shindig/shindig-common

@Test
public void testExtraFields() {
 TokenData data = new TokenData();
 String container = "data";
 TokenInter p = beanDelegator.createDelegator(data, TokenInter.class,
   ImmutableMap.<String, Object>of("container", container));
 assertSame(data.getId(), p.getId());
 assertSame(container, p.getContainer());
}
origin: org.apache.shindig/shindig-common

@Test
public void testStringMap() {
 assertNull(proxy.getMap());
 Map<String, String> stringMap = ImmutableMap.of("item1", "v1", "item2", "v2");
 source.setMap(stringMap);
 assertEquals(stringMap, proxy.getMap());
 stringMap = ImmutableMap.of();
 source.setMap(stringMap);
 assertEquals(stringMap, proxy.getMap());
}
origin: org.apache.shindig/shindig-common

@Test
public void testBeanList() {
 List<SimpleBean> beanList = ImmutableList.of();
 source.setBeanList(beanList);
 assertEquals(beanList, proxy.getBeanList());
 SimpleBean item = new SimpleBean().setS("item");
 beanList = ImmutableList.of(item);
 source.setBeanList(beanList);
 List<SimpleBeanInterface> interList = proxy.getBeanList();
 assertEquals(1, interList.size());
 assertEquals(item.getS(), interList.get(0).getS());
}
org.apache.shindig.protocol.conversionBeanDelegatorTest

Most used methods

  • assertEquals
  • assertNull
  • assertSame
  • createSimpleDelegator

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now