Examples of Child


Examples of org.impalaframework.spring.module.impl.Child

        catch (NoSuchBeanDefinitionException e) {
        }

        ClassPathXmlApplicationContext child = new ClassPathXmlApplicationContext(
                new String[] { "childcontainer/child-context.xml" }, parent);
        Child childBean = (Child) child.getBean("child");

        // show that we've overridden the child
        Parent gotParent = childBean.tryGetParent();
        assertSame(parentBean, gotParent);
    }
View Full Code Here

Examples of org.javaee7.jpa.ordercolumn.entity.bidirectionaljoin.Child

    @Test
    public void saveInOneGo() {
        Parent parent = new Parent();

        Child child1 = new Child();
        child1.setParent(parent);

        Child child2 = new Child();
        child2.setParent(parent);

        parent.getChildren().add(child1);
        parent.getChildren().add(child2);

        parent = indexColumnTesterService.save(parent);
View Full Code Here

Examples of org.javaee7.jpa.ordercolumn.entity.bidirectionalmappedby.Child

    @Test
    public void saveInOneGo() {

        Parent parent = new Parent();

        Child child1 = new Child();
        child1.setParent(parent);

        Child child2 = new Child();
        child2.setParent(parent);

        parent.getChildren().add(child1);
        parent.getChildren().add(child2);

        parent = indexColumnTesterService.save(parent);
View Full Code Here

Examples of org.javaee7.jpa.ordercolumn.entity.unidirectional.Child

     */
    @Test
    public void saveInOneGo() {

        Parent parent = new Parent();
        Child child1 = new Child();
        Child child2 = new Child();

        parent.getChildren().add(child1);
        parent.getChildren().add(child2);

        parent = indexColumnTesterService.save(parent);
View Full Code Here

Examples of org.jboss.serial.data.Child

    ArrayList list = new ArrayList();
    public ClassWithPrivateWriteAndRead()
    {
        for (int i=0;i<10;i++)
        {
            list.add(new Child());
        }
    }
View Full Code Here

Examples of org.jboss.test.aop.inheritanceacrosspackages.child.Child

   }

   public void testChildClass() throws Exception
   {
      TestInterceptor.intercepted = false;
      Child child = new Child();
      assertTrue(TestInterceptor.intercepted);
      ((org.jboss.aop.Advised)child)._getInstanceAdvisor();
      TestInterceptor.intercepted = false;
      child.field = 20;
      assertTrue(TestInterceptor.intercepted);
      TestInterceptor.intercepted = false;
      child.field = child.field * 5;
      assertTrue(TestInterceptor.intercepted);
      TestInterceptor.intercepted = false;
      child.field2 = 40;
      assertTrue(TestInterceptor.intercepted);
      TestInterceptor.intercepted = false;
      child.field2 = child.field2 * 10;
      assertTrue(TestInterceptor.intercepted);
      TestInterceptor.intercepted = false;
      child.base();
      assertTrue(TestInterceptor.intercepted);
      TestInterceptor.intercepted = false;
      child.child();
      assertTrue(TestInterceptor.intercepted);
   }
View Full Code Here

Examples of org.jboss.test.cmp2.batchcascadedelete.ejb.Child

   {
      ParentHome parentHome = ParentUtil.getHome();
      Parent parent = parentHome.create("parent");

      ChildHome childHome = ChildUtil.getHome();
      Child child = childHome.create( parent, "child");

      GrandchildHome grandchildHome = GrandchildUtil.getHome();

      // If you comment out the next line, then the call to child.remove() works fine.
      grandchildHome.create(child.getId(), "grandchild");

      // this is the test for non-null foreign key
      child.remove();
   }
View Full Code Here

Examples of org.jboss.test.microcontainer.matrix.Child

   private static final int EXPECTED_ANNNOTATED_CHILD_ONLY = 1;
   private static final int EXPECTED_ANNNOTATED_CHILD_BASEOVERRIDDEN = 1;

   public void testProxiedChild() throws Exception
   {
      Child proxiedChild = (Child)getBean("ProxiedChild");
      assertTrue(proxiedChild instanceof Advised);
      assertTrue(proxiedChild instanceof AspectManaged);

      TestInterceptor.reset();
      proxiedChild.baseOnly();
      //Bindings applied by subclass metadata
      assertEquals(EXPECTED_ANNNOTATED_CHILD_BASEONLY_PROXY, TestInterceptor.interceptions);
      assertNotNull(TestInterceptor.invoked);
      assertEquals("baseOnly", TestInterceptor.invoked.getName());
      assertNotNull(TestInterceptor.classAnnotation);
      assertTrue(TestInterceptor.classAnnotation instanceof org.jboss.test.microcontainer.support.Test);
      assertNull(TestInterceptor.methodAnnotation);
      assertNull(TestInterceptor.metadata);

      TestInterceptor.reset();
      proxiedChild.childOnly();
      assertEquals(EXPECTED_ANNNOTATED_CHILD_ONLY, TestInterceptor.interceptions);
      assertNotNull(TestInterceptor.invoked);
      assertEquals("childOnly", TestInterceptor.invoked.getName());
      assertNotNull(TestInterceptor.classAnnotation);
      assertTrue(TestInterceptor.classAnnotation instanceof org.jboss.test.microcontainer.support.Test);
      assertNull(TestInterceptor.methodAnnotation);
      assertNull(TestInterceptor.metadata);

      TestInterceptor.reset();
      proxiedChild.baseOverridden();
      assertEquals(EXPECTED_ANNNOTATED_CHILD_BASEOVERRIDDEN, TestInterceptor.interceptions);
      assertNotNull(TestInterceptor.invoked);
      assertEquals("baseOverridden", TestInterceptor.invoked.getName());
      assertNotNull(TestInterceptor.classAnnotation);
      assertTrue(TestInterceptor.classAnnotation instanceof org.jboss.test.microcontainer.support.Test);
View Full Code Here

Examples of org.jvnet.jaxb2_commons.ppp.Child

      BigInteger key = OpenDoPEHandler.getSdtPr(entry).getId().getVal();
     
      Object replacement = templateConditionSdtsByID.get(key);
     
      // ok, replace
      Child child = (Child)entry;
      Object parent = child.getParent();
      log.info("parent: " + parent.getClass().getName() );
     
      if (parent instanceof ContentAccessor
          || parent instanceof java.util.ArrayList) {
       
View Full Code Here

Examples of org.springframework.data.jpa.domain.sample.Child

  @Autowired ParentRepository repository;

  @Before
  public void setUp() {

    repository.save(new Parent().add(new Child()));
    repository.save(new Parent().add(new Child()).add(new Child()));
    repository.save(new Parent().add(new Child()));
    repository.save(new Parent());
    repository.flush();
  }
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.