Examples of Foo


Examples of com.linkedin.pegasus.generator.examples.Foo

  {
    Map<CompoundKey, Foo> results = new HashMap<CompoundKey, Foo>();
    CompoundKey c1 = new CompoundKey().append("a", "a1").append("b", 1);
    CompoundKey c2 = new CompoundKey().append("a", "a2").append("b", 2);
    CompoundKey c3 = new CompoundKey().append("a", "a3").append("b", 3);
    Foo record1 = new Foo().setStringField("record1");
    Foo record2 = new Foo().setStringField("record2");
    results.put(c1, record1);
    results.put(c2, record2);

    Map<String, Foo> protocol1TransformedResults = new HashMap<String, Foo>();
    protocol1TransformedResults.put("a=a1&b=1", record1);
View Full Code Here

Examples of com.netflix.astyanax.entitystore.SampleEntity.Foo

    entity.setUuid(TimeUUIDUtils.getUniqueTimeUUIDinMicros());
    entity.setStringSet(ImmutableSet.of("A""B"));
    entity.setStringMap(ImmutableMap.of("KA", "VA", "KB", "VB"));
    entity.setLongSet(ImmutableSet.of(123L, 456L));
    entity.setLongMap(ImmutableMap.of(1L, 11L, 2L, 22L));
    Foo foo = new Foo(prng.nextInt(), RandomStringUtils.randomAlphanumeric(4));
    entity.setFoo(foo);
    BarBar barbar = new BarBar();
    barbar.i = prng.nextInt();
    barbar.s = RandomStringUtils.randomAlphanumeric(4);
    Bar bar = new Bar();
View Full Code Here

Examples of com.opensymphony.xwork2.util.Foo

        assertNotNull(bar);
    }

    public void testNestedConverters() {
        Cat cat = new Cat();
        cat.setFoo(new Foo());
        stack.push(cat);
        stack.setValue("foo.number", "123");
        assertEquals(321, cat.getFoo().getNumber());
    }
View Full Code Here

Examples of com.pholser.junit.quickcheck.test.generator.Foo

        static int iterations;

        @Theory public void shouldHold(@ForAll Function<Foo, Zilch> f) {
            ++iterations;

            Foo foo = new Foo(2);
            Zilch result = f.apply(foo);

            for (int i = 0; i < 10000; ++i)
                assertEquals(result, f.apply(foo));
        }
View Full Code Here

Examples of japidviews.cn.bran.japid.template.FooController.foo

  public String bar(String p) {
    return JapidRenderer.renderWith(foo.class, p);
  }

  public String bar2(String p) {
    return new foo().render(p);
  }
View Full Code Here

Examples of jodd.petite.tst.Foo

    assertEquals(3, pc.getTotalBeans());
    assertEquals(2, pc.getTotalScopes());

    final Boo boo = (Boo) pc.getBean("boo");
    final Foo foo = (Foo) pc.getBean("foo");
    assertSame(boo.getFoo(), foo);


    final Semaphore sem = new Semaphore(1);
    sem.acquire();

    Thread thread = new Thread() {
      @Override
      public void run() {
        Boo boo2 = (Boo) pc.getBean("boo");
        Foo foo2 = (Foo) pc.getBean("foo");
        assertSame(foo2, foo);
        assertNotSame(boo2, boo);
        assertSame(foo2, boo2.getFoo());
        sem.release();
      }
View Full Code Here

Examples of jodd.petite.tst4.Foo

    // param
    petiteContainer.defineParameter("foo.data", "data");

    // get bean
    Foo foo = (Foo) petiteContainer.getBean("foo");

    assertEquals("ctor null null", foo.result);
    assertEquals("bar", foo.bar.toString());
    assertEquals("data", foo.data);
  }
View Full Code Here

Examples of jodd.proxetta.data.Foo

        new ProxyAspect(CollectorAdvice.class, new AllTopMethodsPointcut())
    );

//    proxetta.setDebugFolder("d:\\");

    Foo foo = (Foo) proxetta.builder(Foo.class).newInstance();

    Field field = foo.getClass().getDeclaredField("$__methods$0");

    field.setAccessible(true);

    List<String> list = (List<String>) field.get(foo);

    assertNotNull(list);

    assertEquals(0, list.size());

    foo.m1();
    assertEquals(1, list.size());
    assertEquals("m1", list.get(0));

    foo.m1();
    assertEquals(2, list.size());
    assertEquals("m1", list.get(0));
    assertEquals("m1", list.get(1));
  }
View Full Code Here

Examples of jodd.vtor.data.Foo

    ValidationContext vctx = new ValidationContext();
    vctx.add(new Check("string", new MinLengthConstraint(2)));

    Vtor vtor = new Vtor();
    vtor.validate(vctx, new Foo());

    assertTrue(vtor.hasViolations());
    List<Violation> vlist = vtor.getViolations();
    assertFalse(vlist.isEmpty());
    assertEquals(1, vlist.size());
View Full Code Here

Examples of juzu.impl.bridge.response.Foo

  @View
  @Route("/view")
  @MimeType("text/foo")
  public Foo view() throws Exception {
    return new Foo("from_view".getBytes());
  }
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.