@Override public Repository getRepository(String repositoryId) { return workspaceMapping.getRepository(repositoryId); }
@Test @Ignore public void testUnknownRepositoryShouldYieldMeaningfulExceptionMessage() { WorkspaceMapping mapping = new WorkspaceMapping(); try { mapping.getRepository("dummy"); fail("should have failed, since we haven't set any repository at all"); } catch (Throwable t) { assertEquals("Failed to retrieve repository 'dummy' (mapped as 'dummy'). Your Magnolia instance might not have been initialized properly.", t.getMessage()); } }