Examples of create()


Examples of ro.isdc.wro.model.factory.WroModelFactory.create()

    WroModel modelFromTest = new WroModel();

    when(servletContextAttributeHelper.getManagerFactory()).thenReturn(managerFactory);
    when(managerFactory.create()).thenReturn(manager);
    when(manager.getModelFactory()).thenReturn(modelFactory);
    when(modelFactory.create()).thenReturn(modelFromTest);

    WroTagLibConfig wroTagLibConfig = new WroTagLibConfig(this.servletContext);
    WroModel modelFromConfig = wroTagLibConfig.getModel(servletContextAttributeHelper);

    assertEquals("Should return the available model", modelFromTest, modelFromConfig);

Examples of ro.isdc.wro.model.factory.XmlModelFactory.create()

      @Override
      protected InputStream getModelResourceAsStream() {
        return getClass().getResourceAsStream("modelInspector.xml");
      }
    };
    return factory.create();
  }

  @Test(expected = NullPointerException.class)
  public void cannotAcceptNullModel() {
    new WroModelInspector(null);

Examples of rocket.beans.rebind.aop.MethodMatcherFactory.create()

      context.branch();
      final String advisorId = aspect.getAdvisor();
      final String targetBeanId = aspect.getTarget();
      context.debug(advisorId + "=" + targetBeanId);

      aspect.setMethodMatcher(methodMatcherFactory.create(aspect.getMethodExpression()));

      final Bean bean = this.getBean(targetBeanId);
      this.verifyProxyTarget(bean);
      this.verifyAdvisorBean(aspect);
      this.verifyMethodExpression(aspect);

Examples of ru.shalnov.pacman.client.gui.MapUI.create()

        System.out.println("Generate map...");
        MapGenerator mapGen = new MapGenerator(20, 10, 0.44, 3);
        Map map = mapGen.generateMap();

        MapUI mapUI = new MapUI();
        mapUI.create(map, -1);

        System.out.println("success");
        Game game = new Game(map, mapUI);
        map.print();

Examples of se.gu.fire.data.AssignmentManager.create()

                .finalDeadline(new Date(Calendar.getInstance().getTime().getTime()+15000))
                .firstDeadline(new Date(Calendar.getInstance().getTime().getTime()+10000))
                .build();
           
        em.getTransaction().begin();
        am.create(assign);
        em.getTransaction().commit();
       
        Assignment assign2 = am.read(assign.getId());
        assertEquals(assign, assign2);
    }

Examples of se.gu.fire.data.GroupManager.create()

        sg.addGroupMember(user1);

        em.getTransaction().begin();
        userMan.create(user1);
        groupMan.create(sg);
        em.getTransaction().commit();

        FireUser user2 = userMan.read(user1.getId());
        assertNotNull(user2);

Examples of se.gu.fire.data.PasswordManager.create()

        UserManager um = new UserManager();
        um.setEntityManager(em);
       
        em.getTransaction().begin();
        Password password = new Password(10L, "tio");
        pm.create(password);
        em.getTransaction().commit();

        assertNotNull(pm.read(10L));

    }

Examples of se.gu.fire.data.SubmissionManager.create()

                .submittingGroup(group)
                .grader(u2)
                .build();
       
        em.getTransaction().begin();
        sm.create(sub);
        em.getTransaction().commit();
        assertEquals(SubmissionStatus.New, sm.getAssignmentStatus(assign, group));

        Comment com = new Comment(u2, "Total katastrof! Bara Christopher kan rädda dig nu");

Examples of se.gu.fire.data.UserManager.create()

        // Skapa ny grader
        FireUser u = TestUtil.createRandomUser();
        u.setRole(UserRole.GRADER);
       
        em.getTransaction().begin();
        um.create(u);
        em.getTransaction().commit();
       
        assertTrue(um.isGrader(u.getId()));
        assertTrue(um.isGrader(u));

Examples of services.ejb.CatalogEJBHome.create()

        // The narrow(...) call requires generated EJB stubs. Tuscany binding.ejb doesn't the stubs
        CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o, CatalogEJBHome.class);

        // The following call will hang with SUN jdk1.6.0_05, please use SUN or IBM jdk 1.5.x instead
        CatalogEJBRemote catalog = home.create();

        Vegetable items[] = catalog.get();
        for (Vegetable item : items) {
            System.out.println(item.getName() + " " + item.getPrice());
        }
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.