Package org.xrace.model

Examples of org.xrace.model.Discipline


    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
        return new DisciplineUpdatePage(new Discipline(), true);
      }

      public Class getPageIdentity()
      {
        return DisciplineUpdatePage.class;
View Full Code Here


  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Discipline discipline = (Discipline) item.getModelObject();

    item.add(new Label("nom"));

    item.add(new PageLink("modifier", new IPageLink()
    {
View Full Code Here

    }
  }

  private void createTestDisciplines()
  {
    getDisciplineService().save(new Discipline("XC"));
    getDisciplineService().save(new Discipline("DH"));
    getDisciplineService().save(new Discipline("XCM"));
  }
View Full Code Here

    final Personne personneJDoe = getPersonneService()
        .findByNomPrenomExact("Doe", "John").get(0);
    final Personne personneOKnussen = getPersonneService()
        .findByNomPrenomExact("Knussen", "Olaf").get(0);

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

    final Categorie categorieXseH = getCategorieService().findByCode("XSE",
        "H", disciplineXC);
    Categorie categorieXsxH = getCategorieService().findByCode("XSX", "H",
        disciplineXC);
View Full Code Here

    Facture facture;

    final Personne personneNCote = getPersonneService()
        .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);
View Full Code Here

   * @see wicket.markup.html.form.ChoiceRenderer#getDisplayValue(java.lang.Object)
   */
  @Override
  public Object getDisplayValue(final Object object)
  {
    final Discipline discipline = (Discipline) object;
    if (discipline == null)
    {
      return null;
    }
    else
    {
      return discipline.getNom();
    }
  }
View Full Code Here

  {
    if (index < 0)
    {
      return "";
    }
    final Discipline discipline = (Discipline) object;
    return discipline.getId().toString();
  }
View Full Code Here

    disciplineXcm = getDisciplineService().findByNom("XCM");
  }

  public void testGetByNom()
  {
    final Discipline discipline = getDisciplineService().findByNom("XC");
    Assert.assertNotNull(discipline);
    Assert.assertEquals("XC", discipline.getNom());
  }
View Full Code Here

    Assert.assertEquals("XC", discipline.getNom());
  }

  public void testCreateDiscipline()
  {
    Discipline discipline = new Discipline("XCMQ");
    getDisciplineService().save(discipline);

    Assert.assertNotNull(getDisciplineService().findByNom("XCMQ"));
  }
View Full Code Here

  public void testCreateDisciplineValidateUnique()
  {
    try
    {
      Discipline discipline = new Discipline("XC");
      getDisciplineService().save(discipline);

      Assert.fail();
    }
    catch (final UniqueException e)
View Full Code Here

TOP

Related Classes of org.xrace.model.Discipline

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.