Package org.xrace.model

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;
View Full Code Here


  @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;
View Full Code Here

   * @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;
  }
View Full Code Here

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

        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);
  }
View Full Code Here

  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();
    }
View Full Code Here

    }
  }

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

    getCategorieService().delete(categorie);
  }

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

    flush(getCategorieService(), RuntimeException.class);
  }
View Full Code Here

    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());
  }
View Full Code Here

    Assert.assertEquals("XSE", categorie.getCodeCategorie());
  }

  public void testFindByCodeComplet2() throws Exception
  {
    Categorie categorie = getCategorieService().findByCodeComplet(
        "XSE-H-XC");

    Assert.assertNotNull(categorie);
    Assert.assertEquals("XSE", categorie.getCodeCategorie());
  }
View Full Code Here

TOP

Related Classes of org.xrace.model.Categorie

Copyright © 2018 www.massapicom. 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.