Commit b529581d authored by Gaetan's avatar Gaetan

[FAIT PAR VICTOR] --> problem authentication

Test class DieselEngine
parent 2d717d55
package tests;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import vehicle.part.engine.DieselEngine;
import static org.junit.Assert.*;
public class DieselEngineTest {
private DieselEngine dieselEngine;
@Before
public void setUp(){
dieselEngine = new DieselEngine("Un cylindre", 10.00);
}
@Test
public String toString() {
String expected = "Diesel vehicle.parts.Engine";
Assert.assertEquals(expected, dieselEngine.toString());
return null;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment