Squashed 'backend/' content from commit c76a37a
git-subtree-dir: backend git-subtree-split: c76a37a8556de7ec3597f8f1d61bcce740752404
This commit is contained in:
commit
312bd747ce
35 changed files with 2409 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
package fr.vincent.ramiere.mangerautourdesimplonback.models;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class RestaurantTest {
|
||||
@Test
|
||||
void testBuilder() {
|
||||
Restaurant r = Restaurant.builder().nom("Test").adresse("Adresse Test").telephone("0123456789").accesPMR(true)
|
||||
.aEmporter(true)
|
||||
.surPlace(false).prix(10).latitude("1.0").longitude("2.0").website("site-test.com").build();
|
||||
assertEquals("Test", r.getNom());
|
||||
assertEquals("Adresse Test", r.getAdresse());
|
||||
assertEquals("0123456789", r.getTelephone());
|
||||
assertTrue(r.getAccesPMR());
|
||||
assertTrue(r.getAEmporter());
|
||||
assertFalse(r.getSurPlace());
|
||||
assertEquals(10, r.getPrix());
|
||||
assertEquals("1.0", r.getLatitude());
|
||||
assertEquals("2.0", r.getLongitude());
|
||||
assertEquals("site-test.com", r.getWebsite());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue