Examples of Foo


Examples of com.dyuproject.protostuff.codegen.V22Lite.Foo

        StringWriter sw = new StringWriter();
        json.writeTo(sw, foo);
        String generated = sw.toString();

        JsonParser parser = json.getJsonFactory().createJsonParser(generated);
        Foo parsedFoo = json.parseFrom(parser, Foo.class);
        parser.close();
       
        assertEquals(foo, parsedFoo);       
       
        return generated;
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.Foo

   
    public void testFoo() throws Exception
    {
        Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class);
       
        Foo fooCompare = foo;
        Foo dfoo = new Foo();
       
        byte[] data = JsonIOUtil.toByteArray(fooCompare, schema, true);
        JsonIOUtil.mergeFrom(data, dfoo, schema, true);
        SerializableObjects.assertEquals(fooCompare, dfoo);
    }
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.Foo

   
    public void testFoo() throws Exception
    {
        Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class);
       
        Foo fooCompare = foo;
        Foo dfoo = new Foo();
       
        byte[] data = JsonXIOUtil.toByteArray(fooCompare, schema, true, buf());
        JsonIOUtil.mergeFrom(data, dfoo, schema, true);
        SerializableObjects.assertEquals(fooCompare, dfoo);
    }
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.Foo

   
    public void testFooStreamed() throws Exception
    {
        Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class);
       
        Foo fooCompare = foo;
        Foo dfoo = new Foo();

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        LinkedBuffer buffer = buf();
        try
        {
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.Foo

   
    public void testFoo() throws Exception
    {
        Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class);
       
        Foo fooCompare = foo;
        Foo dfoo = new Foo();
       
        byte[] data = JsonIOUtil.toByteArray(fooCompare, schema, false);
        JsonIOUtil.mergeFrom(data, dfoo, schema, false);
        SerializableObjects.assertEquals(fooCompare, dfoo);
    }
View Full Code Here

Examples of com.dyuproject.protostuff.runtime.Foo

   
    public void testFoo() throws Exception
    {
        Schema<Foo> schema = RuntimeSchema.getSchema(Foo.class);
       
        Foo fooCompare = foo;
        Foo dfoo = new Foo();
       
        byte[] data = XmlIOUtil.toByteArray(fooCompare, schema);
        XmlIOUtil.mergeFrom(data, dfoo, schema);
        SerializableObjects.assertEquals(fooCompare, dfoo);
    }
View Full Code Here

Examples of com.google.appengine.datanucleus.bugs.test.Foo

import com.google.appengine.datanucleus.bugs.test.Foo;

public class Issue198Test extends JPABugTestCase {
  public void testRun() {
    beginTxn();
    Foo pojo = new Foo();
    em.persist(pojo);
    commitTxn();
    try {
      com.google.appengine.api.datastore.Entity e =
        ds.get(KeyFactory.createKey("BugsJPA$Foo", pojo.getId()));
      assertTrue(e.hasProperty("barKey"));
    } catch (EntityNotFoundException enfe) {
      fail("Entity wasn't found");
    }
  }
View Full Code Here

Examples of com.google.common.truth.delegation.Foo

    EXPECT.that(x).isIn(Range.open(3, 5));
    EXPECT.that(x).isEqualTo(4);
  }

  @Test public void customTypeCompares() {
    assert_().about(FOO).that(new Foo(5)).matches(new Foo(2 + 3));
  }
View Full Code Here

Examples of com.google.gwt.uibinder.test.client.UiRendererUi.Foo

  public void testDispatchEventAtRoot() {

    NativeEvent eventAtRoot = createMockNativeEvent(uiRoot, "click");

    UiRendererUi.getRenderer().onBrowserEvent(fooReceiver, eventAtRoot, uiRoot, new Foo("one"), "two");

    assertEquals(1, fooReceiver.handlerCalled);
    assertEquals("click", fooReceiver.event.getAssociatedType().getName());
    assertEquals(uiRoot, fooReceiver.root);
    assertEquals("one", fooReceiver.firstExtraParam.bar);
    assertEquals("two", fooReceiver.secondExtraParam);

    // Dispatch also works when the parent is passed
    fooReceiver = new MockFooReceiver();
    UiRendererUi.getRenderer().onBrowserEvent(fooReceiver, eventAtRoot, uiParent, new Foo("three"), "four");

    assertEquals(1, fooReceiver.handlerCalled);
    assertEquals("click", fooReceiver.event.getAssociatedType().getName());
    assertEquals(uiRoot, fooReceiver.root);
    assertEquals("three", fooReceiver.firstExtraParam.bar);
View Full Code Here

Examples of com.linkedin.data.template.TestRecordAndUnionTemplate.Foo

    for (Object[] row : inputs)
    {
      @SuppressWarnings("unchecked")
      DataMap map = new DataMap((Map<String,Object>) row[0]);
      Foo foo = new Foo(map);
      String raw = dataMapToString(map);
      String noOrder = templateToString(foo, false);
      String order = templateToString(foo, true);
      /* out.println(noOrder);
      out.println(order);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.