コード例 #1
0
  public void testShouldUseSpecifiedRevisionController() throws Exception {
    testProperties.setProperty(
        ComponentFactory.VERSIONS_CONTROLLER, NullVersionsController.class.getName());

    VersionsController defaultRevisionController = factory.loadVersionsController();
    assertEquals(NullVersionsController.class, defaultRevisionController.getClass());
  }
コード例 #2
0
 public void testShouldUseZipFileRevisionControllerAsDefault() throws Exception {
   VersionsController defaultRevisionController = factory.loadVersionsController();
   assertEquals(ZipFileVersionsController.class, defaultRevisionController.getClass());
 }