[jboss-svn-commits] JBL Code SVN: r25503 - in labs/jbosslabs/labs-3.0-build/integration/cs-hfurl: src/main/java and 17 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Mar 5 11:21:30 EST 2009


Author: lkrzyzanek
Date: 2009-03-05 11:21:30 -0500 (Thu, 05 Mar 2009)
New Revision: 25503

Added:
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/DbHFURLManager.java
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLManager.java
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLPlugin.java
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/dao/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/struts/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/plugin.xml
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/spring.xml
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/HFURLMappingTest.java
Modified:
   labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/pom.xml
Log:
added

Modified: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/pom.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/pom.xml	2009-03-05 14:57:21 UTC (rev 25502)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/pom.xml	2009-03-05 16:21:30 UTC (rev 25503)
@@ -4,7 +4,7 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.jboss.labs.clearspace.plugin</groupId>
-  <artifactId>hfurl</artifactId>
+  <artifactId>human-friendly-urls</artifactId>
   <name>Clearspace plugin: Human friendly URLs</name>
   <description>Plugin offers human friendly URLs in CS</description>
   <version>1.0.0-SNAPSHOT</version>

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/DbHFURLManager.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/DbHFURLManager.java	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/DbHFURLManager.java	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,165 @@
+/*
+ * JBoss.org http://jboss.org/
+ *
+ * Copyright (c) 2009  Red Hat Middleware, LLC. All rights reserved.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT A 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, v.2.1 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * Red Hat Author(s): Libor Krzyzanek
+ */
+package org.jboss.labs.clearspace.plugin.hfurl;
+
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import org.jboss.labs.clearspace.plugin.hfurl.dao.HFURLBean;
+
+import com.jivesoftware.base.database.dao.DAOException;
+import com.jivesoftware.community.cache.Cache;
+import com.jivesoftware.community.event.DocumentEvent;
+import com.jivesoftware.community.event.DocumentListener;
+
+/**
+ * 
+ * @author <a href="mailto:lkrzyzan at redhat.com">Libor Krzyzanek</a>
+ * 
+ */
+public class DbHFURLManager implements HFURLManager, DocumentListener {
+
+  /**
+   * A cache for HF URL titles.<br>
+   * Key is DocumentID<br>
+   * Value is HF URL Title
+   */
+  private Cache<String, String> hfURLCache;
+
+  public String createHFURLTitle(String documentTitle) {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
+  public String getDocumentID(String hfURLTitle) {
+    String documentID = null;
+    if (hfURLCache.containsValue(hfURLTitle)) {
+      Iterator<Entry<String, String>> it = hfURLCache.entrySet().iterator();
+      while (it.hasNext()) {
+        Entry<String, String> pairs = it.next();
+
+        if (hfURLTitle.equals(pairs.getValue())) {
+          documentID = pairs.getKey();
+          break;
+        }
+      }
+    } else {
+      // try {
+      // bean = documentDAO.getByID(documentID);
+      // if (bean == null) {
+      // throw new DocumentObjectNotFoundException(JiveConstants.DOCUMENT, -1,
+      // "Document " + docID + " could not be loaded from the database.");
+      // }
+      // } catch (DAOException e) {
+      // throw new DocumentObjectNotFoundException(JiveConstants.DOCUMENT, -1,
+      // "", e);
+      // }
+
+      hfURLCache.put(documentID, hfURLTitle);
+    }
+
+    return documentID;
+  }
+
+  public void setHfURLCache(Cache<String, String> hfURLCache) {
+    this.hfURLCache = hfURLCache;
+  }
+
+  // DOCUMENT LISTENER METHODS
+
+  public void binaryBodyDownloaded(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentAdded(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentDeleted(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentExpired(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentExpireWarning(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentModified(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentMoved(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentRated(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentRelatedObjectAdded(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentRelatedObjectDeleted(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentUndeleted(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void documentViewed(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void versionAdded(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void versionDeleting(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+  public void versionModified(DocumentEvent event) {
+    // TODO Auto-generated method stub
+
+  }
+
+}


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/DbHFURLManager.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLManager.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLManager.java	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLManager.java	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,52 @@
+/*
+ * JBoss.org http://jboss.org/
+ *
+ * Copyright (c) 2009  Red Hat Middleware, LLC. All rights reserved.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT A 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, v.2.1 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * Red Hat Author(s): Libor Krzyzanek
+ */
+package org.jboss.labs.clearspace.plugin.hfurl;
+
+/**
+ * Manager for handling with Human friendly URLs.
+ * 
+ * @author @author <a href="mailto:lkrzyzan at redhat.com">Libor Krzyzanek</a>
+ */
+public interface HFURLManager {
+
+  /**
+   * Get document ID.
+   * 
+   * @param hfURLTitle
+   *          HF URL title.
+   * @return ID of document i.e. DOC-1234 or null if document is not founded
+   * @see #createHFURLTitle(String)
+   * @see com.jivesoftware.community.impl.dao.DocumentBean#getDocumentID()
+   */
+  public String getDocumentID(String hfURLTitle);
+
+  /**
+   * Create HF URL title
+   * 
+   * @param documentTitle
+   *          Document real title
+   * @return
+   * @see com.jivesoftware.community.impl.dao.DocumentBean#getTitle()
+   */
+  public String createHFURLTitle(String documentTitle);
+
+}


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLManager.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLPlugin.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLPlugin.java	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLPlugin.java	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,69 @@
+/*
+ * JBoss.org http://jboss.org/
+ *
+ * Copyright (c) 2009  Red Hat Middleware, LLC. All rights reserved.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT A 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, v.2.1 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * Red Hat Author(s): Libor Krzyzanek
+ */
+package org.jboss.labs.clearspace.plugin.hfurl;
+
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
+
+import com.jivesoftware.base.plugin.Plugin;
+import com.jivesoftware.community.event.DocumentEventDispatcher;
+
+/**
+ * Plugin lifecycle definition<br>
+ * 
+ * @author <a href="mailto:lkrzyzan at redhat.com">Libor Krzyzanek</a>
+ */
+public class HFURLPlugin implements Plugin<HFURLPlugin> {
+
+  /** Logger */
+  protected static final Logger log = LogManager.getLogger(HFURLPlugin.class);
+  
+  /**
+   * HF URL Manager
+   */
+  private DbHFURLManager hfUrlManager;
+
+  /**
+   * Plugin name
+   */
+  private final String PLUGIN_NAME = "JBoss settings";
+
+  public void init() {
+    log.debug("Init " + PLUGIN_NAME);
+    DocumentEventDispatcher.getInstance().addListener(hfUrlManager);
+    log.debug("Initialize completed of plugin " + PLUGIN_NAME);
+  }
+
+  public void destroy() {
+    DocumentEventDispatcher.getInstance().removeListener(hfUrlManager);
+    log.debug(PLUGIN_NAME + " destroyed");
+  }
+
+  public void setHfUrlManager(DbHFURLManager hfUrlManager) {
+    this.hfUrlManager = hfUrlManager;
+  }
+
+  public DbHFURLManager getHfUrlManager() {
+    return hfUrlManager;
+  }
+
+}


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/java/org/jboss/labs/clearspace/plugin/hfurl/HFURLPlugin.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/plugin.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/plugin.xml	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/plugin.xml	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,22 @@
+<plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="http://www.jivesoftware.com/schemas/clearspace/2_0/plugin.xsd">
+  <name>human-friendly-urls</name>
+  <description>Plugin offers human friendly URLs for documents based on their title</description>
+  <author>JBoss.org</author>
+  <version>1.0.0</version>
+  <minServerVersion>2.0.0</minServerVersion>
+
+  <!-- Plugin class -->
+  <class>org.jboss.labs.clearspace.plugin.hfurl.HFURLPlugin</class>
+
+  <!-- URL Mapping for human friendly URLs -->
+  <urlmapping prefix="/doc" class="org.jboss.labs.clearspace.plugin.hfurl.struts.mapping.HFURLMapping"/>
+  <sitemesh>
+    <decorator name="default" page="/template/decoratordefault/template.ftl">
+        <pattern>/doc*</pattern>
+    </decorator>
+    <decorator name="default" page="/template/decoratordefault/template.ftl">
+        <pattern>/doc/*</pattern>
+    </decorator>
+  </sitemesh>
+</plugin>
\ No newline at end of file


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/plugin.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/spring.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/spring.xml	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/spring.xml	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
+  xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"
+  default-autowire="no" default-init-method="init">
+  
+  <bean id="hfURLPlugin" class="org.jboss.labs.clearspace.plugin.hfurl.HFURLPlugin">
+    <property name="hfUrlManager" ref="dbHFURLManager" />
+  </bean>
+  
+  <bean id="hfURLMapping" class="org.jboss.labs.clearspace.plugin.hfurl.struts.mapping.HFURLMapping"></bean>
+  
+<!-- 
+  <bean id="hfURLCache" parent="cacheBean" depends-on="cacheFactoryManager">
+    <constructor-arg value="Human friendly URLs Map" />
+  </bean>
+ -->
+
+
+  <bean id="dbHFURLManager" class="org.jboss.labs.clearspace.plugin.hfurl.DbHFURLManager">
+<!-- 
+    <property name="hfURLCache" ref="hfURLCache" />
+ -->
+  </bean>
+
+</beans>


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/main/resources/spring.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/HFURLMappingTest.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/HFURLMappingTest.java	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/HFURLMappingTest.java	2009-03-05 16:21:30 UTC (rev 25503)
@@ -0,0 +1,78 @@
+/*
+ * JBoss.org http://jboss.org/
+ *
+ * Copyright (c) 2009  Red Hat Middleware, LLC. All rights reserved.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT A 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, v.2.1 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * Red Hat Author(s): Libor Krzyzanek
+ */
+package org.jboss.labs.clearspace.plugin.hfurl.struts.mapping;
+
+import static org.junit.Assert.*;
+
+import org.jboss.labs.clearspace.plugin.hfurl.HFURLManager;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Tests of HFURLMapping
+ * @author <a href="mailto:lkrzyzan at redhat.com">Libor Krzyzanek</a>
+ *
+ */
+public class HFURLMappingTest {
+
+  private HFURLMapping actionMapping;
+  
+  @Before
+  public void setupHFURLMapping() {
+    actionMapping = new HFURLMapping();
+    actionMapping.setHfURLManager(new HFURLManager() {
+
+      public String createHFURLTitle(String documentTitle) {
+        return null;
+      }
+
+      public String getDocumentID(String hfURLTitle) {
+        return "DOC-1234";
+      }
+      
+    });
+  }
+  
+  /**
+   * Test method for {@link org.jboss.labs.clearspace.plugin.hfurl.struts.mapping.HFURLMapping#convertHFURL2StandardURL(java.lang.String)}.
+   */
+  @Test
+  public void testConvertHFURL2StandardURL() {
+    /*
+    assertEquals("/docs/DOC-1234", actionMapping.convertHFURL2StandardURL("/doc/JDKs"));
+    assertEquals("/docs/DOC-1234.pdf", actionMapping.convertHFURL2StandardURL("/doc/JDKs.pdf"));
+    
+    assertEquals("/docs/DOC-1234/collaborate", actionMapping.convertHFURL2StandardURL("/doc/JDKs/collaborate"));
+    assertEquals("/docs/DOC-1234/edit", actionMapping.convertHFURL2StandardURL("/doc/JDKs/edit"));
+    assertEquals("/docs/DOC-1234/upload", actionMapping.convertHFURL2StandardURL("/doc/JDKs/upload"));
+    assertEquals("/docs/DOC-1234/diff", actionMapping.convertHFURL2StandardURL("/doc/JDKs/diff"));
+    assertEquals("/docs/DOC-1234/restore", actionMapping.convertHFURL2StandardURL("/doc/JDKs/restore"));
+    assertEquals("/docs/DOC-1234/deleteVersion", actionMapping.convertHFURL2StandardURL("/doc/JDKs/deleteVersion"));
+    assertEquals("/docs/DOC-1234/authors", actionMapping.convertHFURL2StandardURL("/doc/JDKs/authors"));
+    assertEquals("/docs/DOC-1234/version", actionMapping.convertHFURL2StandardURL("/doc/JDKs/version"));
+    assertEquals("/docs/DOC-1234/version/5", actionMapping.convertHFURL2StandardURL("/doc/JDKs/version/5"));
+    assertEquals("/docs/DOC-1234/diff/", actionMapping.convertHFURL2StandardURL("/doc/JDKs/diff/"));
+    assertEquals("/docs/DOC-1234/delete", actionMapping.convertHFURL2StandardURL("/doc/JDKs/delete"));
+    */
+  }
+
+}


Property changes on: labs/jbosslabs/labs-3.0-build/integration/cs-hfurl/src/test/java/org/jboss/labs/clearspace/plugin/hfurl/struts/mapping/HFURLMappingTest.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the jboss-svn-commits mailing list