Examples of Categorie


Examples of org.xrace.model.Categorie

        .findByNomPrenomExact("Côté", "Nathalie").get(0);

    final Discipline disciplineXC = getDisciplineService().findByNom("XC");
    final Discipline disciplineDH = getDisciplineService().findByNom("DH");

    final Categorie categorieXmxF = getCategorieService().findByCode(
        "XMX30", "F", disciplineXC);
    final Categorie categorieDssF = getCategorieService().findByCode("DSS",
        "F", disciplineDH);

    final Saison saison2007 = getSaisonService().findByAnnee(2007)
        .iterator().next();

Examples of org.xrace.model.Categorie

    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
        return new CategorieUpdatePage(new Categorie(), true);
      }

      public Class getPageIdentity()
      {
        return CategorieUpdatePage.class;

Examples of org.xrace.model.Categorie

  @Override
  protected void populateItem(final ListItem item)
  {
    super.populateItem(item);

    final Categorie categorie = (Categorie) item.getModelObject();

    item.add(new Label("codeCategorie", categorie.getCodeCategorie()));
    item.add(new Label("nom", categorie.getNom()));
    item.add(new Label("ageMin", categorie.getAgeMin().toString()));
    item.add(new Label("ageMax", categorie.getAgeMax().toString()));
    item.add(new Label("niveau", categorie.getNiveau()));
    item.add(new Label("sexe", categorie.getSexe()));
    item.add(new Label("discipline", categorie.getDiscipline().getNom()));

    item.add(new PageLink("modifier", new IPageLink()
    {
      private static final long serialVersionUID = 1L;

Examples of org.xrace.model.Categorie

   * @see wicket.markup.html.form.IChoiceRenderer#getDisplayValue(Object)
   */
  @Override
  public Object getDisplayValue(final Object object)
  {
    final Categorie categorie = (Categorie) object;
    final String display = categorie.getNomComplet();
    return display;
  }

Examples of org.xrace.model.Categorie

  {
    if (index < 0)
    {
      return "";
    }
    final Categorie categorie = (Categorie) object;
    final String id = categorie.getId().toString();
    return id;
  }

Examples of org.xrace.model.Categorie

        disciplineDh).size());
  }

  public void testSave() throws Exception
  {
    Categorie categorie;

    categorie = new Categorie("DMX40", "Maître 40+ F", 40, 99, "F",
        "sport", getDisciplineService().findByNom("DH"));
    getCategorieService().save(categorie);

    categorie = new Categorie("DMX40", "Maître 40+ F", 40, 99, "H",
        "expert", getDisciplineService().findByNom("DH"));
    getCategorieService().save(categorie);
  }

Examples of org.xrace.model.Categorie

  public void testSaveUnique() throws Exception
  {
    try
    {
      Categorie categorie;
      categorie = new Categorie("DMW40", "Maître 40+ F", 40, 99, "F",
          "sport", getDisciplineService().findByNom("DH"));
      getCategorieService().save(categorie);

      Assert.fail();
    }

Examples of org.xrace.model.Categorie

    }
  }

  public void testDelete() throws Exception
  {
    Categorie categorie = getCategorieService().findByCode("Hardtail", "U",
        disciplineDh);
    getCategorieService().delete(categorie);
  }

Examples of org.xrace.model.Categorie

    getCategorieService().delete(categorie);
  }

  public void testDeleteHasInscription() throws Exception
  {
    Categorie categorie = getCategorieService().findByCode("XSE", "H",
        disciplineXc);
    getCategorieService().delete(categorie);

    flush(getCategorieService(), RuntimeException.class);
  }

Examples of org.xrace.model.Categorie

    flush(getCategorieService(), RuntimeException.class);
  }

  public void testFindByCodeComplet1() throws Exception
  {
    Categorie categorie = getCategorieService().findByCodeComplet(
        getCategorieService().findByCode("XSE", "H", disciplineXc)
            .getCodeComplet());

    Assert.assertNotNull(categorie);
    Assert.assertEquals("XSE", categorie.getCodeCategorie());
  }
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.