@@ -0,0 +1,2058 @@
+/**%0A * %0A */%0Apackage com.github.sesameloader.test;%0A%0Aimport org.junit.After;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.github.sesameloader.RepositoryManagerFactoryRegistry;%0A%0A/**%0A * @author Peter Ansell p_ansell@yahoo.com%0A * %0A */%0Apublic class RepositoryManagerFactoryRegistryTest%0A%7B%0A    %0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @Before%0A    public void setUp() throws Exception%0A    %7B%0A    %7D%0A    %0A    /**%0A     * @throws java.lang.Exception%0A     */%0A    @After%0A    public void tearDown() throws Exception%0A    %7B%0A    %7D%0A    %0A    /**%0A     * Tests the default constructor to make sure that its behaviour matches .getInstance(),%0A     * although this method should not be used as it is slower than .getInstance().%0A     */%0A    @Test%0A    public void testRepositoryManagerFactoryRegistry()%0A    %7B%0A        RepositoryManagerFactoryRegistry registry = new RepositoryManagerFactoryRegistry();%0A        %0A        Assert.assertNotNull(registry.getAll());%0A        %0A        // Update the following if more RepositoryManagerFactory instances are added%0A        Assert.assertEquals(2, registry.getAll().size());%0A        %0A        Assert.assertNotNull(registry.get(%22owlim%22));%0A        %0A        Assert.assertNotNull(registry.get(%22native%22));%0A    %7D%0A    %0A    /**%0A     * Test method for%0A     * %7B@link com.github.sesameloader.RepositoryManagerFactoryRegistry#getInstance()%7D.%0A     * %0A     * Tests that its behaviour is as expected and there are two factories available, and we can get%0A     * both owlim and native factories as expected.%0A     */%0A    @Test%0A    public void testGetInstance()%0A    %7B%0A        RepositoryManagerFactoryRegistry registry = RepositoryManagerFactoryRegistry.getInstance();%0A        %0A        Assert.assertNotNull(registry.getAll());%0A        %0A        // Update the following if more RepositoryManagerFactory instances are added%0A        Assert.assertEquals(2, registry.getAll().size());%0A        %0A        Assert.assertNotNull(registry.get(%22owlim%22));%0A        %0A        Assert.assertNotNull(registry.get(%22native%22));%0A    %7D%0A    %0A%7D%0A

add RepositoryManagerFactoryRegistryTest