[exo-jcr-commits] exo-jcr SVN: r5664 - jcr/branches/1.15.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Feb 17 07:34:39 EST 2012


Author: tolusha
Date: 2012-02-17 07:34:38 -0500 (Fri, 17 Feb 2012)
New Revision: 5664

Added:
   jcr/branches/1.15.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/TesterRepositoryCheckController.java
Log:
EXOJCR-1755: refactoring RepositoryCheckController

Added: jcr/branches/1.15.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/TesterRepositoryCheckController.java
===================================================================
--- jcr/branches/1.15.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/TesterRepositoryCheckController.java	                        (rev 0)
+++ jcr/branches/1.15.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/TesterRepositoryCheckController.java	2012-02-17 12:34:38 UTC (rev 5664)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2012 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.exoplatform.services.jcr.impl;
+
+import org.exoplatform.services.jcr.core.ManageableRepository;
+
+import java.io.File;
+
+/**
+ * For testing purpose. Returns last log file to have possibility to delete.
+ * 
+ * @author <a href="abazko at exoplatform.com">Anatoliy Bazko</a>
+ * @version $Id: TesterRepositoryCheckController.java 34360 2009-07-22 23:58:59Z tolusha $
+ */
+public class TesterRepositoryCheckController extends RepositoryCheckController
+{
+   public TesterRepositoryCheckController(ManageableRepository repository)
+   {
+      super(repository);
+   }
+
+   public File getLastLogFile()
+   {
+      return new File(lastReport.getReportPath());
+   }
+}



More information about the exo-jcr-commits mailing list