use of domaine.Objet in project Synthese_2BIN by TheYoungSensei.
the class GestionEncheresTest method testEncherir8.
@Test(expected = ObjetInexistantException.class)
public void testEncherir8() throws UtilisateurInexistantException, ObjetInexistantException, EnchereInexistanteException {
Objet objet1 = gestionEncheres.mettreEnVente("banane", utilisateur2);
gestionEncheres.encherir(objet1, utilisateur3, 5.0, time);
gestionEncheres.accepter(objet1);
gestionEncheres.encherir(objet1, utilisateur4, 6.0, time);
}
use of domaine.Objet in project Synthese_2BIN by TheYoungSensei.
the class GestionEncheresTest method testEncherir5.
@Test
public void testEncherir5() throws UtilisateurInexistantException, ObjetInexistantException {
Objet objet1 = gestionEncheres.mettreEnVente("banane", utilisateur2);
gestionEncheres.encherir(objet1, utilisateur3, 5.0, time);
assertNull(gestionEncheres.encherir(objet1, utilisateur4, 5.0, time.plusDays(1)));
}
use of domaine.Objet in project Synthese_2BIN by TheYoungSensei.
the class GestionEncheresTest method testEncherir2.
@Test(expected = ObjetInexistantException.class)
public void testEncherir2() throws ObjetInexistantException, UtilisateurInexistantException {
Objet objet = new Objet("grosbo", utilisateur2);
gestionEncheres.encherir(objet, utilisateur2, 5.0, time);
}
use of domaine.Objet in project Synthese_2BIN by TheYoungSensei.
the class GestionEncheresTest method testEncherir1.
@Test(expected = UtilisateurInexistantException.class)
public void testEncherir1() throws ObjetInexistantException, UtilisateurInexistantException {
Objet objet = gestionEncheres.mettreEnVente("yoyo", utilisateur2);
gestionEncheres.encherir(objet, utilisateur1, 5.0, time);
}
use of domaine.Objet in project Synthese_2BIN by TheYoungSensei.
the class GestionEncheresTest method testEncherir3.
@Test
public void testEncherir3() throws UtilisateurInexistantException, ObjetInexistantException {
Objet objet1 = gestionEncheres.mettreEnVente("banane", utilisateur2);
Objet objet2 = gestionEncheres.mettreEnVente("apple", utilisateur2);
gestionEncheres.encherir(objet1, utilisateur3, 5.0, time);
assertNull(gestionEncheres.encherir(objet2, utilisateur3, 5.0, time));
}
Aggregations