Delete RocketTest.java
This commit is contained in:
parent
2e65942cb2
commit
e60ed53788
|
@ -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 RocketTest {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
Rocket rocket;
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void givenAutowired_whenOnConstructor_thenInjected() {
|
|
||||||
assertNotNull(rocket);
|
|
||||||
assertNotNull(rocket.getEngine());
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue