Fixed Error in CarTest.java #20
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -21,13 +21,19 @@ class CarTest {
 | 
			
		|||
    // Default coordinates for tests
 | 
			
		||||
    int DEFAULT_X = 10;
 | 
			
		||||
    int DEFAULT_Y = 10;
 | 
			
		||||
    char DEFAULT_ID = 'f';
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Create a new Car Object and set Position to a defined Default Position
 | 
			
		||||
     */
 | 
			
		||||
    @BeforeEach
 | 
			
		||||
    void setUp() {
 | 
			
		||||
        car = new Car('a', new PositionVector(DEFAULT_X, DEFAULT_Y));
 | 
			
		||||
        car = new Car(DEFAULT_ID, new PositionVector(DEFAULT_X, DEFAULT_Y));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    void getID() {
 | 
			
		||||
        assertEquals(DEFAULT_ID, car.getID());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue