package de.springbootbuch.database_examples.springdata;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * Part of springbootbuch.de.
 * 
 * Demonstrates the injectable Entity-Manager.
 * 
 * @author Michael J. Simons
 * @author @rotnroll666
 */
@RunWith(SpringRunner.class)
@DataJpaTest
public class InjectableEntityManagerTest {
	
	@Autowired
	private InjectableEntityManager injectableEntityManager;
	
	@Test
	public void selectActors() {
		injectableEntityManager.executeSampleQuery()
			.stream()
			.map(ActorEntity::getLastName)
			.forEach(System.out::println);
	}
}
@@ -237,24 +237,150 @@
 ataJpaTest;%0A
+import org.springframework.context.annotation.ComponentScan.Filter;%0Aimport org.springframework.context.annotation.FilterType;%0A
 import org.s
@@ -616,16 +616,123 @@
 aJpaTest
+(includeFilters = @Filter(%0A%09type = FilterType.ASSIGNABLE_TYPE, %0A%09classes = InjectableEntityManager.class)%0A)
 %0Apublic 

Fix test for good