Delete CarTest.java
This commit is contained in:
parent
5b4d0fb583
commit
250feb50a0
@ -1,23 +0,0 @@
|
|||||||
package com.baeldung.beaninjectiontypes;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertNotNull;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.runner.RunWith;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
|
||||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
||||||
|
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
|
||||||
@ContextConfiguration(classes = Config.class)
|
|
||||||
public class CarTest {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
Car car;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void givenAutowired_whenOnField_thenSetterInjected() {
|
|
||||||
assertNotNull(car);
|
|
||||||
assertNotNull(car.getEngine());
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user