From 6649eb1c4d9c1777a600d761437d885afe619cbc Mon Sep 17 00:00:00 2001 From: Gurkan Nisanci Date: Mon, 19 Dec 2016 15:17:31 +0000 Subject: [PATCH] Update InMemoryAccountRepositoryTest.java Prevent "Failed to retrieve PlatformTransactionManager for @Transactional" exception --- .../oreilly/repositories/InMemoryAccountRepositoryTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/JdbcAccounts/src/test/java/com/oreilly/repositories/InMemoryAccountRepositoryTest.java b/JdbcAccounts/src/test/java/com/oreilly/repositories/InMemoryAccountRepositoryTest.java index 4b3e019..e45e7a5 100644 --- a/JdbcAccounts/src/test/java/com/oreilly/repositories/InMemoryAccountRepositoryTest.java +++ b/JdbcAccounts/src/test/java/com/oreilly/repositories/InMemoryAccountRepositoryTest.java @@ -20,7 +20,6 @@ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = AppConfig.class) -@Transactional @ActiveProfiles("dev") public class InMemoryAccountRepositoryTest { @@ -89,4 +88,4 @@ public void testDeleteAccount() throws Exception { // Re-add the deleted account repository.createAccount(account.getBalance()); } -} \ No newline at end of file +}