You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
503 B
21 lines
503 B
package test;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
|
|
import model.Stereo;
|
|
|
|
public class StereoTest {
|
|
@Test
|
|
public void testStereoChambre1() {
|
|
Stereo stereo = new Stereo("Chambre1");
|
|
Assert.assertEquals(stereo.getLocation(), "Chambre1");
|
|
}
|
|
@Test
|
|
public void testStereoGrenier() {
|
|
Stereo stereo = new Stereo("Grenier");
|
|
Assert.assertNotEquals(stereo.getLocation(), "Chambre1");
|
|
Assert.assertEquals(stereo.getLocation(), "Grenier");
|
|
}
|
|
}
|