예제 #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());
 }