diff options
Diffstat (limited to 'src/test/java/com/amazon/carbonado')
| -rw-r--r-- | src/test/java/com/amazon/carbonado/TestStorables.java | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/java/com/amazon/carbonado/TestStorables.java b/src/test/java/com/amazon/carbonado/TestStorables.java index f8e3236..a6bab16 100644 --- a/src/test/java/com/amazon/carbonado/TestStorables.java +++ b/src/test/java/com/amazon/carbonado/TestStorables.java @@ -1479,10 +1479,14 @@ public class TestStorables extends TestCase {      }      public void test_derivedJoinIndex() throws Exception { -        Storage<WithDerivedChainA> aStorage = getRepository().storageFor(WithDerivedChainA.class); -        Storage<WithDerivedChainB> bStorage = getRepository().storageFor(WithDerivedChainB.class); -        Storage<WithDerivedChainC> cStorage = getRepository().storageFor(WithDerivedChainC.class); -        Storage<WithDerivedChainD> dStorage = getRepository().storageFor(WithDerivedChainD.class); +        test_derivedJoinIndex(getRepository()); +    } + +    protected void test_derivedJoinIndex(Repository repo) throws Exception { +        Storage<WithDerivedChainA> aStorage = repo.storageFor(WithDerivedChainA.class); +        Storage<WithDerivedChainB> bStorage = repo.storageFor(WithDerivedChainB.class); +        Storage<WithDerivedChainC> cStorage = repo.storageFor(WithDerivedChainC.class); +        Storage<WithDerivedChainD> dStorage = repo.storageFor(WithDerivedChainD.class);          int aid = 101;          int bid = 201;  | 
