Examples of Foo


Examples of org.jboss.test.iiop.interfaces.Foo

         (StatelessSessionHome)PortableRemoteObject.narrow(
                    getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      Foo original = new Foo(7, "foo test");
      Foo echoedBack = session.testSerializable(original);
      assertEquals(Util.echoFoo(original), echoedBack);
      //----------------------------------------------------------------------
      session.remove();
   }
View Full Code Here

Examples of org.jboss.test.xb.builder.object.element.wrapper.support.Foo

   public void testFooWrapper()
      throws Exception
   {
      //enableTrace("org.jboss.xb");
      Foo foo = unmarshalObject(Foo.class);
      List<Number> items = foo.getItems();
      assertEquals(4, items.size());
      assertEquals(1, items.get(0));
      assertEquals(2, items.get(1));
      assertEquals(new Float(1.1), items.get(2));
      assertEquals(new MyNumber("123456789"), items.get(3));
View Full Code Here

Examples of org.mapstruct.ap.test.collection.adder.source.Foo

        Foo.class
    } )
    public void testMissingImport() throws DogException {

        Source2 source = new Source2();
        source.setAttributes( Arrays.asList( new Foo() ) );

        Target2 target = Source2Target2Mapper.INSTANCE.toTarget( source );
        assertThat( target ).isNotNull();
        assertThat( target.getAttributes().size() ).isEqualTo( 1 );
    }
View Full Code Here

Examples of org.mapstruct.ap.test.imports.from.Foo

        ParseException target = SourceTargetMapper.INSTANCE.sourceToTarget( source );

        assertThat( target ).isNotNull();

        Foo foo = new Foo();
        foo.setName( "bar" );

        org.mapstruct.ap.test.imports.to.Foo foo2 = SourceTargetMapper.INSTANCE.fooToFoo( foo );
        assertThat( foo2 ).isNotNull();
        assertThat( foo2.getName() ).isEqualTo( "bar" );
    }
View Full Code Here

Examples of org.mapstruct.test.model.Foo

public class MappersTest {

    @Test
    public void shouldReturnImplementationInstance() {

        Foo mapper = Mappers.getMapper( Foo.class );
        assertThat( mapper ).isNotNull();
    }
View Full Code Here

Examples of org.mvel2.tests.core.res.Foo

    Map vars = createTestMap();

    assertEquals(true, MVEL.eval(expr, vars) instanceof Foo);

    Foo foo = (Foo) test(expr);

    assertEquals(10, foo.getCountTest());
    assertEquals("Hello", foo.aValue);
    assertEquals("Goodbye", foo.bValue);
  }
View Full Code Here

Examples of org.springframework.batch.item.sample.Foo

  @Test
  public void testRestart() throws Exception {

    testedAsStream().update(executionContext);

    Foo foo1 = tested.read();
    assertEquals(1, foo1.getValue());

    Foo foo2 = tested.read();
    assertEquals(2, foo2.getValue());

    testedAsStream().update(executionContext);

    testedAsStream().close();

    // create new input source
    tested = getItemReader();

    testedAsStream().open(executionContext);

    Foo fooAfterRestart = tested.read();
    assertEquals(3, fooAfterRestart.getValue());
  }
View Full Code Here

Examples of protobuf_unittest.lite_equals_and_hash.LiteEqualsAndHash.Foo

    // We do however do some basic testing to make sure that equals is actually
    // overriden to test for value equality rather than simple object equality.

    // Check that two identical objs are equal.
    Foo foo1a = Foo.newBuilder()
        .setValue(1)
        .addBar(Bar.newBuilder().setName("foo1"))
        .build();
    Foo foo1b = Foo.newBuilder()
        .setValue(1)
        .addBar(Bar.newBuilder().setName("foo1"))
        .build();
    Foo foo2 = Foo.newBuilder()
        .setValue(1)
        .addBar(Bar.newBuilder().setName("foo2"))
        .build();

    // Check that equals is doing value rather than object equality.
View Full Code Here

Examples of tests.jfun.yan.benchmark.models.Foo

    new Benchmark("Spring: Create bean with Constructor Dependency Injection", LOOP){
      public void run() throws Exception {
        factory.getBean("foo");
      }
    }.start(true);
    Foo foo = (Foo)factory.getBean("foo");
    assertNotNull(foo.getBar());
  }
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.