Delete BoatTest.java

This commit is contained in:
kornelihno 2018-02-17 17:38:05 +01:00 committed by GitHub
parent f9d3687435
commit 5b4d0fb583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 23 deletions

View File

@ -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 BoatTest {
@Autowired
Boat boat;
@Test
public void givenAutowired_whenOnSetter_thenInjected() {
assertNotNull(boat);
assertNotNull(boat.getEngine());
}
}